Opened 11 years ago

Closed 5 years ago

#41930 closed defect (fixed)

py-game: cannot initialize pygame screen

Reported by: boloomka@… Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: py27-game

Description (last modified by ryandesign (Ryan Carsten Schmidt))

When I try to initialize screen using "screen = pygame.display.set_mode((640, 480))", it aborts with error:

Fatal Python error: (pygame parachute) Segmentation Fault
Abort trap: 6

I have only simple program with "init" and "set_mode" in it. Note that even pygame examples (from pygame.examples.alien import main; main()) doesn't work. Here is traceback that OS X shows: http://pastebin.com/wqck7yd3.

Change History (8)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to jmr@…
Summary: cannot initialize pygame screenpy-game: cannot initialize pygame screen

comment:2 Changed 11 years ago by jmroot (Joshua Root)

Works for me, though I'm not on Mavericks.

comment:3 Changed 11 years ago by macports_org@…

I am seeing this same issue with Mavericks on a multi-monitor setup if I try to my program while the eclipse main window is on my second monitor (not my primary monitor). I'm running via eclipse with the py-dev eclipse plugin. Mac Ports python 2.7

Last edited 11 years ago by macports_org@… (previous) (diff)

comment:4 Changed 11 years ago by jmroot (Joshua Root)

OK. I now have a machine running Mavericks and this works fine with a single monitor. From the crash log it looks like the bug is more likely in SDL or even AppKit than in pygame, but I really don’t know. Maybe ask upstream for help?

comment:5 Changed 11 years ago by boloomka@…

Just to clarify, I am not using Eclipse, but I have two monitors too.

comment:6 Changed 11 years ago by cdeil (Christoph Deil)

Same issue for me. I get the crash when I have an external monitor attached to my Macbook (OS X 10.9, retina display), but when I unplug it it works.

When I run this:

python -c 'from pygame.examples.aliens import main; main()'

I get this crash: https://gist.github.com/cdeil/11092676

comment:7 Changed 6 years ago by jmroot (Joshua Root)

Is this still a problem with the current version?

comment:8 Changed 5 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

No response; assuming fixed. Please reopen if not.

Note: See TracTickets for help on using tickets.