[GRASS-dev] [GRASS GIS] #2243: wxGUI: raster importer single file GdalImportDialog crash after import

#2243: wxGUI: raster importer single file GdalImportDialog crash after import
-------------------------+--------------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-releasebranch70
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
When using File -> import raster -> single file. it imports but
does not complete the job:

{{{
r.in.gdal
input=/home/alba/grassdata/dtm_2007/mosaik_dtm_s_michele_1m_UTM32N.tif
   output=mosaik_dtm_s_michele_1m_UTM32N
Raster map <mosaik_dtm_s_michele_1m_UTM32N> created.
r.in.gdal complete.
(Fri Apr 4 11:07:30 2014) Command finished (39 sec)
Traceback (most recent call last):
   File "/home/alba/source_code/grass70_release/dist.x86_64
-unknown-linux-gnu/etc/gui/wxpython/core/gconsole.py", line
627, in OnCmdDone

event.onDone(cmd=event.cmd, returncode=event.returncode)
   File "/home/alba/source_code/grass70_release/dist.x86_64
-unknown-linux-gnu/etc/gui/wxpython/gui_core/dialogs.py",
line 1752, in AddLayers

if not self.add.IsChecked() or returncode != 0:
   File "/usr/lib/python2.7/dist-
packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14615, in
__getattr__

raise PyDeadObjectError(self.attrStr % self._name)
wx._core
.
PyDeadObjectError
:
The C++ part of the GdalImportDialog object has been
deleted, attribute access no longer allowed.
System Info
GRASS version: 7.0.0svn
GRASS SVN Revision: 59559
Build Date: 2014-04-02
Build Platform: x86_64-unknown-linux-gnu
GDAL/OGR: 1.10.0
PROJ.4: 4.8.0
GEOS: 3.3.8
SQLite: 3.7.9
Python: 2.7.3
wxPython: 2.8.12.1
Platform: Linux-3.8.0-37-generic-x86_64-with-Ubuntu-12.04-precise }}}

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

#2243: wxGUI: raster importer single file GdalImportDialog crash after import
-------------------------+--------------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-releasebranch70
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by annakrat):

Does this happen only when you close the dialog before r.in.gdal is
complete? The error means that it tries to add the imported layers but it
can't access the attributes of the dialog because the dialog doesn't exist
any more.

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

#2243: wxGUI: raster importer single file GdalImportDialog crash after import
-------------------------+--------------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-releasebranch70
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by neteler):

Replying to [comment:1 annakrat]:
> Does this happen only when you close the dialog before r.in.gdal is
complete?

Right, I checked the box for "Close window then finished" (or similar
wording).

> The error means that it tries to add the imported layers but it can't
access the attributes of the dialog because the dialog doesn't exist any
more.

I see, guess that it is what's happening.

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

#2243: wxGUI: raster importer single file GdalImportDialog crash after import
-------------------------+--------------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-releasebranch70
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by annakrat):

Please try r59571.

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

#2243: wxGUI: raster importer single file GdalImportDialog crash after import
--------------------------+-------------------------------------------------
  Reporter: neteler | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-releasebranch70
Resolution: fixed | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by neteler):

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

Comment:

Replying to [comment:3 annakrat]:
> Please try r59571.

Thanks, it works now. Closing.

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

#2243: wxGUI: raster importer single file GdalImportDialog crash after import
--------------------------+-------------------------------------------------
  Reporter: neteler | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-releasebranch70
Resolution: fixed | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------

Comment(by annakrat):

Replying to [comment:4 neteler]:
> Replying to [comment:3 annakrat]:
> > Please try r59571.
>
> Thanks, it works now. Closing.

Backported in r60492.

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