[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pygame] vidmod hang in pygame.init()
Hi -
I just noticed that pygame.display.init() seems to hangs when called
opening a display on a remote server under X11. Has anyone else
noticed this problem? Platform is intel redhat 6.1/7.1/7.2 using a
recent CVS snapshot of SDL and a moderately recent cvs snapshot of
pygame 1.2. It's easy to reproduce; the following works fine when
$DISPLAY is local (:0.0), but fails when it's a remote machine. That
is, you've rlogin/xon'd to another machine are are running python
remotely and asking SDL to connect back to your display, so
so DISPLAY is NOT :0.0
% python
Python 1.5.2 (#1, Jul 5 2001, 03:02:19) [GCC 2.96 20000731 (Red Hat Linux 7.1 2 on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import pygame
>>> pygame.display.init()
..python's completely hung now..
It's hanging inside a select call when SDL is quering the X server
for valid display modes. I can supply more info, but I have a funny
feeling this used to work fine and I must be just missing something..
Thanks,
/jamie
In case it helps, here's a stack trace from gdb to see exactly where
it wedged:
#0 0x4014f0ee in __select () from /lib/i686/libc.so.6
#1 0x4038d714 in _XlcPublicMethods () from /usr/X11R6/lib/libX11.so.6
#2 0x402e563a in _XRead () from /usr/X11R6/lib/libX11.so.6
#3 0x4026374f in XF86VidModeGetAllModeLines () from /usr/lib/libSDL-1.2.so.0
#4 0x4024fe81 in X11_GetVideoModes (this=0x80f5ff0) at SDL_x11modes.c:332
#5 0x40251999 in X11_VideoInit (this=0x80f5ff0, vformat=0xbffff390)
at SDL_x11video.c:428
#6 0x40247d32 in SDL_VideoInit (driver_name=0x0, flags=0) at SDL_video.c:220
#7 0x4022a124 in SDL_InitSubSystem (flags=32) at SDL.c:71
#8 0x4001dbb8 in PyGame_Video_AutoInit () at eval.c:41
--
office: 510-643-3573 mail: 3210 Tolman Hall #1650
lab: 510-642-1950 U.C. Berkeley
fax: 801-697-4179 Berkeley, CA 94720-1650
email: mazer@socrates.berkeley.edu
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org