[GRASS-dev] [GRASS GIS] #917: v.digit map creation weirdness on wingrass

#917: v.digit map creation weirdness on wingrass
----------------------+-----------------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: Vector | Version: svn-releasebranch64
Keywords: wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
----------------------+-----------------------------------------------------
Hi,

in the latest wingrass nightly build (r40876), but also seen before, when
I make a new map with v.digit when I go to close the map everything sings
along but then I get this error message at the end of the output:

{{{
Region restored to original extent.
Building topology for vector map <(null)>...
Registering Primatives...
Unable to read vector map
}}}

It's the same if I call v.digit (tcl) from the wxGUI menu, the gis.m menu,
or "v.digit -n test' directly from the msys prompt with no module GUI.
It's enough to start up with -n and exit intimately.

even weirder, when called from the gis.m menu/tcltk module GUI when the
attribute From window should open I get an empty sqlite DOS box opening on
top of everything and the tall&thin Form window stays all grey and
unusable.

(apparently at some point I switched the mapset to use sqlite as the
backend)

but I see the same (null) in the output even if I switch db.connect back
to use dbf.

?,
Hamish

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

#917: v.digit map creation weirdness on wingrass
-------------------------------+--------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Vector | Version: svn-releasebranch64
Keywords: wingrass, v.digit | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------------+--------------------------------------------
Changes (by hamish):

  * keywords: wingrass => wingrass, v.digit
  * priority: normal => major

Comment:

see discussion and DEBUG log in the second half of #843.

it seems to be losing contents of &Map by the time it gets to end() in
centre.c.

Hamish

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

#917: v.digit map creation weirdness on wingrass
-------------------------------+--------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Vector | Version: svn-releasebranch64
Keywords: wingrass, v.digit | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------------+--------------------------------------------

Comment(by hellik):

Replying to [comment:1 hamish]:
> see discussion and DEBUG log in the second half of #843.
>
> it seems to be losing contents of &Map by the time it gets to end() in
centre.c.
>
>
> Hamish

tested with r42829 (self compiled WinGrass65 in a WinVista32-box):

{{{
v.digit -n map=testvdigit3 bgcmd="d.rast map=elevation"
Neue, leere Karte erstellt.
Erstelle Topologie für die Vektorkarte <testvdigit3>...
Registriere Primitive...
0 Primitive registriert
0 Vertices registriert
Erzeuge Flächen...
0 Flächen angelegt
0 Inseln angelegt
Füge Inseln hinzu...
Füge Zentroide hinzu...
Anzahl der Knoten: 0
Anzahl der Primitive: 0
Anzahl der Punkte: 0
Anzahl der Linien: 0
Anzahl der Grenzen: 0
Anzahl der Zentroide: 0
Anzahl der Flächen: 0
Anzahl der Inseln: 0
Erstelle Topologie für die Vektorkarte <testvdigit3>...
Registriere Primitive...
1 Primitive registriert
15 Vertices registriert
Erzeuge Flächen...
1 Flächen angelegt
1 Inseln angelegt
Füge Inseln hinzu...
Füge Zentroide hinzu...
Anzahl der Knoten: 1
Anzahl der Primitive: 1
Anzahl der Punkte: 0
Anzahl der Linien: 0
Anzahl der Grenzen: 1
Anzahl der Zentroide: 0
Anzahl der Flächen: 1
Anzahl der Inseln: 1
Anzahl der Flächen ohne Zentroid: 1
Region auf die ursprünglich Ausdehnung zurückgesetzt.
Erstelle Topologie für die Vektorkarte <(null)>...
Registriere Primitive...
Kann Vektorkarte nicht lesen.
}}}

a loose translation of the message:

{{{
...
create topology for the vector map <(null)>
register primitives
vector map can't be read.
}}}

Helmut

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

#917: v.digit map creation weirdness on wingrass
-------------------------------+--------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Vector | Version: svn-releasebranch64
Keywords: wingrass, v.digit | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------------+--------------------------------------------

Comment(by hellik):

Replying to [comment:2 hellik]:
>
> {{{
> ...
> create topology for the vector map <(null)>
> register primitives
> vector map can't be read.
> }}}
>
> Helmut
>
>
>
>
>

now the english message:

{{{
...
Number of nodes: 1
Number of primitives: 1
Number of points: 0
Number of lines: 0
Number of boundaries: 1
Number of centroids: 0
Number of areas: 1
Number of isles: 1
Number of areas without centroid: 1
Region restored to original extent.
Building topology for vector map <(null)>...
Registering primitives...
Unable to read vector map
}}}

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

#917: v.digit map creation weirdness on wingrass
-------------------------------+--------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: Vector | Version: svn-releasebranch64
Keywords: wingrass, v.digit | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------------+--------------------------------------------
Changes (by mmetz):

  * priority: major => normal

Comment:

Replying to [comment:1 hamish]:
> see discussion and DEBUG log in the second half of #843.
>
> it seems to be losing contents of &Map by the time it gets to end() in
centre.c.
>
It gets there twice, the second time the vector has already been closed
and is no longer available:

Excerpt from #843 comment:31

Replying to [comment:31 marisn]:
>
{{{
[snip]

D3/3: c_update_tool()
D3/3: c_next_tool()
D2/3: Tool_next = 1
D2/3: Quit
D1/3: end()

[snip]

Building topology for vector map <bar>...

[snip]

D1/3: Vect_close(): name = bar, mapset = user1, format = 0, level = 2
[snip]
Region restored to original extent.

D3/3: c_next_tool()
D2/3: Tool_next = 1
D2/3: Quit
D1/3: end()

[snip]

Building topology for vector map <(null)>...

D1/3: Vect_close(): name = (null), mapset = (null), format = 0, level = 1
}}}

A bit annoying, but there is no report that the changes have not been
saved, IOW, the module produces results as expected. Downgrading priority.

Markus M

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

#917: v.digit map creation weirdness on wingrass
-------------------------------+--------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: Vector | Version: svn-releasebranch64
Keywords: wingrass, v.digit | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------------+--------------------------------------------

Comment(by hellik):

Replying to [comment:4 mmetz]:
>
> A bit annoying, but there is no report that the changes have not been
saved, IOW, the module produces results as expected. Downgrading priority.
>
> Markus M

changing the milestone or closing the ticket?

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

#917: v.digit map creation weirdness on wingrass
---------------------------+------------------------------------------------
  Reporter: hamish | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.0
Component: Vector | Version: svn-releasebranch64
Resolution: fixed | Keywords: wingrass, v.digit
  Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Changes (by neteler):

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

Comment:

Closing as suggested. Reopen if needed.

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