[wxMac only?] Exception sample not working

H H at h.com
Tue Jan 22 14:54:24 PST 2008


In article <20080122221024.EEBA78058F58 at bifrost.dotsrc.org>,
 vadim at wxwidgets.org (Vadim Zeitlin) wrote:

> On Tue, 22 Jan 2008 22:47:29 +0100 H <H at h.com> wrote:
> 
> H> Just downloaded trunk revision 51338 and recompiled: still crashes 
> H> badly! It seems to be that the exception is not caught at all and just 
> H> terminate() is called.
> H> 
> H> See dump:
> H> 
> H> Thread 0 Crashed:
> H> 0   libSystem.B.dylib               0x93a25ca8 __kill + 12
> H> 1   libSystem.B.dylib               0x93aca7b4 abort + 84
> H> 2   libstdc++.6.dylib               0x947dee24 
> H> __gnu_cxx::__verbose_terminate_handler() + 400
> H> 3   libstdc++.6.dylib               0x947dc940 __gxx_personality_v0 + 
> H> 1240
> H> 4   libstdc++.6.dylib               0x947dc9a4 std::terminate() + 68
> H> 5   libstdc++.6.dylib               0x947dcbe4 __cxa_throw + 124
> H> 6   org.wxwindows.samples.except    0x00004540 
> H> MyFrame::OnThrowInt(wxCommandEvent&) + 80 (except.cpp:408)
> 
>  Can you please show the continuation of the stack? In particular I'd like
> to know if this handler is called from wxEvtHandler::SafelyProcessEvent()
> or if we forgot to use it somewhere in wxMac code.
> 
>  Thanks,
> VZ

Hi Vadim

wxEvtHandler::SafelyProcessEvent() does not seem to be called.

Thread 0 Crashed:
0   libSystem.B.dylib               0x93a25ca8 __kill + 12
1   libSystem.B.dylib               0x93aca7b4 abort + 84
2   libstdc++.6.dylib               0x947dee24 
__gnu_cxx::__verbose_terminate_handler() + 400
3   libstdc++.6.dylib               0x947dc940 __gxx_personality_v0 + 
1240
4   libstdc++.6.dylib               0x947dc9a4 std::terminate() + 68
5   libstdc++.6.dylib               0x947dcbe4 __cxa_throw + 124
6   org.wxwindows.samples.except    0x00004540 
MyFrame::OnThrowInt(wxCommandEvent&) + 80
7   org.wxwindows.samples.except    0x001f4074 
wxAppConsoleBase::HandleEvent(wxEvtHandler*, void 
(wxEvtHandler::*)(wxEvent&), wxEvent&) const + 136
8   org.wxwindows.samples.except    0x002e1ff0 
wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, 
wxEvtHandler*, wxEvent&) + 360
9   org.wxwindows.samples.except    0x002e25d8 
wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 268
10  org.wxwindows.samples.except    0x002e4014 
wxEvtHandler::ProcessEvent(wxEvent&) + 468
11  org.wxwindows.samples.except    0x00005f98 
MyFrame::ProcessEvent(wxEvent&) + 48
12  org.wxwindows.samples.except    0x001753a0 
wxMenuBase::SendEvent(int, int) + 300
13  org.wxwindows.samples.except    0x00081670 
wxMenu::MacHandleCommandProcess(wxMenuItem*, int, wxWindow*) + 256
14  org.wxwindows.samples.except    0x00029728 
wxMacAppCommandEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, 
void*) + 288
15  org.wxwindows.samples.except    0x0002a0b0 
wxMacAppEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) 
+ 276
16  com.apple.HIToolbox             0x91dead08 
DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, 
HandlerCallRec*) + 1484
17  com.apple.HIToolbox             0x91de9ea0 
SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, 
HandlerCallRec*) + 464
18  com.apple.HIToolbox             0x91e06890 SendEventToEventTarget + 
52
19  com.apple.HIToolbox             0x91e3c824 
SendHICommandEvent(unsigned long, HICommand const*, unsigned long, 
unsigned long, unsigned char, OpaqueEventTargetRef*, 
OpaqueEventTargetRef*, OpaqueEventRef**) + 452
20  com.apple.HIToolbox             0x91e62f90 SendMenuItemSelectedEvent 
+ 136
21  com.apple.HIToolbox             0x91e62e94 
FinishMenuSelection(MenuData*, MenuData*, MenuResult*, MenuResult*, 
unsigned long, unsigned long, unsigned long, unsigned char) + 136
22  com.apple.HIToolbox             0x91e3fcfc MenuSelectCore(MenuData*, 
Point, double, unsigned long, OpaqueMenuRef**, unsigned short*) + 568
23  com.apple.HIToolbox             0x91ecee88 MenuSelect + 100
24  org.wxwindows.samples.except    0x000bcdf4 
wxMacTopLevelMouseEventHandler(OpaqueEventHandlerCallRef*, 
OpaqueEventRef*, void*) + 1372
25  org.wxwindows.samples.except    0x0002a158 
wxMacAppEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) 
+ 444
26  com.apple.HIToolbox             0x91dead08 
DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, 
HandlerCallRec*) + 1484
27  com.apple.HIToolbox             0x91de9ea0 
SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, 
HandlerCallRec*) + 464
28  com.apple.HIToolbox             0x91e06890 SendEventToEventTarget + 
52
29  com.apple.HIToolbox             0x91e1a7bc 
ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, 
OpaqueEventRef*, void*) + 2296
30  com.apple.HIToolbox             0x91deb15c 
DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, 
HandlerCallRec*) + 2592
31  com.apple.HIToolbox             0x91de9ea0 
SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, 
HandlerCallRec*) + 464
32  com.apple.HIToolbox             0x91e06890 SendEventToEventTarget + 
52
33  org.wxwindows.samples.except    0x000276d0 
wxApp::MacHandleOneEvent(void*) + 64
34  org.wxwindows.samples.except    0x000277e8 wxApp::MacDoOneEvent() + 
176
35  org.wxwindows.samples.except    0x0004f728 
wxGUIEventLoop::Dispatch() + 76
36  org.wxwindows.samples.except    0x0022b244 wxEventLoopManual::Run() 
+ 376
37  org.wxwindows.samples.except    0x001f5c1c 
wxAppConsoleBase::MainLoop() + 116
38  org.wxwindows.samples.except    0x001f391c wxAppConsoleBase::OnRun() 
+ 52
39  org.wxwindows.samples.except    0x000f7b3c wxAppBase::OnRun() + 64
40  org.wxwindows.samples.except    0x0025bf28 wxEntry(int&, wchar_t**) 
+ 260
41  org.wxwindows.samples.except    0x0025c2a8 wxEntry(int&, char**) + 84
42  org.wxwindows.samples.except    0x00004438 main + 36
43  org.wxwindows.samples.except    0x000031c4 _start + 756
44  org.wxwindows.samples.except    0x00002ec8 start + 44

Hartwig






More information about the wx-users mailing list