[GRASS-dev] [GRASS GIS] #2072: Trouble loading workspace.gxw

#2072: Trouble loading workspace.gxw
----------------------+-----------------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Keywords: | Platform: Linux
      Cpu: x86-32 |
----------------------+-----------------------------------------------------
I'm unable to load the workspace.gxw file in GRASS 7 (57592)

I receive the following error:
Reading workspace file </home/user/RESEARCH/workspace_ ..GRASS7nviz.gxw>
failed.
Invalid file, unable to parse XML document.

Reason: invalid literal for int() with base 10: '7000.0'

Traceback (most recent call last):
   File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/lmgr/frame.py", line 1113, in LoadWorkspaceFile
     gxwXml = ProcessWorkspaceFile(etree.parse(filename))
   File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 58, in __init__
     self.__processFile()
   File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 149, in __processFile
     self.__processLayers(display)
   File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 176, in __processLayers
     cmd, selected, vdigit, nviz = self.__processLayer(item)
   File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 238, in __processLayer
     nviz = self.__processLayerNviz(node_nviz)
   File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 378, in __processLayerNviz
     nviz['vector']['points'])
   File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 443, in
__processLayerNvizNode
     value = cast(self.__getNodeText(node_tag, 'value'))
ValueError: invalid literal for int() with base 10: '7000.0'

After deleting the following, the 'Please wait, loading workspace' notice
remains visible and layers are not loaded into the 3Dview.
  <size>
<value>7000.0</value>
</size>

I also notice in the command console, not sure if relevant:

Loading raster map
<srtm_cgiar_mosaic2_cp_int16@PERMANENT>...
Translating colors from raster map
<srtm_cgiar_mosaic2_cp_int16@PERMANENT>...

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

#2072: Unable to load workspace.gxw in 3D View
----------------------+-----------------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Keywords: | Platform: Linux
      Cpu: x86-32 |
----------------------+-----------------------------------------------------

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

#2072: Unable to load workspace.gxw in 3D View
----------------------+-----------------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Keywords: | Platform: Linux
      Cpu: x86-32 |
----------------------+-----------------------------------------------------
Description changed by martinl:

Old description:

I'm unable to load the workspace.gxw file in GRASS 7 (57592)

I receive the following error:
Reading workspace file </home/user/RESEARCH/workspace_ ..GRASS7nviz.gxw>
failed.
Invalid file, unable to parse XML document.

Reason: invalid literal for int() with base 10: '7000.0'

Traceback (most recent call last):
  File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/lmgr/frame.py", line 1113, in LoadWorkspaceFile
    gxwXml = ProcessWorkspaceFile(etree.parse(filename))
  File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 58, in __init__
    self.__processFile()
  File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 149, in __processFile
    self.__processLayers(display)
  File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 176, in __processLayers
    cmd, selected, vdigit, nviz = self.__processLayer(item)
  File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 238, in __processLayer
    nviz = self.__processLayerNviz(node_nviz)
  File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 378, in __processLayerNviz
    nviz['vector']['points'])
  File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 443, in
__processLayerNvizNode
    value = cast(self.__getNodeText(node_tag, 'value'))
ValueError: invalid literal for int() with base 10: '7000.0'

After deleting the following, the 'Please wait, loading workspace' notice
remains visible and layers are not loaded into the 3Dview.
<size>
<value>7000.0</value>
</size>

I also notice in the command console, not sure if relevant:

Loading raster map
<srtm_cgiar_mosaic2_cp_int16@PERMANENT>...
Translating colors from raster map
<srtm_cgiar_mosaic2_cp_int16@PERMANENT>...

New description:

I'm unable to load the workspace.gxw file in GRASS 7 (57592)

I receive the following error:
Reading workspace file </home/user/RESEARCH/workspace_ ..GRASS7nviz.gxw>
failed.
Invalid file, unable to parse XML document.

{{{
Reason: invalid literal for int() with base 10: '7000.0'

Traceback (most recent call last):
   File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/lmgr/frame.py", line 1113, in LoadWorkspaceFile
     gxwXml = ProcessWorkspaceFile(etree.parse(filename))
   File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 58, in __init__
     self.__processFile()
   File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 149, in __processFile
     self.__processLayers(display)
   File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 176, in __processLayers
     cmd, selected, vdigit, nviz = self.__processLayer(item)
   File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 238, in __processLayer
     nviz = self.__processLayerNviz(node_nviz)
   File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 378, in __processLayerNviz
     nviz['vector']['points'])
   File "/home/user/grass7/grass7_trunk/dist.i686-pc-linux-
gnu/etc/gui/wxpython/core/workspace.py", line 443, in
__processLayerNvizNode
     value = cast(self.__getNodeText(node_tag, 'value'))
ValueError: invalid literal for int() with base 10: '7000.0'
}}}

After deleting the following, the 'Please wait, loading workspace' notice
remains visible and layers are not loaded into the 3Dview.

{{{
  <size>
<value>7000.0</value>
</size>
}}}

I also notice in the command console, not sure if relevant:

{{{
Loading raster map
<srtm_cgiar_mosaic2_cp_int16@PERMANENT>...
Translating colors from raster map
<srtm_cgiar_mosaic2_cp_int16@PERMANENT>...
}}}

--

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

#2072: Unable to load workspace.gxw in 3D View
-----------------------------+----------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Keywords: nviz, workspace | Platform: Linux
      Cpu: x86-32 |
-----------------------------+----------------------------------------------
Changes (by martinl):

  * keywords: => nviz, workspace

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

#2072: Unable to load workspace.gxw in 3D View
-----------------------------+----------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Keywords: nviz, workspace | Platform: Linux
      Cpu: x86-32 |
-----------------------------+----------------------------------------------

Comment(by annakrat):

Should be fixed in r57624 (backported in r57626,7).

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

#2072: Unable to load workspace.gxw in 3D View
-----------------------+----------------------------------------------------
  Reporter: richardc | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Resolution: fixed | Keywords: nviz, workspace
  Platform: Linux | Cpu: x86-32
-----------------------+----------------------------------------------------
Changes (by annakrat):

  * status: new => closed
  * resolution: => fixed

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