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 1753

Summary: Segmentation fault inside SDL_CreateWindow (title=0x41593b "window", x=100, y=100, w=800, h=400, flags=4)
Product: SDL Reporter: mttronchetti
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED WORKSFORME QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: gabomdq, icculus
Version: HG 2.0   
Hardware: x86_64   
OS: Linux   

Description mttronchetti 2013-03-12 15:42:20 UTC
I'm writing a program and this is the SDL2 code that gives me the bug:

if(SDL_Init(SDL_INIT_EVERYTHING) < 0){
            cout << "SDL_Init error " << SDL_GetError() << endl;
            exit(1);
        }
        
win = SDL_CreateWindow(name, 100, 100, w, h, SDL_WINDOW_SHOWN);

Gdb says that the problem is inside file SDL_video.c at line 1224:
window->id = _this->next_object_id++;

_this is a SDL_VideoDevice pointer but it is set to NULL
Comment 1 Gabriel Jacobo 2013-04-26 12:44:48 UTC
Can you provide a full test case that fails and even better a backtrace?
Comment 2 Ryan C. Gordon 2015-02-18 05:02:21 UTC
Closing bug with no reply since 2013.

--ryan.