File "/mnt/hda9/simonb/local/wxPython-src-2.6.3.3/wxPython/demo/Main.py", line 1033, in __init__
self.SetIcon(icon, "wxPython Demo")
File "/home/users/simonb/lib/python2.4/site-packages/wx/_windows.py", line 2234, in SetIcon
return _windows_.TaskBarIcon_SetIcon(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in ../src/gtk/bitmap.cpp(1246): invalid bitmap
Hmm... all the icons used for the task bar icon in the demo come from the images.py module, so normally there should be nothing that could cause them to be invalid. Unless there is some problem with the image handler code. Did you notice any compile problems with the wx PNG image handler or the PNG lib?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
On Fri, 21 Jul 2006 17:59:55 +1000 Simon Burton <simon@arrowtheory.com> wrote:
File "/home/users/simonb/lib/python2.4/site-packages/wx/_windows.py", line 2234, in SetIcon
return _windows_.TaskBarIcon_SetIcon(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in ../src/gtk/bitmap.cpp(1246): invalid bitmap
--
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 2 6249 6940 http://arrowtheory.com
On Tue, 25 Jul 2006 16:03:31 +1000 > Simon Burton <simon@arrowtheory.com> wrote:
On Fri, 21 Jul 2006 17:59:55 +1000 >> Simon Burton <simon@arrowtheory.com> wrote:
File "/home/users/simonb/lib/python2.4/site-packages/wx/_windows.py", line 2234, in SetIcon
return _windows_.TaskBarIcon_SetIcon(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in ../src/gtk/bitmap.cpp(1246): invalid bitmap
I ran a gdb session. No idea if any of this is useful:
[many of these...]
Breakpoint 1, wxBitmap::GetWidth (this=0xbfffafb0) at ../src/gtk/bitmap.cpp:1246
1246 wxCHECK_MSG( Ok(), -1, wxT("invalid bitmap") );
(gdb) Continuing.
Sorry, it's not really helpful. We need to figure out where/why the bitmap is flagged as invalid. By the time it gets to this line it is already invalid (the Ok method returns false.) If you can trace through the loading of the image and converting it to a wxBitmap then that at least help identify the problem.
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!