Discussion:
[SDL] SDL 2.0.5 kernel error on init Controller or Joystick?
jsalina
2016-11-15 03:22:18 UTC
Permalink
I'm getting a very odd error in SDL 2.0.5 when I include SDL_INIT_GAMECONTROLLER or SDL_INIT_JOYSTICK options in SDL_INIT(). It completely halts the program when debugging through each line when it hits SDL_INIT(). It's worked fine on previous version (2.0.4 and lower).

Any idea?

Error:
In RaiseFailFastException () (C:\WINDOWS\SysWoW64\KernelBase.dll)
AntTheAlchemist
2016-11-15 16:38:38 UTC
Permalink
I'm getting exactly the same error at exactly the same place after installing 2.0.5 into an existing 2.0.4 project. Only happens when trying to debug. Using Eclipse, MiniGW, i686-w64-mingw32, Windows 10.

For me, it doesn't matter what I pass into SDL_INIT(), it'll always crash at the same place. The compiler fails to pinpoint where unless you step manually through every line until SDL_INIT().
AntTheAlchemist
2016-11-15 16:56:17 UTC
Permalink
I've copied the old 2.0.4 SDL2.dll file back in, and debugging works fine.

So, you can compile the 2.0.5 .libs in, and still use the 2.0.4 .dll to debug until the devs work out what's going on :)
jsalina
2016-11-15 17:07:06 UTC
Permalink
Weird ok yea mine works using the 2.0.4 DLL as well - thanks! Only happens through Debug.

For the dev's I'm using Codeblocks, i686-w64-mingw32, Win 10.
AntTheAlchemist
2016-11-16 20:48:12 UTC
Permalink
Hi Russell,


Code:
SDL_SetHint(SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING, "1");



This fixes it, thank-you. I remember reading about this before, but couldn't remember where or what exactly.
Loading...