Author Topic: Compiling with wx debug lib  (Read 4139 times)

KyroMaster

  • Guest
Compiling with wx debug lib
« on: September 23, 2005, 03:33:51 pm »
I compiled the latest CVS with a wx debug 2.6.1 build on my linux box.
When starting I get one assertion of this type:

./src/generic/treectlg.cpp(3547): assert "wxAssertFailure" failed: thawing unfrozen tree control?

Call stack:
[05] wxStackWalker::Walk(unsigned int)       
[06] 0x409d9642
[07] 0x409d97d2
[08] wxAppConsole::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[09] wxApp::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[10] wxOnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[11] wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*)
[12] wxGenericTreeCtrl::Thaw()               
[13] ProjectManager::UnfreezeTree(bool)     
[14] ProjectManager::BuildTree(wxWindow*)   
[15] ProjectManager::InitPane()             
[16] ProjectManager::ProjectManager(wxNotebook*)
[17] ProjectManager::Get(wxNotebook*)       
[18] Manager::GetProjectManager()           
[19] 0x080746f6
[20] 0x080755de
[21] 0x08075e7f
[22] 0x0805f676
[23] 0x0805ffe3
[24] wxAppConsole::CallOnInit()             

and then many (more than 20) of this type:

./src/generic/imaglist.cpp(81): assert "(bitmap.GetWidth() == m_width && bitmap.GetHeight() == m_height) || (m_width == 0 && m_height == 0)" failed: invalid bitmap size in wxImageList: this might work on this platform but definitely won't under Windows.

Call stack:
[05] wxStackWalker::Walk(unsigned int)       
[06] 0x409d9642
[07] 0x409d97d2
[08] wxAppConsole::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[09] wxApp::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[10] wxOnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[11] wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*)
[12] wxGenericImageList::Add(wxBitmap const&)
[13] EditorManagerInternalData::BuildTree(wxTreeCtrl*)
[14] EditorManager::BuildOpenedFilesTree(wxWindow*)
[15] EditorManager::InitPane()               
[16] EditorManager::ShowOpenFilesTree(bool) 
[17] EditorManager::EditorManager(wxWindow*)
[18] EditorManager::Get(wxWindow*)           
[19] Manager::GetEditorManager()             
[20] 0x08074714
[21] 0x080755de
[22] 0x08075e7f
[23] 0x0805f676
[24] 0x0805ffe3
[25] wxAppConsole::CallOnInit()             

Codeblocks does work, but IMHO it´s better to report the assert failures here

grv575

  • Guest
Re: Compiling with wx debug lib
« Reply #1 on: September 23, 2005, 06:47:28 pm »
Yeah those are known.  The thaws() before freeze() are a workaround of some previous bug I believe.  The height, width mismatch don't seem to cause problems on either platform (that I'm aware of) but I haven't looking into this one in more depth.  You can safely ignore those asserts - but do report other ones if they occur.

The app runs fine if you chose not to display any more asserts on linux w/ wx debug build?  I had a problem where it would look like it just sits there forever.  Maybe it's fixed in latest CVS, or at least it should work properly (I can see what's wrong with my setup) if you got it to work.