[QGIS-trac] [Quantum GIS] #2986: Opening a project file from a plugin crashes QGIS

Quantum GIS qgis at qgis.org
Tue Sep 7 05:30:16 EDT 2010


#2986: Opening a project file from a plugin crashes QGIS
---------------------------------------------------------+------------------
   Reporter:  peppo                                      |              Owner:  borysiasty   
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.6.0
  Component:  Python plugins and bindings                |            Version:  1.5.0        
   Keywords:  open project                               |   Platform_version:  Windows 7    
   Platform:  Windows                                    |           Must_fix:  No           
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 When I try to open a project file from a plugin QGIS crashes. I use a
 valid Project file, which loads normally through the GUI.
 Here is some code:
 self.iface.addProject(qstrPath)

 also I tried:
 self.iface.newProject()
 qFileInfo = QtCore.QFileInfo(qstrPath)
 QgsProject.instance().read(qFileInfo)

 QGIS starts loading the layers, but before finishing QGIS 1.5 crashes on
 Windows.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2986>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list