We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1043 - SDL_SetVideoMode() randomly crashes with exit code 3
Summary: SDL_SetVideoMode() randomly crashes with exit code 3
Status: RESOLVED WONTFIX
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 1.2.14
Hardware: x86 Windows 7
: P2 critical
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-13 06:05 UTC by thebluedragont
Modified: 2011-12-29 01:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thebluedragont 2010-08-13 06:05:52 UTC
As the title says, SDL_SetVideoMode() keeps randomly crashing. It works and works and then at some point it decides it doesn't want to work anymore and I need to reboot.

At first I thought I thought it's a bug, then I googled it and decided it's probably me giving it incorrect values.
I played with the BPP and with OpengGL attributes (SDL_GL_SetAttribute()) and it seemed to work again.
Now it started crashing again without me changing anything, and after a reboot it works without any problem.

What's the deal with this?

In my current code I disabled any GL attribute settings (don't know what's their defaults) and I just call

SDL_SetVideoMode(800, 600, 24, SDL_OPENGL);

Like I said, tried with other BPPs already and it doesn't seem to matter.
Comment 1 thebluedragont 2010-08-13 15:11:30 UTC
I forgot to mention that this never happens to me in Ubuntu 10.04, same code same library version same everything.
Comment 2 thebluedragont 2010-09-24 07:10:15 UTC
I have found the problem.
Apparently the game (and perhaps others?) "IJJI Gunz" (google it if you care) makes SDL crash at  SDL_SetVideoMode().
I have no idea why.