Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#2243 closed defect (fixed)

wxGUI: raster importer single file GdalImportDialog crash after import

Reported by: neteler Owned by: grass-dev@…
Priority: normal Milestone: 7.0.0
Component: wxGUI Version: svn-releasebranch70
Keywords: Cc:
CPU: Unspecified Platform: Unspecified

Description

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 }}}

Change History (5)

comment:1 by annakrat, 11 years ago

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.

in reply to:  1 comment:2 by neteler, 11 years ago

Replying to 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.

comment:3 by annakrat, 11 years ago

Please try r59571.

in reply to:  3 ; comment:4 by neteler, 11 years ago

Resolution: fixed
Status: newclosed

Replying to annakrat:

Please try r59571.

Thanks, it works now. Closing.

in reply to:  4 comment:5 by annakrat, 11 years ago

Replying to neteler:

Replying to annakrat:

Please try r59571.

Thanks, it works now. Closing.

Backported in r60492.

Note: See TracTickets for help on using tickets.