Error on startup - "invalid image"

Bug #786597 reported by Steven Sproat on 2011-05-22
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Steven Sproat

Bug Description

Getting frequent bug reports with this stacktrace:

Traceback (most recent call last):
 File \"\", line 49, in <module>
 File \"wx\\_core.pyo\", line 7978, in __init__
 File \"wx\\_core.pyo\", line 7552, in _BootstrapApp
 File \"whyteboard\\gui\\app.pyo\", line 61, in OnInit
 File \"whyteboard\\gui\\frame.pyo\", line 115, in __init__
 File \"whyteboard\\gui\\panels.pyo\", line 76, in __init__
 File \"whyteboard\\gui\\panels.pyo\", line 180, in make_toolbox
 File \"wx\\lib\\buttons.pyo\", line 395, in __init__
 File \"wx\\lib\\buttons.pyo\", line 432, in SetBitmapLabel
 File \"wx\\_core.pyo\", line 3473, in ImageFromBitmap
PyAssertionError: C++ assertion \"bmp.Ok()\" failed at ..\\..\\src\\msw\\dib.cpp(148) in wxDIB::Create(): wxDIB::Create(): invalid bitmap

I'm wondering what's causing it -- images not existing?

Reported on:
 - Windows 7
 - Windows Vista SP2
 - Windows XP SP2

Seems to be a Windows-only problem. Perhaps the images aren't being found? I'll have to investigate.

Steven Sproat (sproaty) wrote :

On linux, renaming the images folder causes a segfault.
Will test under windows.

Steven Sproat (sproaty) wrote :

not having the images folder triggers the problem on windows, and it also tells the user that it was unable to load the image at the given path

Steven Sproat (sproaty) wrote :

the question is why the images folder isn't found.

is the program looking into the wrong location?

because if the images folder doesn't exist then it most definitely should -- all distributions contain it bundled (installer/rpm/deb/exe/source) so this could be an invalid bug

but too many people have reported it. seems odd.

Steven Sproat (sproaty) wrote :

I keep getting error reports of this but don't know what the problem is.

Steven Sproat (sproaty) on 2011-09-11
Changed in whyteboard:
milestone: 0.42 → 0.43
Steven Sproat (sproaty) on 2012-02-12
Changed in whyteboard:
milestone: 0.43 → 1.0.x
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers