LordOfDragons / democap

Drag[en]gine Motion Capture
GNU General Public License v3.0
21 stars 2 forks source link

Instant crash #1

Open greenalden opened 23 hours ago

greenalden commented 23 hours ago

Whenever I try to launch DEMoCap, it just crashes right away. I tried the Steam install, the Windows store install, and the itch.io install with no luck. Here is the end of the log file. Any help would be appreciated.

EE [BasicRecovery] [2024-10-26 14:43:26] The thread tried to read from or write to a virtual address for which it does not have the appropriate access. EE [BasicRecovery] [2024-10-26 14:43:26] 0000000000000000: ?? ; ??:0

greenalden commented 23 hours ago

I found what caused it but I'll still leave it here as an issue. My computer has 2 GPUs in it, I had to disable one of them in device manager.

LordOfDragons commented 17 hours ago

Let me guess: nVidia + Intel on a Laptop with Prime?

greenalden commented 17 hours ago

It was a desktop with a Nvidia RTX3080ti and GTX1060

LordOfDragons commented 3 hours ago

Interesting combination. But still the same problem I guess. It's a bug in the nVidia OpenGL driver. If Prime is active then the application starts out with the low-spec GPU and begins to create OpenGL resources on it. Then Prime decides the app needs more power and switches to the high-spec GPU. But doing so it does not copy the already created OpenGL resources from the low-spec GPU to the high-spec GPU. The OpenGL driver then tries to access the resources on the high-spec GPU which do not exist and you get a crash. There is nothing I can do since the bug happens inside the OpenGL driver without me getting to know about the switch.

What you can do to work around this driver issue without disabling the low-spec GPU is to edit for example the steam and Drag[en]gine launcher application with a text editor:

Under the "[Desktop Entry]" section add these lines (if not present already): PrefersNonDefaultGPU=true X-KDE-RunOnDiscreteGpu=true

This will tell your desktop manager to always use the high-spec GPU when running this application. I had the same problem on my laptop and using this change in the desktop files solved it.