Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: blauzahn on December 16, 2018, 03:45:58 pm

Title: wxsmith: wxwidgets 3.1 assert "bitmapSize == m_size" failed
Post by: blauzahn on December 16, 2018, 03:45:58 pm
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

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

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.
Title: Re: wxsmith: wxwidgets 3.1 assert "bitmapSize == m_size" failed
Post by: oBFusCATed on December 16, 2018, 06:01:40 pm
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.
Title: Re: wxsmith: wxwidgets 3.1 assert "bitmapSize == m_size" failed
Post by: Xesfeder on January 08, 2019, 08:02:01 am
I am really appreciative of this.