Ticket #14906 (closed defect: fixed)
OS X - wxPython - wx.FileDialog crashes in sandboxed app
| Reported by: | geraldspreer | Owned by: | csomor |
|---|---|---|---|
| Priority: | critical | Milestone: | 2.9.5 |
| Component: | wxOSX (any toolkit) | Version: | 2.9.4 |
| Keywords: | Cc: | artlogic@… | |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
I have a python app built on OS X Mountain Lion with py2app. Everything works fine, even with the built app bundle - code signed and all.
However when I enable the sandbox which is required for new submission to the Mac App Store, the wx.FileDialog crashes. I can assure you there is nothing wrong with the python code since it is running interpreted and also as an app (and has been for the past 7 years).
Just not in the OS X sandbox.
I have tried Python 2.6 and 2.7. and wxPython all the way from 2.8 to 2.9
no matter carbon or cocoa it is the same issue.
The wx.DirDialog works however...
Please fix - thanks... Gerald
Below is the dump from OS X:
Date/Time: 2012-12-16 05:39:41.463 -0600
OS Version: Mac OS X 10.8.2 (12C60)
Report Version: 10
Interval Since Last Report: 73228 sec
Crashes Since Last Report: 44
Per-App Interval Since Last Report: 3138 sec
Per-App Crashes Since Last Report: 38
Anonymous UUID: AA5BDA76-7BA4-0D0A-0487-A19B3FB6AE08
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Application Specific Information:
*** CFRetain() called with NULL ***
Performing @selector(clickedAction:) from sender wxNSMenuItem 0x104b4a4a0
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.CoreFoundation 0x00007fff8bf5709d CFRetain + 29
1 libwx_osx_cocoau-2.9.4.0.0.dylib 0x00000001022a54db wxWidgetImpl::CreateContentView(wxNonOwnedWindow*) + 107
2 libwx_osx_cocoau-2.9.4.0.0.dylib 0x00000001021c5c95 wxNonOwnedWindow::SubclassWin(NSWindow*) + 165
3 libwx_osx_cocoau-2.9.4.0.0.dylib 0x00000001021c528c wxNonOwnedWindow::Create(wxWindow*, NSWindow*) + 60
4 libwx_osx_cocoau-2.9.4.0.0.dylib 0x000000010228795a wxFileDialog::SetupExtraControls(NSWindow*) + 42
5 libwx_osx_cocoau-2.9.4.0.0.dylib 0x000000010228b5c1 wxFileDialog::ShowModal() + 929
6 _windows_.so 0x000000010396e7b6 _wrap_Dialog_ShowModal + 102
7 org.python.python 0x00000001018bf2c2 PyEval_EvalFrameEx + 26306
8 org.python.python 0x00000001018c1149 PyEval_EvalCodeEx + 2137
9 org.python.python 0x00000001018bea3d PyEval_EvalFrameEx + 24125
10 org.python.python 0x00000001018c1149 PyEval_EvalCodeEx + 2137
11 org.python.python 0x00000001018bea3d PyEval_EvalFrameEx + 24125
12 org.python.python 0x00000001018bf86d PyEval_EvalFrameEx + 27757
13 org.python.python 0x00000001018c1149 PyEval_EvalCodeEx + 2137
14 org.python.python 0x00000001018bea3d PyEval_EvalFrameEx + 24125
15 org.python.python 0x00000001018c1149 PyEval_EvalCodeEx + 2137
16 org.python.python 0x000000010183a910 PyClassMethod_New + 800
17 org.python.python 0x0000000101809362 PyObject_Call + 98
18 org.python.python 0x000000010181b97b PyInstance_NewRaw + 1099
19 org.python.python 0x0000000101809362 PyObject_Call + 98
20 org.python.python 0x00000001018b7947 PyEval_CallObjectWithKeywords + 87
21 _core_.so 0x0000000101dd9c3f wxPyCallback::EventThunker(wxEvent&) + 319
22 libwx_osx_cocoau-2.9.4.0.0.dylib 0x000000010218cb94 wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 84
23 libwx_osx_cocoau-2.9.4.0.0.dylib 0x000000010218dc2f wxEvtHandler::SearchDynamicEventTable(wxEvent&) + 111
24 libwx_osx_cocoau-2.9.4.0.0.dylib 0x000000010218ec5a wxEvtHandler::TryHereOnly(wxEvent&) + 42
25 libwx_osx_cocoau-2.9.4.0.0.dylib 0x000000010218eccb wxEvtHandler::ProcessEventLocally(wxEvent&) + 59
26 libwx_osx_cocoau-2.9.4.0.0.dylib 0x000000010218ed35 wxEvtHandler::ProcessEvent(wxEvent&) + 69
27 libwx_osx_cocoau-2.9.4.0.0.dylib 0x000000010218e746 wxEvtHandler::SafelyProcessEvent(wxEvent&) + 22
28 libwx_osx_cocoau-2.9.4.0.0.dylib 0x00000001023ba9a0 wxWindowBase::HandleWindowEvent(wxEvent&) const + 16
29 libwx_osx_cocoau-2.9.4.0.0.dylib 0x000000010236d6ab wxMenuBase::SendEvent(int, int) + 219
30 libwx_osx_cocoau-2.9.4.0.0.dylib 0x00000001021f2131 wxMenu::HandleCommandProcess(wxMenuItem*, wxWindow*) + 97
31 com.apple.AppKit 0x00007fff8b196a59 -[NSApplication sendAction:to:from:] + 342
32 com.apple.AppKit 0x00007fff8b2cc44c -[NSMenuItem _corePerformAction] + 406
33 com.apple.AppKit 0x00007fff8b2cc13a -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 133
34 com.apple.AppKit 0x00007fff8afb946f -[NSMenu _internalPerformActionForItemAtIndex:] + 36
35 com.apple.AppKit 0x00007fff8afb92f7 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 135
36 com.apple.AppKit 0x00007fff8b2c5245 NSSLMMenuEventHandler + 342
37 com.apple.HIToolbox 0x00007fff8de65f0a DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1206
38 com.apple.HIToolbox 0x00007fff8de653d9 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 410
39 com.apple.HIToolbox 0x00007fff8de7b1bd SendEventToEventTarget + 40
40 com.apple.HIToolbox 0x00007fff8deb1e89 SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned int, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) + 443
41 com.apple.HIToolbox 0x00007fff8de56c11 SendMenuCommandWithContextAndModifiers + 59
42 com.apple.HIToolbox 0x00007fff8de56bc3 SendMenuItemSelectedEvent + 254
43 com.apple.HIToolbox 0x00007fff8de56a4f FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 94
44 com.apple.HIToolbox 0x00007fff8de32aab MenuSelectCore(MenuData*, Point, double, unsigned int, OpaqueMenuRef**, unsigned short*) + 605
45 com.apple.HIToolbox 0x00007fff8de320b8 _HandleMenuSelection2 + 565
46 com.apple.AppKit 0x00007fff8b1849c6 _NSHandleCarbonMenuEvent + 245
47 com.apple.AppKit 0x00007fff8b0a6b7f _DPSNextEvent + 2073
48 com.apple.AppKit 0x00007fff8b0a5ed2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
49 com.apple.AppKit 0x00007fff8b09d283 -[NSApplication run] + 517
50 libwx_osx_cocoau-2.9.4.0.0.dylib 0x00000001022870b3 wxGUIEventLoop::DoRun() + 51
51 libwx_osx_cocoau-2.9.4.0.0.dylib 0x000000010215a607 wxCFEventLoop::Run() + 55
52 libwx_osx_cocoau-2.9.4.0.0.dylib 0x000000010205f6d8 wxAppConsoleBase::MainLoop() + 72
53 _core_.so 0x0000000101dd4c3c wxPyApp::MainLoop() + 76
54 _core_.so 0x0000000101e2044f _wrap_PyApp_MainLoop + 79
55 org.python.python 0x00000001018bf2c2 PyEval_EvalFrameEx + 26306
56 org.python.python 0x00000001018c1149 PyEval_EvalCodeEx + 2137
57 org.python.python 0x000000010183a910 PyClassMethod_New + 800
58 org.python.python 0x0000000101809362 PyObject_Call + 98
59 org.python.python 0x000000010181b97b PyInstance_NewRaw + 1099
60 org.python.python 0x0000000101809362 PyObject_Call + 98
61 org.python.python 0x00000001018bc2c8 PyEval_EvalFrameEx + 14024
62 org.python.python 0x00000001018bf86d PyEval_EvalFrameEx + 27757
63 org.python.python 0x00000001018bf86d PyEval_EvalFrameEx + 27757
64 org.python.python 0x00000001018c1149 PyEval_EvalCodeEx + 2137
65 org.python.python 0x00000001018c076f PyEval_EvalFrameEx + 31599
66 org.python.python 0x00000001018c1149 PyEval_EvalCodeEx + 2137
67 org.python.python 0x00000001018bea3d PyEval_EvalFrameEx + 24125
68 org.python.python 0x00000001018c1149 PyEval_EvalCodeEx + 2137
69 org.python.python 0x00000001018c1266 PyEval_EvalCode + 54
70 org.python.python 0x00000001018e5ede PyRun_FileExFlags + 174
71 org.python.python 0x00000001018e6199 PyRun_SimpleFileExFlags + 489
72 com.barnhouse.maker 0x00000001000043f6 start + 13830
73 com.barnhouse.maker 0x0000000100004b6e main + 1438
74 com.barnhouse.maker 0x0000000100000e24 start + 52
Thread 1:
0 libsystem_kernel.dylib 0x00007fff8a06b6d6 workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff89378eec _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff89378cb3 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff89363171 start_wqthread + 13
Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff8a06bd16 kevent + 10
1 libdispatch.dylib 0x00007fff88784dea _dispatch_mgr_invoke + 883
2 libdispatch.dylib 0x00007fff887849ee _dispatch_mgr_thread + 54
Thread 3:
0 libsystem_kernel.dylib 0x00007fff8a06b6d6 workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff89378eec _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff89378cb3 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff89363171 start_wqthread + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff8a06b6d6 workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff89378eec _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff89378cb3 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff89363171 start_wqthread + 13
Thread 5:
0 libsystem_kernel.dylib 0x00007fff8a06b6d6 workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff89378eec _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff89378cb3 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff89363171 start_wqthread + 13
Thread 6:
0 libsystem_kernel.dylib 0x00007fff8a06b6d6 workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff89378eec _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff89378cb3 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff89363171 start_wqthread + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x00007fff8c0e2a2c rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000
rdi: 0x0000000000000000 rsi: 0x0000000102e30b80 rbp: 0x00007fff5fbf9cc0 rsp: 0x00007fff5fbf9cb0
r8: 0x0000000000000000 r9: 0x0000000000000002 r10: 0x0000000000000000 r11: 0x00007fff8715940c
r12: 0x0000000000000000 r13: 0x0000000101053e00 r14: 0x0000000107185d70 r15: 0x0000000000000001
rip: 0x00007fff8bf5709d rfl: 0x0000000000000246 cr2: 0x00007fff73151f88
Logical CPU: 1

