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

Summary: SDL_SetVideoMode() randomly crashes with exit code 3
Product: SDL Reporter: thebluedragont
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED WONTFIX QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2    
Version: 1.2.14   
Hardware: x86   
OS: Windows 7   

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.