Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

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

(1/1)

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


--- Code: ---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

--- End code ---

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


--- Code: ---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

--- End code ---

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.

Xesfeder:
I am really appreciative of this.

Navigation

[0] Message Index

Go to full version