[GRASS-dev] [GRASS GIS] #2034: GUI crashes on launch for newly compiled binary for Mac OS X

GRASS GIS trac at osgeo.org
Thu Sep 5 12:33:58 PDT 2013

#2034: GUI crashes on launch for newly compiled binary for Mac OS X
 Reporter:  cmbarton   |       Owner:  grass-dev@…              
     Type:  defect     |      Status:  new                      
 Priority:  critical   |   Milestone:  7.0.0                    
Component:  wxGUI      |     Version:  svn-trunk                
 Keywords:             |    Platform:  MacOSX                   
      Cpu:  OSX/Intel  |  

Comment(by wenzeslaus):

 To summarize:

 The discussion [http://lists.osgeo.org/pipermail/grass-
 dev/2013-May/063806.html GRASS 7 crashes on startup on Mac] ([http
 td5052981.html nabble]) contains a workaround to get rid of the
 `menudata.xml` error which is mentioned in the ticket.

 The discussion [http://lists.osgeo.org/pipermail/grass-
 dev/2013-August/065381.html no more GRASS 7 for Mac] ([http://osgeo-
 org.1560.x6.nabble.com/no-more-GRASS-7-for-Mac-td5071809.html nabble])
 extends the workaround because now there is a more than one file of that
 type (generated `menudata.xml` from toolboxes files).

 The discussion [http://lists.osgeo.org/pipermail/grass-
 dev/2013-August/065482.html Mac OS 10.8: g.gui and DISPLAY]
 nabble], originally named as "Max OS 10.8: g.gui and DISPLAY") mentioned
 before and revisions r57536 and r57537 are important but unrelated to this

 The unrelated discussion [http://lists.osgeo.org/pipermail/grass-
 dev/2013-September/065566.html Resources about compiling on Mac OS X]
 OS-X-td5076035.html nabble]) contains a detailed description of the
 cmbarton on ML:
 Seem like this needs to be done in the GRASS-7.0.app. So you have to run
 bindist first.
 Then launch GRASS 7. The GUI will crash.
 From the GRASS command line, cd to the ../gui/wxpython directory inside
 the GRASS-7.0.app and run...
 python core/toolboxes.py > xml/menudata.xml
 python core/toolboxes.py "module_tree" > xml/module_tree_menudata.xml
 Next, copy the newly created menudata.xml and module_tree_menudata.xml
 files back into the binary distribution (in ../dist.x86_64-apple-
 darwin12.4.0) and rerun bindist to make a new GRASS-7.0.app and *.pkg.

 The reasons for and connections between the `menudata.xml` error (not
 compiled XML file) and ctypes `__attribute__` error are still unclear. We
 only know that you can get the `__attribute__` error and ''not'' get
 `menudata.xml` error (tested on Mac OS 10.8) at the same time.

Ticket URL: <https://trac.osgeo.org/grass/ticket/2034#comment:4>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list