SDL_SetVideoMode mac crash

Hi,

we have an SDL-based framework here (www.libavg.de) that crashes in SDL_SetVideoMode on a Mac with Snow Leopard:

2011-02-13 23:13:21.983 Python[85985:d07] *** Assertion failure in -[NSView initWithFrame:], /SourceCache/AppKit/AppKit-1038.35/AppKit.subproj/NSView.m:1289

This only happens when trying to open a fullscreen window. The error is hard to debug: It appears and disappears depending on completely unrelated code changes, including debug output. The bug only happens on macs. Everything is ok on windows and Linux, and under Linux the framework is Valgrind-clean.

How do I go about debugging this? We have a custom SDLMain.m - could that have something to do with it?

Thanks for any help,

Uli–
Any technology distinguishable from magic is insufficiently advanced.

Ulrich von Zadow | +49-172-7872715
Jabber: @Ulrich_von_Zadow
Skype: uzadow

There’s been a lot of work recently with SDL 1.3 fullscreen modes on Mac OS
X. You might try the latest snapshot and see if that works better for you:
http://www.libsdl.org/tmp/SDL-1.3.zip

See ya!On Sun, Feb 13, 2011 at 2:38 PM, Ulrich von Zadow wrote:

Hi,

we have an SDL-based framework here (www.libavg.de) that crashes in
SDL_SetVideoMode on a Mac with Snow Leopard:

2011-02-13 23:13:21.983 Python[85985:d07] *** Assertion failure in -[NSView
initWithFrame:],
/SourceCache/AppKit/AppKit-1038.35/AppKit.subproj/NSView.m:1289

This only happens when trying to open a fullscreen window. The error is
hard to debug: It appears and disappears depending on completely unrelated
code changes, including debug output. The bug only happens on macs.
Everything is ok on windows and Linux, and under Linux the framework is
Valgrind-clean.

How do I go about debugging this? We have a custom SDLMain.m - could that
have something to do with it?

Thanks for any help,

Uli


Any technology distinguishable from magic is insufficiently advanced.

Ulrich von Zadow | +49-172-7872715
Jabber: coder at c-base.org
Skype: uzadow


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and CEO, Galaxy Gameworks

There’s been a lot of work recently with SDL 1.3 fullscreen modes on Mac OS X. You might try the latest snapshot and see if that works better for you:
http://www.libsdl.org/tmp/SDL-1.3.zip

Actually since SDL-1.3 is being rapidly debugged and upgraded Mercurial source is probably
better. IMHO of course. Easier to upgrade and integrate any tweaks.On 14/02/2011, at 11:11 AM, Sam Lantinga wrote:


john skaller
@john_skaller

Sorry, my mistake for not mentioning it. We’re still using SDL 1.2.14, since we need something stable. (It’s great there’s stuff happening in SDL-land, though :-)).

So, the question remains: Is there a way to debug this? The crashes are hard to pin to single changes in the code or updates in libSDL, since they come and go.

What needs to be in a custom SDLMain.m? This is a package for python, so we don’t have a main(). Our current SDLMain.m is here:

https://www.libavg.de/websvn/filedetails.php?repname=libavg&path=%2Ftrunk%2Flibavg%2Fsrc%2Fplayer%2FSDLMain.m

Thanks,

UliOn Feb 14, 2011, at 1:11 AM, Sam Lantinga wrote:

There’s been a lot of work recently with SDL 1.3 fullscreen modes on Mac OS X. You might try the latest snapshot and see if that works better for you:
http://www.libsdl.org/tmp/SDL-1.3.zip

See ya!

On Sun, Feb 13, 2011 at 2:38 PM, Ulrich von Zadow <@Ulrich_von_Zadow> wrote:
Hi,

we have an SDL-based framework here (www.libavg.de) that crashes in SDL_SetVideoMode on a Mac with Snow Leopard:

2011-02-13 23:13:21.983 Python[85985:d07] *** Assertion failure in -[NSView initWithFrame:], /SourceCache/AppKit/AppKit-1038.35/AppKit.subproj/NSView.m:1289

This only happens when trying to open a fullscreen window. The error is hard to debug: It appears and disappears depending on completely unrelated code changes, including debug output. The bug only happens on macs. Everything is ok on windows and Linux, and under Linux the framework is Valgrind-clean.

How do I go about debugging this? We have a custom SDLMain.m - could that have something to do with it?

Thanks for any help,

Uli


Any technology distinguishable from magic is insufficiently advanced.

Ulrich von Zadow | +49-172-7872715
Jabber: @Ulrich_von_Zadow
Skype: uzadow


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and CEO, Galaxy Gameworks


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Any technology distinguishable from magic is insufficiently advanced.

Ulrich von Zadow | +49-172-7872715
Jabber: @Ulrich_von_Zadow
Skype: uzadow