[GRASS-dev] OS X Lion: wxpython 2.9

William Kyngesburye woklist at kyngchaos.com
Wed Aug 17 19:39:47 EDT 2011


Because it's a binary crash of Python, nothing shows up in the Terminal.  The Python app rocket bounces in the Dock a few times before the crash, it doesn't get to the splash screen, and from the crash report it looks like it's happening when it tries to show the splash.  So, FWIW (this is current 6.4SVN):

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000050

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libwx_osx_cocoau-2.9.2.0.0.dylib	0x00000001013ef8ba wxGUIEventLoop::BeginModalSession(wxWindow*) + 26
1   libwx_osx_cocoau-2.9.2.0.0.dylib	0x00000001013efbc3 wxWindowDisabler::DoDisable(wxWindow*) + 243
2   libwx_osx_cocoau-2.9.2.0.0.dylib	0x00000001012f8721 wxSafeYield(wxWindow*, bool) + 33
3   _core_.so                     	0x0000000100ef0e44 _wrap_SafeYield + 244
4   org.python.python             	0x00000001006e35d8 PyEval_EvalFrameEx + 16006
5   org.python.python             	0x00000001006e5cd8 PyEval_EvalCodeEx + 1996
6   org.python.python             	0x00000001006e5e6c 0x10065b000 + 568940
7   org.python.python             	0x00000001006e2e0a PyEval_EvalFrameEx + 14008
8   org.python.python             	0x00000001006e5cd8 PyEval_EvalCodeEx + 1996
9   org.python.python             	0x0000000100683abf 0x10065b000 + 166591
10  org.python.python             	0x0000000100662d32 PyObject_Call + 97
11  org.python.python             	0x00000001006716e9 0x10065b000 + 91881
12  org.python.python             	0x0000000100662d32 PyObject_Call + 97
13  org.python.python             	0x00000001006dec40 PyEval_CallObjectWithKeywords + 180
14  _core_.so                     	0x0000000100e764f2 wxPyCallback::EventThunker(wxEvent&) + 258
15  libwx_osx_cocoau-2.9.2.0.0.dylib	0x00000001012ea5f4 wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 84
16  libwx_osx_cocoau-2.9.2.0.0.dylib	0x00000001012eb5af wxEvtHandler::SearchDynamicEventTable(wxEvent&) + 111
17  libwx_osx_cocoau-2.9.2.0.0.dylib	0x00000001012ec5da wxEvtHandler::TryHereOnly(wxEvent&) + 42
18  libwx_osx_cocoau-2.9.2.0.0.dylib	0x00000001012ec64b wxEvtHandler::ProcessEventLocally(wxEvent&) + 59
19  libwx_osx_cocoau-2.9.2.0.0.dylib	0x00000001012ec711 wxEvtHandler::ProcessEvent(wxEvent&) + 161
20  libwx_osx_cocoau-2.9.2.0.0.dylib	0x00000001012ec0c6 wxEvtHandler::SafelyProcessEvent(wxEvent&) + 22
21  libwx_osx_cocoau-2.9.2.0.0.dylib	0x0000000101531730 wxWindowBase::HandleWindowEvent(wxEvent&) const + 16
22  libwx_osx_cocoau-2.9.2.0.0.dylib	0x0000000101336279 wxWindow::MacDoRedraw(long) + 825
23  libwx_osx_cocoau-2.9.2.0.0.dylib	0x000000010141103c wxWidgetCocoaImpl::drawRect(void*, NSView*, void*) + 412
24  libwx_osx_cocoau-2.9.2.0.0.dylib	0x0000000101412096 wxOSX_drawRect(NSView*, objc_selector*, CGRect) + 358
25  com.apple.AppKit              	0x00007fff9319b768 -[NSView _drawRect:clip:] + 3758
26  com.apple.AppKit              	0x00007fff931c9131 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1583
27  com.apple.AppKit              	0x00007fff931c955d -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
28  com.apple.AppKit              	0x00007fff93198d46 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 1032
29  com.apple.AppKit              	0x00007fff932e6d38 -[NSNextStepFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 274
30  com.apple.AppKit              	0x00007fff9319364a -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 4755
31  com.apple.AppKit              	0x00007fff9318c093 -[NSView displayIfNeeded] + 1676
32  com.apple.AppKit              	0x00007fff932e6c10 -[NSNextStepFrame displayIfNeeded] + 83
33  com.apple.AppKit              	0x00007fff9324b28c -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 1306
34  com.apple.AppKit              	0x00007fff9324ac89 -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 807
35  com.apple.AppKit              	0x00007fff9324a90f -[NSWindow orderWindow:relativeTo:] + 154
36  com.apple.AppKit              	0x00007fff9324a1b0 -[NSWindow makeKeyAndOrderFront:] + 49
37  libwx_osx_cocoau-2.9.2.0.0.dylib	0x00000001013fe883 wxNonOwnedWindowCocoaImpl::Show(bool) + 163
38  libwx_osx_cocoau-2.9.2.0.0.dylib	0x000000010132c186 wxNonOwnedWindow::Show(bool) + 70
39  _core_.so                     	0x0000000100ef0721 _wrap_Window_Show + 257
40  org.python.python             	0x00000001006e35d8 PyEval_EvalFrameEx + 16006
41  org.python.python             	0x00000001006e5cd8 PyEval_EvalCodeEx + 1996
42  org.python.python             	0x00000001006e5e6c 0x10065b000 + 568940
43  org.python.python             	0x00000001006e2e0a PyEval_EvalFrameEx + 14008
44  org.python.python             	0x00000001006e5cd8 PyEval_EvalCodeEx + 1996
45  org.python.python             	0x0000000100683abf 0x10065b000 + 166591
46  org.python.python             	0x0000000100662d32 PyObject_Call + 97
47  org.python.python             	0x00000001006716e9 0x10065b000 + 91881
48  org.python.python             	0x0000000100662d32 PyObject_Call + 97
49  org.python.python             	0x00000001006ad484 0x10065b000 + 337028
50  org.python.python             	0x00000001006a7b7a 0x10065b000 + 314234
51  org.python.python             	0x0000000100662d32 PyObject_Call + 97
52  org.python.python             	0x00000001006e2f63 PyEval_EvalFrameEx + 14353
53  org.python.python             	0x00000001006e5cd8 PyEval_EvalCodeEx + 1996
54  org.python.python             	0x0000000100683abf 0x10065b000 + 166591
55  org.python.python             	0x0000000100662d32 PyObject_Call + 97
56  org.python.python             	0x00000001006716e9 0x10065b000 + 91881
57  org.python.python             	0x0000000100662d32 PyObject_Call + 97
58  org.python.python             	0x00000001006dec40 PyEval_CallObjectWithKeywords + 180
59  _core_.so                     	0x0000000100e78ebe wxPyApp::_BootstrapApp() + 766
60  _core_.so                     	0x0000000100eb8a1b _wrap_PyApp__BootstrapApp + 75
61  org.python.python             	0x00000001006e35d8 PyEval_EvalFrameEx + 16006
62  org.python.python             	0x00000001006e5cd8 PyEval_EvalCodeEx + 1996
63  org.python.python             	0x00000001006e5e6c 0x10065b000 + 568940
64  org.python.python             	0x00000001006e2e0a PyEval_EvalFrameEx + 14008
65  org.python.python             	0x00000001006e5cd8 PyEval_EvalCodeEx + 1996
66  org.python.python             	0x0000000100683abf 0x10065b000 + 166591
67  org.python.python             	0x0000000100662d32 PyObject_Call + 97
68  org.python.python             	0x00000001006716e9 0x10065b000 + 91881
69  org.python.python             	0x0000000100662d32 PyObject_Call + 97
70  org.python.python             	0x00000001006e2f63 PyEval_EvalFrameEx + 14353
71  org.python.python             	0x00000001006e5cd8 PyEval_EvalCodeEx + 1996
72  org.python.python             	0x0000000100683abf 0x10065b000 + 166591
73  org.python.python             	0x0000000100662d32 PyObject_Call + 97
74  org.python.python             	0x00000001006716e9 0x10065b000 + 91881
75  org.python.python             	0x0000000100662d32 PyObject_Call + 97
76  org.python.python             	0x00000001006ad484 0x10065b000 + 337028
77  org.python.python             	0x00000001006a7b7a 0x10065b000 + 314234
78  org.python.python             	0x0000000100662d32 PyObject_Call + 97
79  org.python.python             	0x00000001006e2f63 PyEval_EvalFrameEx + 14353
80  org.python.python             	0x00000001006e5cd8 PyEval_EvalCodeEx + 1996
81  org.python.python             	0x00000001006e5e6c 0x10065b000 + 568940
82  org.python.python             	0x00000001006e2e0a PyEval_EvalFrameEx + 14008
83  org.python.python             	0x00000001006e5cd8 PyEval_EvalCodeEx + 1996
84  org.python.python             	0x00000001006e5d4d PyEval_EvalCode + 54
85  org.python.python             	0x00000001006fd08f 0x10065b000 + 663695
86  org.python.python             	0x00000001006fd14f PyRun_FileExFlags + 157
87  org.python.python             	0x00000001006fe2a2 PyRun_SimpleFileExFlags + 392
88  org.python.python             	0x000000010070e2af Py_Main + 2715
89  org.python.python             	0x0000000100653e88 0x100653000 + 3720

On Aug 15, 2011, at 12:18 PM, Michael Barton wrote:

> William,
> 
> Are the missing API's a problem for GRASS?
> 
> Can you get a GRASS/terminal/wxGUI terminal error message? The one from Apple is less helpful. But if that is the only one you have, can you send it? I wonder if it is a 64bit compilation issue?
> 
> Michael
> ______________________________
> C. Michael Barton 
> Director, Center for Social Dynamics & Complexity
> Professor of Anthropology, School of Human Evolution & Social Change
> Arizona State University
> Tempe, AZ  85287-2402
> USA
> 
> voice: 	480-965-6262 (SHESC), 480-727-9746 (CSDC)
> fax:          480-965-7671(SHESC), 480-727-0709 (CSDC)
> www: 	http://csdc.asu.edu, http://shesc.asu.edu
> 		http://www.public.asu.edu/~cmbarton
> 
> On Aug 13, 2011, at 12:25 PM, William Kyngesburye wrote:
> 
>> This is now a real problem - wxpython 2.8.x series will not compile on OS X Lion.  Lion appears to have the remaining pure-Carbon bits removed (that wxpython 2.8 needs).  I think it's really only a problem for OpenGL - that's where I get compile errors in wxPython, the GUI seems to run with a wxPython compiled on earlier system versions (and I don't run into OpenGL because wxnviz is not enabled for GRASS 6.4).
>> 
>> The 2.9 dev series has a cocoa option now, but 2.9 is in development.  Nice bonus: it's now finally 64bit.  But there are some issues yet to work out.  A couple APIs were deprecated in OSX 10.6 and removed in 10.7, and so far no definite solution is in the wxPython code.
>> 
>> The only options then are (to be able to use wx 2.9 cocoa where OpenGL is usable)
>> 
>> - to compile for the 10.6 SDK, thus the system Python 2.6
>> 
>> - to compile for the 10.6 SDK with python.org (or other) Python 2.7 (if python 2.7 is wanted)
>> 
>> There is a downloadable wxpython 2.9 cocoa from wxpython.org, that is built for 64bit python 2.7 on OSX 10.5+, but the GUI crashes on startup with this.  I can't tell if it's a GRASS problem, I can copy the crash report to list if anyone's interested (it's a long stack trace), or start a bug report, but I don't have time to poke around with it much.
>> 
>> -----
>> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
>> http://www.kyngchaos.com/
>> 
>> "Time is an illusion - lunchtime doubly so."
>> 
>> - Ford Prefect
>> 
>> 
> 
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

First Pogril: Why is life like sticking your head in a bucket filled with hyena offal?
Second Pogril: I don't know.  Why IS life like sticking your head in a bucket filled with hyena offal?
First Pogril: I don't know either.  Wretched, isn't it?

-HitchHiker's Guide to the Galaxy




More information about the grass-dev mailing list