id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
301	Failing wx assertion in the new PluginManager dialog	tsee		"wxWidgets comes with all sorts of assertions that are only visible in the debugging build. We should pay attention to them. I fixed a few failing assertions the other day, but there's still some left in the new PluginManager dialog that I couldn't fix yet:

It all comes down to having ImageLists with a certain size and putting images (err, icons or bitmaps or whatever) into it that have the wrong dimensions. I still don't know why the assertion is like follows, but it seems the height needs to be exactly the same as that of the imagelist and the width needs to be smaller or equal (see below). Maybe one can make this flexible by setting the width or height to zero as hinted at below. Since this is fixable at the perl (or gimp) level by others, I have to leave it at that for now. Sorry.

When opening the dialog, you get this popup:
ASSERT INFO:
../src/generic/imaglist.cpp(69): assert ""(bitmap.GetWidth() >= m_width && bitmap.GetHeight() == m_height) || (m_width == 0 && m_height == 0)"" failed in Add(): invalid bitmap size in wxImageList: this might work on this platform but definitely won't under Windows.

BACKTRACE:
[1] wxGenericImageList::Add(wxBitmap const&)
[2] wxGenericImageList::Add(wxBitmap const&, wxBitmap const&)
[3] XS_Wx__ImageList_AddBitmap()
[4] Perl_pp_entersub() /home/tsee/bleadperl/perl5.10-ssh/pp_hot.c:2891
[5] Perl_runops_debug() /home/tsee/bleadperl/perl5.10-ssh/dump.c:1968
[6] Perl_call_sv() /home/tsee/bleadperl/perl5.10-ssh/perl.c:2704
[7] XS_Wx__ImageList_Add()
[8] Perl_pp_entersub() /home/tsee/bleadperl/perl5.10-ssh/pp_hot.c:2891
[9] Perl_runops_debug() /home/tsee/bleadperl/perl5.10-ssh/dump.c:1968
[10] Perl_call_sv() /home/tsee/bleadperl/perl5.10-ssh/perl.c:2719
[11] wxPliEventCallback::Handler(wxEvent&)
[12] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) cons)
[13] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[14] wxEvtHandler::SearchDynamicEventTable(wxEvent&)
[15] wxEvtHandler::ProcessEvent(wxEvent&)
[16] wxEvtHandler::ProcessEvent(wxEvent&)
[17] g_closure_invoke()
[18] g_signal_emit_valist()
[19] g_signal_emit()
[20] gtk_widget_activate()
[21] gtk_menu_shell_activate_item()
[22] g_closure_invoke()
[23] g_signal_emit_valist()
[24] g_signal_emit()
[25] gtk_propagate_event()
[26] gtk_main_do_event()
[27] g_main_context_dispatch()
[28] g_main_loop_run()
[29] gtk_main()
[30] wxEventLoop::Run()
[31] wxAppBase::MainLoop()
[32] wxPliApp::MainLoop()
[33] XS_Wx__App_MainLoop()


"	defect	closed	major		editor	0.34	fixed		
