discord
discord copied to clipboard
Discord crashes because of GPU reset when switching to console and back (CTRL-ALT-Fn)
Snapcraft discord 0.0.26 under Ubuntu 22.04. Nvidia driver 530.
Here's the output log:
$ discord
Discord 0.0.26
[535186:0425/104612.153870:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 535312: Permission denied (13)
Starting app.
Starting updater.
2023-04-25T09:46:12.159Z [Modules] Modules initializing
2023-04-25T09:46:12.160Z [Modules] Distribution: remote
2023-04-25T09:46:12.160Z [Modules] Host updates: disabled
2023-04-25T09:46:12.160Z [Modules] Module updates: enabled
2023-04-25T09:46:12.160Z [Modules] Module install path: /home/julian/snap/discord/151/.config/discord/0.0.26/modules
2023-04-25T09:46:12.160Z [Modules] Module installed file path: /home/julian/snap/discord/151/.config/discord/0.0.26/modules/installed.json
2023-04-25T09:46:12.160Z [Modules] Module download path: /home/julian/snap/discord/151/.config/discord/0.0.26/modules/pending
2023-04-25T09:46:12.283Z [Modules] No updates to install
2023-04-25T09:46:12.284Z [Modules] Host is up to date.
2023-04-25T09:46:12.284Z [Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
2023-04-25T09:46:12.290Z [Modules] No module updates available.
Optional module ./ElectronTestRpc was not included.
[535186:0425/104612.357835:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.login1.Manager.Inhibit: object_path= /org/freedesktop/login1: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.669" (uid=1000 pid=535186 comm="/snap/discord/151/usr/share/discord/Discord --use-" label="snap.discord.discord (enforce)") interface="org.freedesktop.login1.Manager" member="Inhibit" error name="(unset)" requested_reply="0" destination="org.freedesktop.login1" (uid=0 pid=3939 comm="/lib/systemd/systemd-logind " label="unconfined")
[535312:0425/104612.403142: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
[535312:0425/104612.403273: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
[535312:0425/104612.403340: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
[535312:0425/104612.403396: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
[535312:0425/104612.403470: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
[535312:0425/104612.410982: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
WEIGHT /home/julian/snap/discord/151/.config/discord/0.0.26/modules/discord_krisp/NC_small_8k.thw
WEIGHT /home/julian/snap/discord/151/.config/discord/0.0.26/modules/discord_krisp/NC_small_16k.thw
WEIGHT /home/julian/snap/discord/151/.config/discord/0.0.26/modules/discord_krisp/c6.f.s.ced125.thw
WEIGHT /home/julian/snap/discord/151/.config/discord/0.0.26/modules/discord_krisp/VAD_weight.thw
2023-04-25T09:46:14.154Z [Modules] Host is up to date.
2023-04-25T09:46:14.155Z [Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
2023-04-25T09:46:14.157Z [Modules] No module updates available.
[535312:0425/104614.364822: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
[535312:0425/104614.365698: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
[535312:0425/104614.366956: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
[535312:0425/104614.367843: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
[535312:0425/104614.369070: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
[535312:0425/104614.380093: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
[535312:0425/104615.012322: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
[At this time, I press CTRL-ALT-F1 (gdm login), and back to my desktop with CTRL-ALT-F2]
[535312:0425/104624.279542:ERROR:shared_context_state.cc(859)] SharedContextState context lost via ARB/EXT_robustness. Reset status = GL_UNKNOWN_CONTEXT_RESET_KHR
[535312:0425/104624.279750:ERROR:gpu_service_impl.cc(988)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[535186:0425/104624.303086: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.
[535186:0425/104624.306407:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 537626: Permission denied (13)
If I disable Hardware GPU Acceleration, under App Settings -> Advanced, discord doesn't crash, but the animations become sluggish.
Thanks for reporting this!
Can you check if you still have this issue with the non-snap Discord installed from here: https://discord.com/?
I think this is an issue with Discord itself and not specific to our snap.