Opened 14 years ago

Closed 13 years ago

#950 closed defect (fixed)

Error opening workspace file

Reported by: epatton Owned by: martinl
Priority: normal Milestone: 6.5.0
Component: wxGUI Version: svn-develbranch6
Keywords: gui, workspace Cc: grass-dev@…
CPU: x86-64 Platform: Linux

Description

I get the following error after trying to open a workspace file in Grass 6.5.svn:

Traceback (most recent call last):
  File "/usr/local/grass-6.5.svn/etc/wxpython/wxgui.py",
line 622, in OnWorkspaceOpen

self.LoadWorkspaceFile(filename)
  File "/usr/local/grass-6.5.svn/etc/wxpython/wxgui.py",
line 717, in LoadWorkspaceFile

lvdigit=layer['vdigit'])
KeyError
:
'vdigit'

This error only seems to manifest itself when layer group folders are used.

To replicate error (in North Carolina dataset, Grass 6.5.svn):

  1. start wxpthon gui, add vectors streams, lakes, geodetic_pts. Add raster elevation.
  2. Save the workspace.
  3. Exit Grass, start Grass, load workspace, everything works ok.
  4. add layer group folder, drag vectors into folder. Save workspace and exit Grass.
  5. Start Grass, load workspace; wxgui gives the same error as above.

~ Eric.

Attachments (2)

Situation_Before.png (125.9 KB ) - added by epatton 14 years ago.
Situation_After.png (123.8 KB ) - added by epatton 14 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 by martinl, 14 years ago

Cc: grass-dev@… added
Owner: changed from grass-dev@… to martinl
Status: newassigned

Please try r41120 (trunk) r41121 (devbr6).

comment:2 by epatton, 14 years ago

Thanks Martin, all workspaces with nested folders can be saved and opened normally in 6.4, 6.5 and trunk. The only problem I noticed was in trunk, where vector line widths are displayed at a width of 1, not at the width they were saved at in the original workspace file. In fact, the displayed widths remain at 1 no matter what they are set at in the Properties dialog. But other than that, everything looks great!

Thanks,

~ Eric.

by epatton, 14 years ago

Attachment: Situation_Before.png added

by epatton, 14 years ago

Attachment: Situation_After.png added

comment:3 by epatton, 14 years ago

I've noticed a small error upon closer inspection; I've attached two images illustrating the problem. In the first image 'Situation_Before.png', there are folders named Amundsen and Nahidik each with many vector layers. They are child folders of the parent folder Navgation. I save the workspace file, exit Grass, and restart, and open the workspace file - the result is in the image 'Situation_After.png'. The vectors that were inside the Amundsen and Nahidik folders are no longer nested to the correct depth, and are now children of the Navigation folder.

~ Eric.

in reply to:  2 comment:4 by martinl, 14 years ago

Replying to epatton:

Thanks Martin, all workspaces with nested folders can be saved and opened normally in 6.4, 6.5 and trunk. The only problem I noticed was in trunk, where vector line widths are displayed at a width of 1, not at the width they were saved at in the original workspace file. In fact, the displayed widths remain at 1 no matter what they are set at in the Properties dialog. But other than that, everything looks great!

testing with trunk, r41161

  • add vector map, set width to 2
  • save workspace
  • restart wxGUI
  • open workspace
  • width is set to 2

?

Martin

in reply to:  3 comment:5 by martinl, 14 years ago

Replying to epatton:

I've noticed a small error upon closer inspection; I've attached two images illustrating the problem. In the first image 'Situation_Before.png', there are folders named Amundsen and Nahidik each with many vector layers. They are child folders of the parent folder Navgation. I save the workspace file, exit Grass, and restart, and open the workspace file - the result is in the image 'Situation_After.png'. The vectors that were inside the Amundsen and Nahidik folders are no longer nested to the correct depth, and are now children of the Navigation folder.

Try r41166 (trunk) and r41167 (devbr6).

comment:6 by epatton, 14 years ago

Thanks Martin, I can confirm nested folders retain their positions after reopening workspace files.

Can you confirm this behavior - I'm not sure what is happening here - if you have a folder with a few layers inside, and drag the folder's position around so it is above or below other folders or layers in the layer manager, a layer always seems to get dropped from the folder after the move is completed.

Should I file this under another bug?

~ Eric.

in reply to:  6 comment:7 by martinl, 14 years ago

Replying to epatton:

Can you confirm this behavior - I'm not sure what is happening here - if you have a folder with a few layers inside, and drag the folder's position around so it is above or below other folders or layers in the layer manager, a layer always seems to get dropped from the folder after the move is completed.

Should I file this under another bug?

yes, please do it. Martin

comment:8 by martinl, 13 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.