Opened 14 years ago

Closed 13 years ago

#2986 closed bug (fixed)

Opening a project file from a plugin crashes QGIS

Reported by: peppo Owned by: borysiasty
Priority: critical: causes crash or data corruption Milestone: Version 1.6.0
Component: Python plugins and bindings Version: 1.5.0
Keywords: open project Cc: peppo.herney@…
Must Fix for Release: No Platform: Windows
Platform Version: Windows 7 Awaiting user input: no

Description

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.

Change History (4)

comment:1 by borysiasty, 13 years ago

Is it still valid?

in reply to:  1 comment:2 by peppo, 13 years ago

Replying to borysiasty:

Is it still valid?

Well, it did not work in version 1.5. I did not try any nightly builds. So I guess, the bug report is valid. I would be happy, if you could fix it or tell me what i did wrong with the iface.addProject(qstrPath) function call. cheers Peppo

comment:3 by volter, 13 years ago

Works for me on QGIS 1.6 on Linux.

comment:4 by wonder, 13 years ago

Resolution: fixed
Status: newclosed

This kind of crash has been fixed recently (in r14434)

Note: See TracTickets for help on using tickets.