aMule Forum

English => aMule crashes => Topic started by: Radek on February 23, 2008, 01:28:40 PM

Title: amulegui.exe/Win32 - SVN20080223 - crash after initial dialog
Post by: Radek on February 23, 2008, 01:28:40 PM
Hi!

I just had this crash in amulegui.exe (WinXP):

Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
0x00418732 in CamuleDlg::ShowConnectionState() (this=0x56dcda0)
    at p:/sources/amule-cvs/src/amuleDlg.cpp:721
721                     toolbarTool->SetLabel(_("Disconnect"));
Current language:  auto; currently c++
(gdb) bt
#0  0x00418732 in CamuleDlg::ShowConnectionState() (this=0x56dcda0)
    at p:/sources/amule-cvs/src/amuleDlg.cpp:721
#1  0x0041ee39 in CamuleDlg::Apply_Toolbar_Skin(wxToolBar*) (this=0x56dcda0,
    wndToolbar=0x571e5f8) at p:/sources/amule-cvs/src/amuleDlg.cpp:1318
#2  0x0041f020 in CamuleDlg::Create_Toolbar(bool) (this=0x56dcda0,
    orientation=false) at p:/sources/amule-cvs/src/amuleDlg.cpp:1336
#3  0x004150d7 in CamuleDlg::CamuleDlg(wxWindow*, wxString const&, wxPoint, wxSize) (this=0x56dcda0, pParent=0x0, title=@0x5696a08, where={x = -1, y = -1},
    dlg_size={x = 800, y = 600}) at p:/sources/amule-cvs/src/amuleDlg.cpp:251
#4  0x004115cd in CamuleGuiBase::InitGui(bool, wxString&) (this=0x5696a04,
    geometry_enabled=false, geom_string=@0x22f978)
    at p:/sources/amule-cvs/src/amule-gui.cpp:203
#5  0x00405037 in CamuleRemoteGuiApp::InitGui(bool, wxString&) (
    this=0x56969b0, geometry_enabled=false, geom_string=@0x22f978)
    at p:/sources/amule-cvs/src/amule-remote-gui.cpp:397
#6  0x00404bf9 in CamuleRemoteGuiApp::Startup() (this=0x56969b0)
    at p:/sources/amule-cvs/src/amule-remote-gui.cpp:376
#7  0x00403d59 in CamuleRemoteGuiApp::OnECInitDone(wxEvent&) (this=0x56969b0)
    at p:/sources/amule-cvs/src/amule-remote-gui.cpp:313
#8  0x006c9cf5 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
#9  0x006ca04c in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) ()
#10 0x006cb119 in wxEvtHandler::ProcessEvent(wxEvent&) ()
#11 0x006caecd in wxEvtHandler::ProcessPendingEvents() ()
#12 0x006c57c4 in wxAppConsole::ProcessPendingEvents() ()
#13 0x008ff4fd in _ZN18wxIdleWakeUpModule11MsgHookProcEijl@12 ()
#14 0x7e36f84a in _libkernel32_a_iname ()
#15 0x7e36f7f6 in _libkernel32_a_iname ()
#16 0x7e36f94b in _libkernel32_a_iname ()
#17 0x7c91eae3 in _libkernel32_a_iname ()
#18 0x00620954 in wxEventLoop::Dispatch() ()
#19 0x00620d46 in wxEventLoopManual::Run() ()
#20 0x0057c9ce in wxAppBase::MainLoop() ()
#21 0x007591b7 in wxEntryReal(int&, wchar_t**) ()
#22 0x0057f60a in wxEntry(HINSTANCE__*, HINSTANCE__*, char*, int) ()
#23 0x00402a36 in WinMain (hInstance=0x400000, hPrevInstance=0x0,
    lpCmdLine=0x251f14 "", nCmdShow=10)
    at p:/sources/amule-cvs/src/amule-remote-gui.cpp:287
#24 0x0087fda8 in main ()

It happened after the initial dialog and before the main window was showing...

Cheers
Title: Re: amulegui.exe/Win32 - SVN20080223 - crash after initial dialog
Post by: Xaignar on February 23, 2008, 01:36:27 PM
Hmm, I think I know what's wrong.
Can you try adding a call to "wndToolbar->Realize()" before the call to "ShowConnectionState()" in CamuleDlg::Apply_Toolbar_Skin (amuleDlg.cpp:1316)?
Title: Re: amulegui.exe/Win32 - SVN20080223 - crash after initial dialog
Post by: Radek on February 23, 2008, 02:13:17 PM
@Xaignar
Works as intended - no crash anymore 8)
Title: Re: amulegui.exe/Win32 - SVN20080223 - crash after initial dialog
Post by: Xaignar on February 23, 2008, 02:18:29 PM
Great, I'll commit the fix.