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)
follow-up: 2 comment:1 by , 13 years ago
comment:2 by , 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:4 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This kind of crash has been fixed recently (in r14434)
Is it still valid?