[GRASS-dev] [GRASS GIS] #2158: temporal modules crash wxGUI

GRASS GIS trac at osgeo.org
Fri Jan 10 08:55:18 PST 2014


#2158: temporal modules crash wxGUI
-------------------------+--------------------------------------------------
 Reporter:  martinl      |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  Temporal     |     Version:  svn-trunk                
 Keywords:               |    Platform:  Linux                    
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by huhabla):

 This is related to an incompatible version of the temporal database. You
 need to delete your temporal database. A new one will be created if any
 temporal module is called.

 However, the GUI should not crash if a fatal error was invoked in a
 temporal module. I have updated the temporal framework to support the
 raise of a {{{grass.pygrass.messenger.FatalError}}} exception in case a
 module calls fatal() in the messenger interface.

 The error behavior can be set using
 {{{grass.temporal.set_raise_on_error(True)}}} in the temporal framework.
 In addition, the raise on error setting of the Python script library will
 be inherited if the temporal init() function is called. Hence, a
 {{{grass.pygrass.messenger.FatalError}}} exception will be raised instead
 of calling {{{sys.exit()}}} in case of a fatal error, if the
 {{{grass.script.set_raise_on_error(True)}}} was called first and after
 that {{{grass.temporal.init()}}}.

 I made the version mismatch error message more descriptive, so that the
 chosen SQL database and the path/database string will be printed as well.

 Changes were made in r58652 and r58653.

 Does the GUI still crashes?

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2158#comment:1>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list