Error on startup - "invalid image"

Bug #786597 reported by Steven Sproat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Whyteboard
Confirmed
High
Steven Sproat

Bug Description

Getting frequent bug reports with this stacktrace:

Traceback (most recent call last):
 File \"whyteboard.py\", 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.

Tags: windows
Revision history for this message
Steven Sproat (sproaty) wrote :

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

Revision history for this message
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

Revision history for this message
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.

Revision history for this message
Steven Sproat (sproaty) wrote :

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

Steven Sproat (sproaty)
Changed in whyteboard:
milestone: 0.42 → 0.43
Steven Sproat (sproaty)
Changed in whyteboard:
milestone: 0.43 → 1.0.x
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.