[ wxwindows-Bugs-1633829 ] Crash in wxFrame::GetClientAreaOrigin
SourceForge.net
noreply at sourceforge.net
Thu Jan 11 23:57:05 PST 2007
Bugs item #1633829, was opened at 2007-01-12 07:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1633829&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxMac specific
Group: Fatal
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Marc Esipovich (marcsparc)
Assigned to: Stefan Csomor (csomor)
Summary: Crash in wxFrame::GetClientAreaOrigin
Initial Comment:
Hi,
Building on OSX 1.4.7 Intel with the latest XCode package and the following configure line:
./configure --with-zlib --with-expat --with-libpng --with-libjpeg --with-libtiff --with-libxpm --enable-threads --enable-xpm --enable-unicode --enable-intl --disable-memory_tracing --disable-debug --disable-debug_info --disable-debug_cntxt --disable-mem_tracing --enable-exceptions --disable-no_exceptions --disable-toolbar
A crash is seem at application startup, here is the backtrace:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xa1b1c1d3
0x00083d14 in wxFrame::GetClientAreaOrigin (this=0xa1b1c1d3) at frame.cpp:82
82 if ( toolbar && toolbar->IsShown() )
(gdb) bt
#0 0x00083d14 in wxFrame::GetClientAreaOrigin (this=0xa1b1c1d3) at frame.cpp:82
#1 0x0003895d in wxWindowBase::AdjustForParentClientOrigin (this=0x2824400, x=@0xbfffefdc, y=@0xbfffefd8, sizeFlags=<value optimized out>) at wincmn.cpp:2099
#2 0x00069bf3 in wxWindow::MacGetBoundsForControl (this=0x2824400, pos=@0x0, size=@0x7a091, x=@0xbfffefdc, y=@0xbfffefd8, w=@0xbfffefd4, h=@0xbfffefd0, adjustOrigin=true) at window.cpp:1361
#3 0x00069c4a in wxMacGetBoundsForControl (window=0xa1b1c1d3, pos=@0xa1b1c1d3, size=@0xa1b1c1d3, adjustForOrigin=true) at window.cpp:3324
#4 0x0006e8e5 in wxWindow::Create (this=0x2824400, parent=0x281c200, id=0, pos=@0x3091e8, size=@0x3091f0, style=589840, name=@0xbffff35c) at window.cpp:1035
#5 0x0019d20c in wxStatusBarGeneric::Create (this=0x2824400, parent=0xa1b1c1d3, id=-1582186029, style=65552, name=@0xa1b1c1d3) at statusbr.cpp:70
#6 0x00123a6c in wxStatusBar::Create (this=0x2824400, parent=0x281c200, id=-1582186029, style=-1582186029, name=@0xa1b1c1d3) at statbrma.cpp:58
#7 0x00124670 in wxStatusBar::wxStatusBar (this=0x2824400, parent=0xa1b1c1d3, id=-1582186029, style=-1582186029, name=@0xa1b1c1d3) at statbrma.cpp:40
#8 0x0008399b in wxFrame::OnCreateStatusBar (this=0xa1b1c1d3, number=-1582186029, style=-1582186029, id=-1582186029, name=@0xa1b1c1d3) at frame.cpp:126
#9 0x0005f25d in wxFrameBase::CreateStatusBar (this=0x281c200, number=4, style=65552, id=0, name=@0xbffff35c) at framecmn.cpp:316
#10 0x00004746 in MainFrame::doStatusBar (this=0x281c200) at SSGUIApp.cpp:134
#11 0x00006ee9 in MainFrame::MainFrame (this=0x281c200, title=@0xbffff460, pos=@0xbffff454, size=@0xbffff44c) at SSGUIApp.cpp:358
#12 0x00007269 in MainFrame::GetInstance () at SSGUIApp.cpp:79
#13 0x0000bc37 in GUIApp::OnInit (this=0x2114fc0) at GUIMain.cpp:69
#14 0x001d7515 in wxAppConsole::CallOnInit (this=0x2114fc0) at /usr/local/include/wx-2.8/wx/app.h:76
#15 0x000a3041 in wxEntry (argc=@0xa1b1c1d3, argv=0xa1b1c1d3) at init.cpp:424
#16 0x000086ba in main (argc=1, argv=0xbffffa14) at GUIMain.cpp:17
(gdb) quit
At: wxToolBar *toolbar = GetToolBar(); toolbar is an invalid pointer, it is not null and therefore causes a crash at that point.
Please contact me through email if you need any further information.
Thanks!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1633829&group_id=9863
More information about the wx-dev
mailing list