Issue 140: pygame.error: Display mode not set
Status:  Invalid
Owner: ----
Closed:  Jun 2010
Project Member Reported by dennd...@gmail.com, Dec 15, 2009
Just got this error on OSX 10.6 with 0.4: http://paste.pocoo.org/show/157161/

Will try to reproduce, isn't easy though. Didn't want it to get lost.
Dec 15, 2009
Project Member #2 txprog
$ python transferfunction.py
sitecustomize hack active
[INFO   ] No OpenGL_accelerate module loaded: No module named OpenGL_accelerate
[INFO   ] Unable to load registered array format handler numeric:
Traceback (most recent call last):
  File
"/Library/Python/2.6/site-packages/PyOpenGL-3.0.1b1-py2.6.egg/OpenGL/arrays/formathandler.py",
line 44, in loadPlugin
    plugin_class = entrypoint.load()
  File
"/Library/Python/2.6/site-packages/PyOpenGL-3.0.1b1-py2.6.egg/OpenGL/plugins.py",
line 14, in load
    return importByName( self.import_path )
  File
"/Library/Python/2.6/site-packages/PyOpenGL-3.0.1b1-py2.6.egg/OpenGL/plugins.py",
line 28, in importByName
    module = __import__( ".".join(moduleName), {}, {}, moduleName)
  File
"/Library/Python/2.6/site-packages/PyOpenGL-3.0.1b1-py2.6.egg/OpenGL/arrays/numeric.py",
line 15, in <module>
    raise ImportError( """No Numeric module present: %s"""%(err))
ImportError: No Numeric module present: No module named Numeric

QT call to sgpn:kComponentOpenSelect
QT call resulted in 0
QT call to sgpn:kComponentRegisterSelect
QT call resulted in 0
QT call to sgpn:kComponentCloseSelect
QT call resulted in 0
[WARNING] Camera: Unable to use <gstreamer> as camera provider
[WARNING] Camera: Unable to use <opencv> as camera provider
[CRITICAL] Camera: Unable to find any valuable Camera provider at all!
[WARNING] Image: Unable to use <pil> as loader!
[INFO   ] Text: using <pygame> as text provider
[WARNING] Video: Unable to use <gstreamer> as video provider
[INFO   ] Video: using <pyglet> as video provider
[INFO   ] Window: use Pygame as window provider.
[INFO   ] Start application main loop
[INFO   ] listening for Tuio on 0.0.0.0:3333
Traceback (most recent call last):
  File "transferfunction.py", line 339, in <module>
    runTouchApp()
  File "/Users/dennda/dev/py/pymt/pymt/base.py", line 318, in runTouchApp
    pymt_window.mainloop()
  File "/Users/dennda/dev/py/pymt/pymt/ui/window/win_pygame.py", line 116, in mainloop
    evloop.idle()
  File "/Users/dennda/dev/py/pymt/pymt/base.py", line 168, in idle
    pymt_window.dispatch_event('on_flip')
  File "/Users/dennda/dev/py/pymt/pymt/event.py", line 160, in dispatch_event
    if func(*args):
  File "/Users/dennda/dev/py/pymt/pymt/ui/window/__init__.py", line 192, in on_flip
    self.flip()
  File "/Users/dennda/dev/py/pymt/pymt/ui/window/win_pygame.py", line 86, in flip
    pygame.display.flip()
pygame.error: Display mode not set
2009-12-15 13:50:29.227 Python[2710:9903] *** __NSAutoreleaseNoPool(): Object
0x2048d60 of class SDL_QuartzWindow autoreleased with no pool in place - just leaking
2009-12-15 13:50:29.230 Python[2710:9903] *** __NSAutoreleaseNoPool(): Object
0x2049a40 of class NSCFNumber autoreleased with no pool in place - just leaking
2009-12-15 13:50:29.231 Python[2710:9903] *** __NSAutoreleaseNoPool(): Object
0x1d8ed500 of class NSConcreteValue autoreleased with no pool in place - just leaking
2009-12-15 13:50:29.232 Python[2710:9903] *** __NSAutoreleaseNoPool(): Object
0x1384880 of class NSCFNumber autoreleased with no pool in place - just leaking
2009-12-15 13:50:29.233 Python[2710:9903] *** __NSAutoreleaseNoPool(): Object
0x1d8ed050 of class NSConcreteValue autoreleased with no pool in place - just leaking
2009-12-15 13:50:29.251 Python[2710:9903] *** __NSAutoreleaseNoPool(): Object
0x1d8ed070 of class NSCFDictionary autoreleased with no pool in place - just leaking
Fatal Python error: (pygame parachute) Bus Error

Dec 30, 2009
Project Member #3 txprog
I see nothing about window creation in the log. Normally, the window are created at 
start.

Can you try to do a simple example case for that ?
Labels: Milestone-0.4
Feb 2, 2010
#4 tommaso....@gmail.com
Hi, I solved the problem by installing python-numeric on ubuntu 9.10
Feb 2, 2010
Project Member #5 txprog
the error of python-numeric is just the first backtrace.

the problem here happen only on macosx (the second backtrace + error + bus error) :)
Feb 4, 2010
Project Member #6 txprog
(No comment was entered for this change.)
Labels: Milestone-0.4.1
Jun 1, 2010
Project Member #7 txprog
(No comment was entered for this change.)
Labels: Milestone-0.5
Jun 21, 2010
Project Member #8 txprog
Since we are not able to reproduce it, i'll close it as Invalid. Please reopen as soon as you have again this error.
Status: Invalid
Labels: -Milestone-0.5