[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygame] pygame segfault under redhat 7.1



Hi,

I've just run into a bizzare problem.  I just upgraded my machine from
redhat 6.2 -> 7.1 and now get a segfault when I try to init a pygame
framebuffer with DOUBLEBUF set.  I've attached a simple runnable code
fragment.  When "flags = FULLSCREEN" this runs just fine. But, for
"flags = FULLSCREEN|DOUBLEBUF" I get a segfault.  Has anyone seen
this?  I vaguely remember seeing something similar about a 6 months
ago, but can't find the solution anywhere in my notes.  And I'm
running the frag as root, since it used the dga driver..

The system's almost a stock redhat 7.1 (fresh install, not upgraded).
Full install plus ungrades to the 4.0.3 XFree86 (on the RH cd) and
SDL-1.2 (from rpm's on the SDL site) and pygame-cvs (about 3 days
old).

Can anyone tell me if they've had similar problems?  The same code ran
fine under 6.2.  I can't even figure out if it's pygame, SDL, X or
just 7.1 bug that's causing the crash :-(

Thanks,
/jamie

------------- cut here with sharp knife --------------

#!/usr/bin/python
# -*- Mode: Python; tab-width: 4 -*-
import os, pygame
from pygame.constants import *
os.environ['DISPLAY'] = ":0.0"
os.environ['SDL_VIDEODRIVER'] = "dga"
#flags = FULLSCREEN|DOUBLEBUF
flags = FULLSCREEN
size = (1024, 768)
bpp = 8
screen = pygame.display.set_mode(size, flags, bpp)

------------- cut here with sharp knife --------------

-- 
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