[GRASS-dev] [GRASS GIS] #492: grass7: XY-location makes g.region segfault

#492: grass7: XY-location makes g.region segfault
-------------------------+--------------------------------------------------
Reporter: mlennert | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
1) create location through wxgui wizard, option "Use arbitrary non-earth
coordinate system (XY)" or option "Use coordinate system of selected
georeferenced file" pointing at a non-georeferenced file.

2) g.region -p gives:

{{{
GRASS 7.0.svn (XY):~ > g.region -p
WARNING: <PROJ_INFO> file not found for location <XY>
WARNING: <PROJ_UNITS> file not found for location <XY>
Segmentation fault
}}}

This also leads to a crash of the GUI. I'll report this as a separate bug.

devel6-tree does not show this problem.

Moritz

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

#492: grass7: XY-location makes g.region segfault
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by martinl):

  * status: new => assigned
  * owner: grass-dev@lists.osgeo.org => martinl
* cc: grass-dev@lists.osgeo.org (added)

Comment:

Hopefully fixed in r35855.

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

#492: grass7: XY-location makes g.region segfault
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by mlennert):

Works now. Thanks !

Only question: I still get the warnings:

{{{
WARNING: <PROJ_INFO> file not found for location <XY>
WARNING: <PROJ_UNITS> file not found for location <XY>
}}}

Are they really necessary ?

Moritz

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

#492: grass7: XY-location makes g.region segfault
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by hamish):

Replying to [comment:2 mlennert]:
> Only question: I still get the warnings:
>
> {{{
> WARNING: <PROJ_INFO> file not found for location <XY>
> WARNING: <PROJ_UNITS> file not found for location <XY>
> }}}
>
> Are they really necessary ?

not for a XY location, which is unPROJected.

create a simple XY location from the text prompts and you will see that
those files are not created.

Hamish

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

#492: grass7: XY-location makes g.region segfault
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by mlennert):

Replying to [comment:3 hamish]:
> Replying to [comment:2 mlennert]:
> > Only question: I still get the warnings:
> >
> > {{{
> > WARNING: <PROJ_INFO> file not found for location <XY>
> > WARNING: <PROJ_UNITS> file not found for location <XY>
> > }}}
> >
> > Are they really necessary ?
>
> not for a XY location, which is unPROJected.
>
> create a simple XY location from the text prompts and you will see that
those files are not created.

My question referred to the warnings, not the files :wink:

Moritz

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

#492: grass7: XY-location makes g.region segfault
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by martinl):

Replying to [comment:2 mlennert]:
{{{
> WARNING: <PROJ_INFO> file not found for location <XY>
> WARNING: <PROJ_UNITS> file not found for location <XY>
}}}
>
> Are they really necessary ?

I think these warning could be suppressed for unprojected locations.

Martin

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

#492: grass7: XY-location makes g.region segfault
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: closed
  Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: fixed | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by martinl):

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

Comment:

Replying to [comment:5 martinl]:
> Replying to [comment:2 mlennert]:
{{{
> > WARNING: <PROJ_INFO> file not found for location <XY>
> > WARNING: <PROJ_UNITS> file not found for location <XY>
}}}
> >
> > Are they really necessary ?
>
> I think these warning could be suppressed for unprojected locations.

Done in r37590.

Martin

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