[Pythonmac-SIG] PyGame weirdness on OS X, leaks & exceptions

Bob Ippolito bob at redivi.com
Sun Aug 8 11:47:20 CEST 2004


On Aug 7, 2004, at 9:12 PM, Jerome wrote:

> It seems there's a weird problem with something with python & pygame
> on OS X, it works fine if you use pygame.init() in your code but if
> you do them separate. BOOM!
>
> whole bunch of these:
> 2004-08-07 21:08:15.153 Python[695] *** _NSAutoreleaseNoPool(): Object
> 0x30ead0 of class NSCFArray autoreleased with no pool in place - just
> leaking
>
> finishing up with this:
> 2004-08-07 21:08:15.232 Python[695] *** Uncaught exception:
> <NSInternalInconsistencyException> Error (1002) creating CGSWindow
> Trace/BPT trap
>
> downloaded a couple pygames that did this, not sure if it's the pygame
> 1.7 prerelase (1.6.2) or something weird in OS X, replacing their
> inits with the single pygame.init() solved my problem for now, but
> curious what's up

I don't understand what you mean by "if you do them separate".  If code 
uses pygame before calling pygame.init() then the code is broken, 
whether or not it happens to work on other platforms.

-bob


More information about the Pythonmac-SIG mailing list