Re: assert "can't call Profile methods before CreateGlobalConfig()"

Nerijus Baliunas <[email protected]> Thu, 19 Nov 2009 19:31:23 +0200
Newsgroups gmane.mail.mahogany.devel
Message-ID <[email protected]>
On Thu, 19 Nov 2009 18:16:45 +0100 Vadim Zeitlin <[email protected]> wrote:

VZ>  It would be interesting to know why did it decide to quit. I have a strong
VZ> suspicion that it had already crashed in fact and was trying to exit via
VZ> OnFatalException() when it crashed again.

Seems so. I will send you a message separately. A few more similar asserts, and then segfault:
*** Caught unhandled unknown exception; terminating
19:25:38: Debug: .src/classes/Profile.cpp(869): assert "gs_allConfigSources" failed in readEntry(): can't call Profile methods before CreateGlobalConfig()
19:25:43: Debug: .src/classes/Profile.cpp(963): assert "gs_allConfigSources" failed in DoWriteEntry(): can't call Profile methods before CreateGlobalConfig()
19:25:51: Debug: .src/classes/Profile.cpp(869): assert "gs_allConfigSources" failed in readEntry(): can't call Profile methods before CreateGlobalConfig()
19:25:53: Debug: .src/classes/Profile.cpp(869): assert "gs_allConfigSources" failed in readEntry(): can't call Profile methods before CreateGlobalConfig()

Program received signal SIGSEGV, Segmentation fault.
0x081162bb in Profile::readEntry (this=0x0, key=..., defaultvalue=0x843640c "60:80:80:200:300:40", 
    found=0x0) at .src/classes/Profile.cpp:623
623	   PCHECK();
(gdb) bt
#0  0x081162bb in Profile::readEntry (this=0x0, key=..., defaultvalue=
    0x843640c "60:80:80:200:300:40", found=0x0) at .src/classes/Profile.cpp:623
#1  0x081825a7 in GetDefaultColumnWidths () at .src/gui/wxFolderView.cpp:980
#2  0x08182780 in ReadColumnWidths (profile=0x88532f0) at .src/gui/wxFolderView.cpp:1000
#3  0x08187f90 in wxFolderListCtrl::GetColWidths (this=0x8856f68) at .src/gui/wxFolderView.cpp:2665
#4  0x08187bd0 in wxFolderListCtrl::SaveColWidths (this=0x8856f68)
    at .src/gui/wxFolderView.cpp:2619
#5  0x0818d516 in wxFolderView::DoClear (this=0x8856938, keepTheViewer=false)
    at .src/gui/wxFolderView.cpp:3969
#6  0x0818d8f7 in wxFolderView::SetFolder (this=0x8856938, mf=0x0)
    at .src/gui/wxFolderView.cpp:4070
#7  0x08195256 in wxFolderView::Clear (this=0x8856938) at /a/M/M/include/gui/wxFolderView.h:205
#8  0x0818a878 in wxFolderView::~wxFolderView (this=0x8856938, __in_chrg=<value optimized out>)
    at .src/gui/wxFolderView.cpp:3401
#9  0x081c2f72 in wxMainFolderView::~wxMainFolderView (this=0x8856938, 
    __in_chrg=<value optimized out>) at .src/gui/wxMainFrame.cpp:181
#10 0x081bfd0d in wxMainFrame::~wxMainFrame (this=0x8716008, __in_chrg=<value optimized out>)
    at .src/gui/wxMainFrame.cpp:1339
#11 0xb7b1876c in wxAppBase::CleanUp (this=0x8690ef8) at ../wxWidgets/src/common/appcmn.cpp:121
#12 0xb7a4929d in wxApp::CleanUp (this=0x8690ef8) at ../wxWidgets/src/gtk/app.cpp:464
#13 0xb777e3b6 in wxEntryCleanup () at ../wxWidgets/src/common/init.cpp:406
#14 0xb777e70b in wxUninitialize () at ../wxWidgets/src/common/init.cpp:522
#15 0xb777e88d in wxInitializer::~wxInitializer (this=0xbffff3af, __in_chrg=<value optimized out>)
    at ../wxWidgets/include/wx/init.h:104
#16 0xb777e529 in wxEntry (argc=@0xb78d44d4, argv=0x8673888)
    at ../wxWidgets/src/common/init.cpp:464
#17 0xb777e571 in wxEntry (argc=@0xbffff410, argv=0xbffff4b4)
    at ../wxWidgets/src/common/init.cpp:474
#18 0x081c30a1 in main (argc=1, argv=0xbffff4b4) at .src/gui/wxMApp.cpp:347

VZ>  BTW, which version of gdb do you use that shows wide char strings
VZ> properly? I want it too...

GNU gdb (GDB) Fedora (7.0-3.fc12)

Regards,
Nerijus

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july