Discord crashes after resuming from hibernation

I am using EndeavourOS with i3wm and whenever I resume from hibernation Discord crashes. Seems GPU related.
System Specs:

  • Ryzen 5900x
  • GTX 1070ti with Nvidia drivers

Log:

Starting app.
Starting updater.
2023-05-04T18:51:38.235Z [Modules] Modules initializing
2023-05-04T18:51:38.236Z [Modules] Distribution: remote
2023-05-04T18:51:38.236Z [Modules] Host updates: enabled
2023-05-04T18:51:38.236Z [Modules] Module updates: enabled
2023-05-04T18:51:38.236Z [Modules] Module install path: /home/user/.config/discord/0.0.27/modules
2023-05-04T18:51:38.236Z [Modules] Module installed file path: /home/user/.config/discord/0.0.27/modules/installed.json
2023-05-04T18:51:38.236Z [Modules] Module download path: /home/user/.config/discord/0.0.27/modules/pending
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
2023-05-04T18:51:38.343Z [Modules] No updates to install
2023-05-04T18:51:38.343Z [Modules] Checking for host updates.
[3077751:0504/205138.411295:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[3077751:0504/205138.411380:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[3077751:0504/205138.411419:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[3077751:0504/205138.411455:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[3077751:0504/205138.411497:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[3077751:0504/205138.420248:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
2023-05-04T18:51:38.612Z [Modules] Host is up to date.
2023-05-04T18:51:38.612Z [Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
2023-05-04T18:51:38.614Z [Modules] No module updates available.
Optional module ./ElectronTestRpc was not included.
WEIGHT /home/user/.config/discord/0.0.27/modules/discord_krisp/NC_small_8k.thw
WEIGHT /home/user/.config/discord/0.0.27/modules/discord_krisp/NC_small_16k.thw
WEIGHT /home/user/.config/discord/0.0.27/modules/discord_krisp/c6.f.s.ced125.thw
WEIGHT /home/user/.config/discord/0.0.27/modules/discord_krisp/VAD_weight.thw
2023-05-04T18:51:39.976Z [Modules] Checking for host updates.
2023-05-04T18:51:40.149Z [Modules] Host is up to date.
2023-05-04T18:51:40.149Z [Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
2023-05-04T18:51:40.151Z [Modules] No module updates available.
[3077751:0504/205140.194889:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[3077751:0504/205140.194969:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[3077751:0504/205140.195275:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[3077751:0504/205140.196366:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[3077751:0504/205140.197303:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[3077751:0504/205140.198280:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[3077751:0504/205140.214066:ERROR:shared_image_factory.cc(575)] Could not find SharedImageBackingFactory with %params: usage: Gles2|Raster|DisplayRead|Scanout, format: BGRA_8888, share_between_threads: 0, gmb_type: shared_memory
[3077751:0504/205312.576629:ERROR:shared_context_state.cc(859)] SharedContextState context lost via ARB/EXT_robustness. Reset status = GL_UNKNOWN_CONTEXT_RESET_KHR
[3077751:0504/205312.577077:ERROR:gpu_service_impl.cc(988)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[3077608:0504/205312.583183:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=8704
(electron) 'gpu-process-crashed event' is deprecated and will be removed. Please use 'child-process-gone event' instead.
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)```

The second result when googling this should fix your problem:
https://www.reddit.com/r/ManjaroLinux/comments/12en30x/discord_not_working_on_manjaro_suddenly_no_idea/

Search engines are your friend. Use them.

1 Like

Thanks for the advice man. But if you would read what I wrote you might spot a key difference: My Discord is not crashing right away because of a bad config. Its crashing after hibernation. My settings.json is fine.

In that case, these resources might prove useful:
https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks#Preserve_video_memory_after_suspend
https://www.reddit.com/r/archlinux/comments/12c7cgm/discord_crashing_on_system_wake/

Otherwise please provide more system info (see EOS wiki/ Forum guide) and journalctl and/ or dmesg output.

1 Like

Preserving the video memory fixed the problem! Thank you!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.