The application I have goes into an endless loop of these two errors. It is rare enough that it took me 6 months to even replicate what the user was reporting to me, so I figured I would post them here and see if anyone can point me in a direction to look for whats causing it.
Traceback (most recent call last):
File "C:\Documents and Settings\Owner\Desktop\openrpg dev\openrpg1\orpg\mapper
\map.py", line 286, in on_paint
self.layers['bg'].layerDraw(dc,scale,topleft,clientsize)
File "C:\Documents and Settings\Owner\Desktop\openrpg dev\openrpg1\orpg\mapper
\background.py", line 216, in layerDraw
dc.Blit(posx,posy,w-cr-cl,h-cb-ct,dc2,cl,ct)
File “C:\Python24\lib\site-packages\wx-2.6-msw-ansi\wx_gdi.py”, line 3240, in
Blit
return _gdi_.DC_Blit(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion “wxAssertFailure” failed in …\src\m
sw\dc.cpp(2584): failed to get raw data in wxAlphaBlend
Traceback (most recent call last):
File "C:\Documents and Settings\Owner\Desktop\openrpg dev\openrpg1\orpg\mapper
\map.py", line 286, in on_paint
self.layers['bg'].layerDraw(dc,scale,topleft,clientsize)
File "C:\Documents and Settings\Owner\Desktop\openrpg dev\openrpg1\orpg\mapper
\background.py", line 138, in layerDraw
dc2.SelectObject(self.bg_bmp)
File “C:\Python24\lib\site-packages\wx-2.6-msw-ansi\wx_gdi.py”, line 4275, in
SelectObject
return _gdi_.MemoryDC_SelectObject(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion “wxAssertFailure” failed in …\src\m
sw\dcmemory.cpp(133): Couldn’t select a bitmap into wxMemoryDC