Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Fix Jazz Jackrabbit 2 on Wine

0009:err:seh:setup_exception_record stack overflow 992 bytes in thread 0009 eip 7e572f2a esp 00240f50 stack 0x240000-0x241000-0x340000
0044:err:ntdll:RtlpWaitForCriticalSection section 0x7e5cb7a0 "freetype.c: freetype_cs" wait timed out in thread 0044, blocked by 0009, retrying (60 sec)
^C0045:fixme:console:CONSOLE_DefaultHandler Terminating process 8 on event 0

This issue was particularly difficult to nail down. At one point, I saw a stack trace (but failed to save the output) where some amd driver was the next-to-last in the stack, so I think this issue is related to my AMD Radeon card (nothing to write home about). The error tends to happen when loading a new level of the game. However, it is possible to trigger it within a level. Running the game with the "-Safe" flag to run in safe mode prevents the crashes entirely. I thought at first the freetype.c thing meant it was font- related, and that possibly I was missing an i686 package for a font. However, I had every i686 package for every x86_64 one, so it wasn't loading the wrong type. I also ensured I started wine with WINEARCH=win32. I eventually fixed the issue by changing the game settings for the audio! To prevent game crashes , you need to configure "Sound & Music Properties" and uncheck "Use DirectSound (faster)." If you leave that option checked, it will crash the game usually when loading levels.

Comments