[GRASS-dev] [GRASS GIS] #1790: gui modeler: complete crash of gui when .gxm file modified in vi while modeler is active

#1790: gui modeler: complete crash of gui when .gxm file modified in vi while
modeler is active
-------------------------+--------------------------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Default | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
- Open GUI modeler
- Save the model (even just an empty model) to model file
- Open model file in vi[1], and save the model file (no need to change
anything)
I tried with gedit and nano and cannot reproduce. I don't know what vi
does differently.

=> crash of the entire GUI

Moritz

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1790&gt;
GRASS GIS <http://grass.osgeo.org>

#1790: gui modeler: complete crash of gui when .gxm file modified in vi while
modeler is active
-------------------------+--------------------------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: wxGUI | Version: unspecified
Keywords: modeler | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by martinl):

  * keywords: => modeler
  * component: Default => wxGUI

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1790#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1790: gui modeler: complete crash of gui when .gxm file modified in vi while
modeler is active
-------------------------+--------------------------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.5
Component: wxGUI | Version: svn-releasebranch64
Keywords: modeler | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by neteler):

  * version: unspecified => svn-releasebranch64
  * milestone: 6.4.3 => 6.4.5

Comment:

Replying to [ticket:1790 mlennert]:
> - Open GUI modeler
> - Save the model (even just an empty model) to model file
> - Open model file in vi[1], and save the model file (no need to change
anything)
> I tried with gedit and nano and cannot reproduce. I don't know what vi
does differently.

Perhaps a newline issue at file end:

Random link:
http://stackoverflow.com/questions/3056740/gedit-adds-line-at-end-of-page

Guessing: the read function used to read the model file might react
differently.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1790#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1790: gui modeler: complete crash of gui when .gxm file modified in vi while
modeler is active
-------------------------+--------------------------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.5
Component: wxGUI | Version: svn-releasebranch64
Keywords: modeler | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by wenzeslaus):

The `wc` and `cat` commands can give you some idea what is in the file.
`diff`, `colordiff` or `meld` can be helpful to compare the files.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1790#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>