Opened 13 years ago

Closed 8 years ago

#1485 closed defect (wontfix)

Intermitten crash in SDL for X11

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-2.x
Component: third-party Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

Stack trace:

14 X11_SetWindowGammaRamp() /home/bennylp/Desktop/opt/src/SDL-git/src/video/x11/SDL_x11window.c:930 0x00007ffff7baf8e4	
13 SDL_OnWindowFocusLost() /home/bennylp/Desktop/opt/src/SDL-git/src/video/SDL_video.c:1897 0x00007ffff7b9c377	
12 SDL_SendWindowEvent() /home/bennylp/Desktop/opt/src/SDL-git/src/events/SDL_windowevents.c:157 0x00007ffff7b45193	
11 SDL_SetKeyboardFocus() /home/bennylp/Desktop/opt/src/SDL-git/src/events/SDL_keyboard.c:612 0x00007ffff7b42833	
10 X11_DispatchEvent() /home/bennylp/Desktop/opt/src/SDL-git/src/video/x11/SDL_x11events.c:190 0x00007ffff7bab3c5	
9 X11_PumpEvents() /home/bennylp/Desktop/opt/src/SDL-git/src/video/x11/SDL_x11events.c:546 0x00007ffff7bab3c5	
8 SDL_PumpEvents() /home/bennylp/Desktop/opt/src/SDL-git/src/events/SDL_events.c:302 0x00007ffff7b3fe27	
7 SDL_WaitEventTimeout() /home/bennylp/Desktop/opt/src/SDL-git/src/events/SDL_events.c:335 0x00007ffff7b4031d	
6 handle_event() /home/bennylp/Desktop/project/pjsip/2.x/pjmedia/src/pjmedia-videodev/sdl_dev.c:328 0x00000000004d194c	
5 job_thread() /home/bennylp/Desktop/project/pjsip/2.x/pjmedia/src/pjmedia-videodev/sdl_dev.c:1246 0x00000000004d32a7	
4 thread_main() /home/bennylp/Desktop/project/pjsip/2.x/pjlib/src/pj/os_core_unix.c:512 0x000000000058b6ac	
3 start_thread()  0x00007ffff78f09ca	

Source code:

int
X11_SetWindowGammaRamp(_THIS, SDL_Window * window, const Uint16 * ramp)
{
    SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
    Display *display = data->videodata->display;
    Visual *visual = data->visual;
    Colormap colormap = data->colormap;
    XColor *colorcells;
    int ncolors;
    int rmask, gmask, bmask;
    int rshift, gshift, bshift;
    int i;

    if (visual->class != DirectColor) {  <<<<==== CRASH HERE
        SDL_SetError("Window doesn't have DirectColor visual");
        return -1;
    }

Variables:

_this	0x0000000001786d30	
window	0x0000000001fd3a00	
ramp	0x00007fff0000000b	
data	0x0000000000000000	
display	0x0000000000000000	
visual	0x00004c45434e4143	
colormap	140737243578624	
ncolors	32767	
rmask	0	
gmask	0	
bmask	0	
rshift	0	
gshift	0	
bshift	0	

Change History (3)

comment:1 Changed 13 years ago by bennylp

  • Milestone changed from release-2.0 to release-1.14

comment:2 Changed 13 years ago by bennylp

  • Milestone changed from release-1.14 to release-2.x

comment:3 Changed 8 years ago by ismangil

  • Backported unset
  • Resolution set to wontfix
  • Status changed from new to closed

Old issue.

Note: See TracTickets for help on using tickets.