Emulator Issues #6564
closedVideoSoftware: Segfault on exit when using Single Core JIT with nvidia's linux drivers
0%
Description
What steps will reproduce the problem?
- Change the settings to Single Core JIT and Video Software backend
- Start any game
- Press Stop and confirm you actually want to stop
- Segfault!
Which versions of Dolphin did you test on?
Latest Master, but it's been around for at least a few weeks.
It possibly crashes on other drivers and operating systems as well, but I've confirmed it crashes on linux/nvidia
The problem is caused by various Deconstructiors in RasterFont, which get called from the wrong thread (only when using Single Core Jit) and frees various OpenGL resources without a valid context.
Sonicadvance1 was saying on IRC that font rendering doesn't really need OpenGL and VideoSoftware shouldn't depend on OpenGL for anything other than rendering the final image to screen anyway. (The RasterFont stuff currently doesn't work on non-GLES3 phones) So prehaps we should remove the extra dependency while we are at it.