[gtk-osx-users] Crash in libobjc.A.dylib after processing the NSApplicationOpenFile signal, only if a Dialog is displayed



Running on Snow Leopard, working with http://git.gnome.org/browse/gtk-osx/plain/modulesets-stable/gtk-osx.modules and gtk-mac-integration-1.0.1, wrapped in my own VAPI.

After my Vala code has handled the NSApplicationOpenFile signal, and processed the file, my application crashes **if I have displayed a Gtk.MessageDialog in the signal handler**.

If I don't run the dialog, then everything is OK.

Application and VAPI code, and the full crash report are at http://fpaste.org/AU0B/.

Any ideas gratefully received?

The top few lines in the crash report are
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000019f8c0f8
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Application Specific Information:
objc_msgSend() selector name: countByEnumeratingWithState:objects:count:


Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x97f17f94 objc_msgSend + 36
1 com.apple.AppKit 0x9951d969 -[NSApplication(NSAppleEventHandling) _handleAEOpenDocumentsForURLs:] + 883
2 com.apple.AppKit 0x9945afe0 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 236
3 com.apple.Foundation 0x950791f8 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 511
4 com.apple.Foundation 0x95078fbc _NSAppleEventManagerGenericHandler + 228
5 com.apple.AE 0x91f9af5c aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) + 166
6 com.apple.AE 0x91f9ae5b dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 43
7 com.apple.AE 0x91f9ad65 aeProcessAppleEvent + 197
8 com.apple.HIToolbox 0x976920f5 AEProcessAppleEvent + 50
9 com.apple.AppKit 0x992d47d2 _DPSNextEvent + 1420
10 com.apple.AppKit 0x992d3dd6 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
11 libgdk-quartz-2.0.0.dylib 0x006678a1 poll_func + 289
12 libglib-2.0.0.dylib 0x00d0de8b g_main_context_poll + 280
13 libglib-2.0.0.dylib 0x00d0d196 g_main_context_iterate + 1183
14 libglib-2.0.0.dylib 0x00d0da16 g_main_loop_run + 992
15 libgtk-quartz-2.0.0.dylib 0x0025fbcd gtk_main + 239
16 moonshot-ui-bin 0x0000ba11 _vala_main + 137 (moonshot-identity-manager-app.c:467)
17 moonshot-ui-bin 0x0000ba56 main + 29 (moonshot-identity-manager-app.c:476)
18


--
Pete Fotheringham
Codethink Ltd
http://codethink.co.uk


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]