News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

wxsmith: wxwidgets 3.1 assert "bitmapSize == m_size" failed

Started by blauzahn, December 16, 2018, 03:45:58 PM

Previous topic - Next topic

blauzahn

using trunk of cb and wxwidgets on Linux I see during startup 3 annoying assert popups. This started several weeks ago.


ASSERT INFO:
../trunk/src/generic/imaglist.cpp(85): assert "bitmapSize == m_size" failed in Add(): All bitmaps in wxImageList must have the same size

BACKTRACE:
[1] wxGenericImageList::Add(wxBitmap const&)
[2] wxsResourceTree::LoadImage(wxString const&)
[3] wxsAutoResourceTreeImage::wxsAutoResourceTreeImage(wxString const&, bool)
[4] wxsRegisterItem<wxsStaticBitmap>::wxsRegisterItem(wxString, wxsItemType, wxString, long, bool)
[5] _dl_catch_exception
[6] _dl_catch_exception
[7] _dl_catch_error
[8] dlopen
[9] wxDynamicLibrary::RawLoad(wxString const&, int)
[10] wxDynamicLibrary::Load(wxString const&, int)
[11] PluginManager::LoadPlugin(wxString const&)
[12] PluginManager::ScanForPlugins(wxString const&)
[13] wxEntry(int&, wchar_t**)
[14] __libc_start_main


The reason is that the following wxsmith bitmaps do not have the correct size (16x16 or 32x32):


src/plugins/contrib/wxSmithContribItems/wxSmithKWIC/images/bmpchk16.xpm
src/plugins/contrib/wxSmithContribItems/wxled/images/wxLcdWindow32.xpm
src/plugins/contrib/wxSmithContribItems/wxSmithKWIC/images/bmpswi16.xpm
trunk/src/plugins/contrib/wxSmith/wxwidgets/icons/wxStaticBitmap16.png


The attached patch against svn 11530 fixes the xpm-files. The png is separate since by default it is excluded by svn diff. The Images were cropped with gimp. The patch was made as per cb wiki.

If appropriate, can somebody reverify and apply this, please?

Thank you in advance.

oBFusCATed

Yesterday I've made a fix which is still local for this. But on linux I don't see the assert for the LCD image... Strange.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]