Author Topic: wxsmith: wxwidgets 3.1 assert "bitmapSize == m_size" failed  (Read 1708 times)

Offline blauzahn

  • Multiple posting newcomer
  • *
  • Posts: 104
wxsmith: wxwidgets 3.1 assert "bitmapSize == m_size" failed
« 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: [Select]
../trunk/src/generic/imaglist.cpp(85): assert "bitmapSize == m_size" failed in Add(): All bitmaps in wxImageList must have the same size

[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: [Select]

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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12613
    • Travis build status
Re: wxsmith: wxwidgets 3.1 assert "bitmapSize == m_size" failed
« Reply #1 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.
(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!]

Offline Xesfeder

  • Single posting newcomer
  • *
  • Posts: 2
Re: wxsmith: wxwidgets 3.1 assert "bitmapSize == m_size" failed
« Reply #2 on: January 08, 2019, 08:02:01 am »
I am really appreciative of this.