Bug report #11871
QGIS master crashes while trying load any zipped vector layer
Status: | Closed | ||
---|---|---|---|
Priority: | Severe/Regression | ||
Assignee: | - | ||
Category: | Browser | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | fixed/implemented |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 20085 |
Description
Subject says it all.
Does not happen on QGIS 2.6.1
Associated revisions
use directory path and not item path (fixes #11871)
History
#1 Updated by Jürgen Fischer almost 10 years ago
- Category changed from Vectors to Data Provider/OGR
#2 Updated by Jürgen Fischer almost 10 years ago
- Category changed from Data Provider/OGR to Browser
#3 Updated by Jürgen Fischer almost 10 years ago
- Status changed from Open to Closed
Fixed in changeset ba4948e4416e67e81d007e5f74072c7052037a27.
#4 Updated by Radim Blazek almost 10 years ago
- Status changed from Closed to Feedback
The fix in ba4948e44 was not correct, QgsDirectoryItem::createChildren() must create children with path created from mPath, not from mDirPath (#ba4948e4416e67e81d007e5f74072c7052037a27?diff=unified#diff-e89106528fe0226767dfccab355e44dcL771).
I have reverted that partially in 74e2abd38cf10 but I cannot reproduce the crash. I tried with zip, tar tar.gz and it works for me. Can you tell me more about the zip file and its structure, vector format etc. or post a test zip file if possible + traceback.
#5 Updated by Jürgen Fischer almost 10 years ago
Radim Blazek wrote:
The fix in ba4948e44 was not correct, QgsDirectoryItem::createChildren() must create children with path created from mPath, not from mDirPath (#ba4948e4416e67e81d007e5f74072c7052037a27?diff=unified#diff-e89106528fe0226767dfccab355e44dcL771).
I have reverted that partially in 74e2abd38cf10 but I cannot reproduce the crash. I tried with zip, tar tar.gz and it works for me. Can you tell me more about the zip file and its structure, vector format etc. or post a test zip file if possible + traceback.
It now again doesn't work in the home:
and the project:
branch (eg. it tries to open /vsizip/project:/regions.zip
or vsizip/home:/home/fischer/test/regions.zip
)
What problems did the fix introduce?
#6 Updated by Radim Blazek almost 10 years ago
Strange! For me both home: and project: work, uri is without home:/project: prefix.
Problem with using mDirPath instead of mPath was, that it was impossible to distinguish paths in root dir, home and project when restoring state.
#7 Updated by Radim Blazek almost 10 years ago
Which GDAL version? I have 1.10.0.
#8 Updated by Radim Blazek almost 10 years ago
I see, the problem is only with single layer zip files, I'll fix that.
#9 Updated by Radim Blazek almost 10 years ago
It should be fixed in b843f81.
#10 Updated by Giovanni Manghi almost 10 years ago
- Resolution set to fixed/implemented
- Status changed from Feedback to Closed