[SDL] SDL hangs on SDL_Init() when $DISPLAY is remote

Howdy Pierce howdy at cardinalpeak.com
Mon Aug 18 07:36:01 PDT 2003


> > When $DISPLAY points to some display over the
> > network, and you run app using
> > SDL, the app just hangs (forever) without doing
> > anything.
> >
> > I started to debug this, and I found that the
> > hanging function is in SDL_Init().
> >
> > When you call SDL_Init(SDL_INIT_VIDEO), SDL's
> > X11_VideoInit() is called, which
> > then calls X11_GetVideoModes()
> > (src/video/x11/SDL_x11modes.c).
> >
> > X11_GetVideoModes() calls
> > XF86VidModeGetAllModeLines() which is the one
> > which hangs (forever).
>
> I'm fairly new to linux and everything, but my two
> cents:
>
> Unless this function (XF86...) is supposed to freeze
> (which I doubt) then this would be a bug in XFree86
> (unless this function is part of the SDL code, which
> I'm doubting as well...due to the different naming
> format). I'd suggest upgrading: www.xfree86.org (4.3.0
> is out).
>
> If the problem continues... a bug report for xfree
> would probably be in order.

For some reason, SDL includes a portion of the XFree86 sources (see the tree
under src/XFree86).  The function referenced in the email lies in those
sources.

Is it possible there is some sort of version mismatch between the included
sources and the newer XFree86 releases?

--Howdy

  =============================
  Howdy Pierce
  Managing Partner
  Cardinal Peak, LLC

  email: howdy -at- cardinalpeak.com
  work: (303) 665-3962
  =============================






More information about the SDL mailing list