[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Tests crashing Automatic Build page + Compiling PyGame on Windows



When I run the tests in the same, alphabetical, order as the automated build page I get :

ERROR: test_surfarray_ref (surflock_test.SurfaceLockTest)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "test\surflock_test.py", line 141, in test_surfarray_ref
   ar = pygame.surfarray.pixels2d (sf)
File "C:\PRG\PYTHON25\lib\site-packages\pygame\surfarray.py", line 122, in pix
els2d
   return numericsf.pixels2d (surface)
ValueError: unsupport bit depth for 2D reference array


So the tests are interacting with each other in unintended ways. In my case to set_mode in a previous unit test left the default surface bit depth at 24, the same as my display. Without a call to set_mode the default is 32. This also explains the errors with transform_test.py and a 16 bit display. The freezing of the unit tests remains a mystery.

Lenard



Brian Fisher wrote:
buffer over-runs and bad memory access are not guaranteed to crash - especially when they depend on uninitialized memory or the behavior is dependent on timing. If it crashed before, but not now, that may be why.

FYI, the crashes that are stopping my automated build page from passing tests appears to be in _numericsurfarray.pyd - I haven't looked into it more yet.

On Sat, Jun 21, 2008 at 5:39 PM, Nicholas Dudfield <ndudfield@xxxxxxxxx <mailto:ndudfield@xxxxxxxxx>> wrote:

    All is working fine now, I briefly had a weird crash of HEAD
    compiled here but I can't repeat it. The tests work and are
    passing now.