[SDL] odd crash with SDL2
buckyballreaction at gmail.com
Sun Mar 24 08:22:45 PDT 2013
Sadly, giving a debug build or asking the user to use gdb or any
debugging tool is beyond the ability of this particular user, and I
don't have access to the specific hardware.
Although, the user has since disappeared. So that means the problem
is resolved? :)
I dislike having unresolved mysteries; but the work required to solve
this isn't feasible for the benefit gained.
(And thanks for the tip about SDL_GL_SetAttribute, I missed that when
porting to SDL 2.0)
On Tue, Mar 19, 2013 at 2:58 AM, Scott Percival
<moralrecordings at gmail.com> wrote:
> It's pretty tricky, I think you might be right suspecting that OpenGL
> is responsible.
> The graphics chip you mentioned is a laptop variant (for some reason
> NVIDIA refuse to support these properly in their Windows driver
> updates), and pretty old (equivalent to the Geforce Go 7300, I have a
> test machine with that one and it only works with the "legacy" driver
> under Linux). Probably worth getting the full details from dxdiag just
> for some more information (e.g. chip type, driver version, driver
> You could easily find out what bit of SDL is tripping up with a debug
> build of the game/libSDL2 with just a backtrace from gdb, but
> unfortunately this'd require convincing the user to get a portable
> MinGW toolchain and have a go at building/debugging it. Or you could
> try instrumenting with something like Breakpad which generates
> portable stack dumps - http://code.google.com/p/google-breakpad , but
> it looks like complete overkill for something like this.
> (btw, worth mentioning that SDL_GL_SetAttribute only has an effect if
> you call it before creating a window, you should move that block up
> before SDL_CreateWindow)
> On 19 March 2013 14:32, D B <buckyballreaction at gmail.com> wrote:
>> I work on the game 'Bitfighter'. We have support for both SDL 2 and
>> SDL 1.2 in the game. We recently moved our Mac and Windows ports to
>> use SDL2 permanently because it provided much better window
>> However, someone showed up in our IRC channel saying that it crashes
>> for him. I sent him a debug binary with loads of printf statements to
>> find out where the crash was and the last statement printed directly
>> before SDL_CreateWindow here:
>> The game crashes right there and the SDL_GetError() call below it is
>> never invoked.
>> He is running Windows XP on a Dell D620 with graphics card NVIDIA
>> Quadro NVS 110m.
>> I had him install the nvidia drivers (thinking it may be an OpenGL
>> issue) but it didn't work. He can run an older version of our game
>> that used SDL 1.2 just fine, but not the SDL2 port.
>> Would anyone have an idea of might cause this?
>> I know it's really hard to debug on a machine one doesn't have access
>> to, but any help would be appreciated.
>> SDL mailing list
>> SDL at lists.libsdl.org
> SDL mailing list
> SDL at lists.libsdl.org
More information about the SDL