Bug report #20783

Crash when opening (corrupted) qgz project

Added by Jan Macura almost 2 years ago. Updated almost 2 years ago.

Status:Closed
Priority:Normal
Assignee:Alessandro Pasotti
Category:Unknown
Affected QGIS version:3.4.1 Regression?:Yes
Operating System:Windows 10 Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:28603

Description

User Feedback

I just opened the qgz project which I was working with yesterday with no problem (in the same version of QGIS). The crash happened immediately after start-up.

If I open QGIS directly, it opens without complains. When I try to open the project from the list of last projects, it crashes again. Other projects can be opened without a problem. From the file size, I suspect the project was badly saved in the last time and is corrupt :-( Anyway.. this should not shut the QGIS down, it should report the problem of corrupted file to the user instead (if this is the case). I am including the qgz.

Report Details

Crash ID: b30167744d49fd5247cb78a7d5c81f8c48f87467

Stack Trace

zip_source_function_create :
zip_source_function_create :
QgsZipUtils::unzip :
QgsProjectArchive::unzip :
QgsProject::unzip :
QgsProject::read :
QgisApp::addProject :
QgisApp::openProject :
main :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.4.1-Madeira
QGIS code revision: 383851c597
Compiled against Qt: 5.11.2
Running against Qt: 5.11.2
Compiled against GDAL: 2.3.2
Running against GDAL: 2.3.2

System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.17134

sit_plzen.qgz - the project I am trying to load (29.3 KB) Jan Macura, 2018-12-11 11:14 PM

Associated revisions

Revision 9ca85f72
Added by Alessandro Pasotti almost 2 years ago

Do not crash when zipped project is not a valid zip

Fixes #20783 - Crash when opening qgz project

Revision 1bc9234c
Added by Alessandro Pasotti almost 2 years ago

Do not crash when zipped project is not a valid zip

Fixes #20783 - Crash when opening qgz project

History

#1 Updated by Alessandro Pasotti almost 2 years ago

  • Assignee set to Alessandro Pasotti

#2 Updated by Alessandro Pasotti almost 2 years ago

  • Subject changed from Crash when opening qgz project to Crash when opening (corrupted) qgz project
  • Status changed from Open to In Progress

The zip file is corrupted, but QGIS must not crash.

#3 Updated by Alessandro Pasotti almost 2 years ago

  • Category changed from Data Provider to Unknown
  • Pull Request or Patch supplied changed from No to Yes

#4 Updated by Alessandro Pasotti almost 2 years ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Closed

Also available in: Atom PDF