itchio / itch.io

:bug: Public itch.io issues tracker and documentation - use support instead for private information!
https://itch.io/support
239 stars 25 forks source link

Potential Workaround Found: GPU process isn't usable crash [(442)] #1318

Open Daasin opened 2 years ago

Daasin commented 2 years ago

Crash on startup for io.itch.itch.desktop:

Bug: Loads for second with grey box and then disapears along with background apps icon.

Itchio-Output.log

Main part of output from terminal:

19:44:09.814 INFO (m/reac/silent-location-scan) No items found 19:44:09.814 INFO (m/reac/silent-location-scan) Scan complete. 19:44:09.805 DEBUG (rcall) Calling Profile.List 19:44:09.816 DEBUG (mcall) Calling Fetch.Caves 19:44:09.844 DEBUG (mcall) Calling Fetch.Commons _[96716:0504/204409.974522:FATAL:gpu_data_manager_implprivate.cc(442)] GPU process isn't usable. Goodbye. Trace/breakpoint trap (core dumped)

Workaround:

Workaround is to use --no-sandbox flag in the execution line when launching, but can't seem to get it done automatically whether via desktop file in usr or in the app settings itself. I always have to manually launch from terminal with the flag Apparently it happens for people in other apps too? (Electron/Flatpaks)

For Example: (Edit as mentioned by @bengtsts )
In the file $HOME/.itch/itch. Append --no-sandbox at the end of the execution line to make /home/****/.itch/itch-setup --prefer-launch --appname itch -- "$@" --no-sandbox

Potential Fix:

Maybe allow a way for --no-sandbox to be set automatically if a system is affected? Or as a flag in the installer?

System Specs:

Pop_OS! 22.04 Samsung 980 Pro NVME SSD Ryzen 1700x CPU GTX 1080 GPU 16GB RAM @ 3200

Daasin commented 2 years ago

Seems that this is an issue that affects a lot of users, not just on this app but also stuff like Discord, which is how I managed to find the work around. I also have CPU Virtualization enabled along with Above 4G Decoding enabled if that helps narrow it down in any kind of way?

@leafo @fasterthanlime @GranPC

bengtsts commented 2 years ago

I renamed the .desktop file at $HOME/.local/share/applications/ from io.itch.itch.desktop to io.itch.itch --no-sandbox.desktop and now it launches fine. No need for terminal launches.

Edit: Nope, I'm wrong!

bengtsts commented 2 years ago

Okay. This actually works... so far. In the file $HOME/.itch/itch. Append --no-sandbox at the end of the execution line to make /home/****/.itch/itch-setup --prefer-launch --appname itch -- "$@" --no-sandbox.

Daasin commented 2 years ago

Any updates on this? :/

bengtsts commented 2 years ago

I recenlty did a fresh install. Still using this same fix. This repo hasn't been updated for 6 years. I think the right repo to post issues is here.