The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL 2.0.5 kernel error on init Controller or Joystick?
jsalina


Joined: 04 Jun 2014
Posts: 17
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


Joined: 13 Feb 2015
Posts: 60
Location: UK
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().
It's in the .dll
AntTheAlchemist


Joined: 13 Feb 2015
Posts: 60
Location: UK
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 Smile
jsalina


Joined: 04 Jun 2014
Posts: 17
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.
Russell


Joined: 29 Oct 2016
Posts: 2
Hello

Please see this http://forums.libsdl.org/viewtopic.php?p=52273#52273
AntTheAlchemist


Joined: 13 Feb 2015
Posts: 60
Location: UK
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.