| Summary: | Segmentation fault inside SDL_CreateWindow (title=0x41593b "window", x=100, y=100, w=800, h=400, flags=4) | ||
|---|---|---|---|
| Product: | SDL | Reporter: | mttronchetti |
| Component: | video | Assignee: | 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 | ||
Can you provide a full test case that fails and even better a backtrace? Closing bug with no reply since 2013. --ryan. |
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