#1736: wxNVIZ volume display crashes Mac
-----------------------+----------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: critical | Milestone: 6.4.3
Component: wxGUI | Version: svn-releasebranch64
Keywords: | Platform: MacOSX
Cpu: OSX/Intel |
-----------------------+----------------------------------------------------
Comment(by cmbarton):
The fact that this runs on the Mac OS that is 2 generations old, is
encouraging. But the fact that it doesn't run on the 2 most recent
versions of the Mac OS is a big problem. Hopefully this will turn out to
be a Mac compiling issue that William and I can work out. But it still may
be something in the wxNVIZ code that is only showing up now in current
versions of the OS. So releasing a stable version (i.e., that can no
longer be altered) with an important part of GRASS non-functional is
something that I don't think we should do. So we need to at least figure
out what is wrong. Anyway, I just updated dependencies (frameworks) and
tested William's new build of GRASS 6.4.3. In this case, 3D does not work
at all, but maybe the errors will be helpful in trouble shooting the
problem.
Message on starting GRASS:
{{{
3D view mode:
dlopen(/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_ogsf.6.4.3svn.dylib,
10): Library not loaded: /Users/Shared/unix/ffmpeg-
snow/lib/libavutil.dylib
Referenced from:
/Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_ogsf.6.4.3svn.dylib
Reason: image not found
}}}
Starting 3D mode failed after:
1) opening JR_2008_ALL_dem in the layer manger
2) opening jr_7408MR_2m_t70 in the layer manager
3) setting region to match jr_7408MR_2m_t70 using g.region
4) displaying layers (JR_2008_ALL_dem only shows)
5) switching to 3D mode in the display
Here is the error:
{{{
Starting 3D view mode...
Exception in thread Thread-14:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions
/2.6/lib/python2.6/threading.py", line 532, in
__bootstrap_inner
self.run()
File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpyt
hon/nviz/mapwindow.py", line 64, in run
self._display = wxnviz.Nviz(self.log, self.progressbar)
File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpyt
hon/nviz/wxnviz.py", line 98, in __init__
self.Init()
File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpyt
hon/nviz/wxnviz.py", line 124, in Init
GS_libinit()
NameError: global name 'GS_libinit' is not defined
Exception
AttributeError
:
"'Nviz' object has no attribute 'data'"
in
<bound method Nviz.__del__ of <nviz.wxnviz.Nviz object at
0x618ec30>>
ignored
Traceback (most recent call last):
File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpyt
hon/mapdisp/toolbars.py", line 229, in OnSelectTool
self.parent.AddNviz()
File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpyt
hon/mapdisp/frame.py", line 294, in AddNviz
Map = self.Map, tree = self.tree, lmgr = self._layerManager)
File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpyt
hon/nviz/mapwindow.py", line 156, in __init__
self.decoration['arrow']['size'] = self._getDecorationSize()
File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpyt
hon/nviz/mapwindow.py", line 1172, in _getDecorationSize
size = self._display.GetLongDim() / 8.
AttributeError
:
'NoneType' object has no attribute 'GetLongDim'
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1736#comment:9>
GRASS GIS <http://grass.osgeo.org>