[GRASS-dev] [GRASS-user] Error on opening workspace

Vaclav Petras wenzeslaus at gmail.com
Sat Sep 29 14:49:04 PDT 2018


On Fri, Sep 21, 2018 at 3:33 AM Frank David <frank.david at geophom.fr> wrote:

> Le 9/20/18 à 7:24 PM, Vaclav Petras a écrit :
>
> [Removing grass-user as this is more grass-dev or bug tracking thing.]
>
> On Thu, Sep 20, 2018 at 12:27 PM Frank David <frank.david at geophom.fr>
> wrote:
>
>> Hello,
>>
>> Grass 7.4 (and 7.5) failed to open a workspace (with many layers and
>> folders). The waiting box stay open and the workspace is not fully loaded.
>> If I try to save the current workspace, I got the following message :
>>
>> "Échec d'écriture des paramètres de l'espace de travail courant.
>>
>
> Hi, back translating using a po file, it says
>
> "Writing current settings to workspace file failed."
>
> So it looks like saving, not loading workspace. Based on the None for cmd
> below and something I noticed in the past, I would say it is saving with a
> layer dialog open, but OK or Apply was not pressed. Can you please test it
> if that's it and open a ticket with steps to reproduce it?
>
> Best,
> Vaclav
>
> Hi Vaclav,
>
> I'm not sure to well understand what you mean. the .gxw does not look
> malformed when I open it with a text editor (see attached file). What can I
> test exactly ? when I try to load it, the first layers and groups are
> loaded, but the loading stop before the end, without freezing grass (but
> the waiting box stay open). I don't remember if a layer dialog box was open
> when I saved it. Is there any recommendation on that point ?
>
> It's not very important for my own, but this kind of possible bug is
> annoying when you spent time to organise numerous layers in workspace...
>

I can reproduce the error with the file you provided, but can you narrow
down when the error happens by testing which lines or number of layers
cause the error? (By modifying the file or by saving another huge
workspaces.)

Thanks,
Vaclav


> Regards,
> Frank
>
>
>
>>
>> Raison: 'NoneType' object has no attribute 'GetCmd'
>>
>> Traceback (most recent call last):
>>    File "/usr/local/grass-7.5.svn/gui/wxpython/lmgr/frame.py", line
>> 1656, in SaveToWorkspaceFile
>>      WriteWorkspaceFile(lmgr=self, file=tmpfile)
>>    File "/usr/local/grass-7.5.svn/gui/wxpython/core/workspace.py", line
>> 900, in __init__
>>      self.__writeLayer(mapTree, item)
>>    File "/usr/local/grass-7.5.svn/gui/wxpython/core/workspace.py", line
>> 959, in __writeLayer
>>      item, key='maplayer').GetCmd(
>> AttributeError: 'NoneType' object has no attribute 'GetCmd'"
>>
>> I run Grass on Debian9
>>
>> Regards
>> _______________________________________________
>> grass-user mailing list
>> grass-user at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/grass-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20180929/6f5b2e93/attachment.html>


More information about the grass-dev mailing list