qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.35k stars 2.98k forks source link

QGIS (3.28.2-Firenze) QGZ save error - "Unable to perform zip" #52666

Open jacorybrady opened 1 year ago

jacorybrady commented 1 year ago

What is the bug or the crash?

QGIS (3.28.2-Firenze) QGZ save error gives the message: "Unable to perform zip" This occurs when trying to save, or save as. Folder location does not matter either.

Trying to save the project as a QGS gives this error: "Unable to save attachments archive." It QGS does save the file though. And also saves a qgs~ version as well. (Pasted portion of that file from text editor below in the Additional context box.)

This is a project that has been saved numerous times over the past 5 or 6 months, with no issues. The last save date was 2 days prior (thought it was saved yesterday, but apparently not by the datestamp)

Opening up the saved QGS file under a different profile worked, appears to work properly with no issues or errors (at a cursory glance). Saving a QGZ of the project was then possible. That file opens properly with no apparent issues as well.

Shutting down QGIS and opening back up from the new save works and could not make the errors re-occur.

Steps to reproduce the issue

Screen Shot 2023-04-12 at 8 32 19 PM Screen Shot 2023-04-12 at 8 32 23 PM Screen Shot 2023-04-12 at 8 32 38 PM Screen Shot 2023-04-12 at 8 32 46 PM

Versions

QGIS version 3.28.2-Firenze QGIS code revision b47e00ba60 Qt version 5.15.2 Python version 3.9.5 GDAL/OGR version 3.3.2 PROJ version 8.1.1 EPSG Registry database version v10.028 (2021-07-07) GEOS version 3.9.1-CAPI-1.14.2 SQLite version 3.35.2 PDAL version 2.3.0 PostgreSQL client version unknown SpatiaLite version 5.0.1 QWT version 6.1.6 QScintilla2 version 2.11.5 OS version macOS Mojave (10.14)

Active Python plugins processing 2.12.99 sagaprovider 2.12.99 grassprovider 2.12.99 db_manager 0.1.20 MetaSearch 0.3.6

Supported QGIS version

New profile

Additional context

<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>

GEOGCRS["WGS 84",ENSEMBLE["World Geodetic System 1984 ensemble",MEMBER["World Geodetic System 1984 (Transit)"],MEMBER["World Geodetic System 1984 (G730)"],MEMBER["World Geodetic System 1984 (G873)"],MEMBER["World Geodetic System 1984 (G1150)"],MEMBER["World Geodetic System 1984 (G1674)"],MEMBER["World Geodetic System 1984 (G1762)"],ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]],ENSEMBLEACCURACY[2.0]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["Horizontal component of 3D system."],AREA["World."],BBOX[-90,-180,90,180]],ID["EPSG",4326]] +proj=longlat +datum=WGS84 +no_defs 3452 4326 EPSG:4326 WGS 84 longlat EPSG:7030 true
rdewit commented 1 year ago

Interesting, we are having trouble where our QGIS Server running on Windows Server 2019 gives the following error on a .qgs file:

13:49:45 WARNING [8864]: Error opening zip archive: 'C:/XXXXXXX/Projects/Property_attachments.zip' (Error code: 11)

We get similar errors in our server log when trying to get the capabilities from a .qgz file:

CRITICAL Server[16832]: Error when loading project file 'C:/XXXXXXX/Projects/Property.qgz': Unable to unzip file 'C:/XXXXXXX/Projects/Property.qgz'

The desktop application does not have an issue. I wonder if there is a write permission issue.

We're running version 3.28.5 LTR from OSGeo4W. This seems related to your issue, @jacorybrady . Hopefully it will help anybody looking into this.

jacorybrady commented 1 year ago

This issue continues to occur, I've seen it twice now since the original posting. Judging by the error/warning message it gave when trying to save (see attached screenshot), I'm wondering if it has something to do with the computer being in different time zones. For background, I travel for work regularly, bouncing back and forth between EST & CST zones - 1 hour difference.

Perhaps if the project was opened in one time zone but then the computer's internal clock changes to another time zone with QGIS program still active, that is why this occurring? If so, it did not occur with prior version used, which would lead me to believe it is a bug specific to 3.28.2-Firenze.

Previous version used on this computer: QGIS version 3.22.11-Białowieża

Screen Shot 2023-04-18 at 4 31 47 PM
wkristan commented 1 year ago

I'm getting the same thing with 3.28.6-Firenze on Ubuntu Linux 22.04.2 LTS. Initially it only happened with new projects that hadn't been saved before. Existing projects were still saving successfully, and I was able to save them to a new location without problem. As I was testing what the conditions were that generated the error saving existing projects stopped working, and now all saving produces the error.

Starting qgis from the command line and then trying to save a new project gives me this error message:

Qt: Session management error: networkIdsList argument is NULL

The packages I have installed (reported by the About window) are:

QGIS version 3.28.6-Firenze QGIS code revision 868c9fa03b
Qt version 5.15.3
Python version 3.10.6
GDAL/OGR version 3.4.1
PROJ version 8.2.1
EPSG Registry database version v10.041 (2021-12-03)
GEOS version 3.10.2-CAPI-1.16.0
SQLite version 3.37.2
PDAL version 2.3.0
PostgreSQL client version unknown
SpatiaLite version 5.0.1
QWT version 6.1.4
QScintilla2 version 2.11.6
OS version Ubuntu 22.04.2 LTS
       

Active Python plugins SemiAutomaticClassificationPlugin | 7.10.11 quick_map_services | 0.19.33 grassprovider | 2.12.99 db_manager | 0.1.20 sagaprovider | 2.12.99 MetaSearch | 0.3.6 processing | 2.12.99

QGIS version 3.28.6-Firenze QGIS code revision 868c9fa03b Qt version 5.15.3 Python version 3.10.6 GDAL/OGR version 3.4.1 PROJ version 8.2.1 EPSG Registry database version v10.041 (2021-12-03) GEOS version 3.10.2-CAPI-1.16.0 SQLite version 3.37.2 PDAL version 2.3.0 PostgreSQL client version unknown SpatiaLite version 5.0.1 QWT version 6.1.4 QScintilla2 version 2.11.6 OS version Ubuntu 22.04.2 LTS

Active Python plugins SemiAutomaticClassificationPlugin 7.10.11 quick_map_services 0.19.33 grassprovider 2.12.99 db_manager 0.1.20 sagaprovider 2.12.99 MetaSearch 0.3.6 processing 2.12.99

wkristan commented 1 year ago

I tried completely removing Firenze, and installed the latest stable release (3.30, from the Ubuntu jammy repositories) and got the same error. In between removing Firenze and installing 3.30 I deleted all the QGIS files in my user directory, including all the caches and settings.

So, I installed the Xfce desktop and tried again, and the first time I saved a new project it worked, but the second time the unable to zip error returned, and no project file was created as before.

This time the error message in the console was:

Warning: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1035, resource id: 16820058, major code: 40 (TranslateCoords), minor code: 0

Opening an existing project and saving it back to itself, or to a new location, still works so far.

wkristan commented 10 months ago

This error persists in 3.28.12.

wkristan commented 10 months ago

And is present in 3.34.0-Prizren

This bug makes QGIS pretty unusable, anything that I can try as a user to work around it?

Vinisaper commented 4 months ago

Usually I can make it work on the third try. It is always three times for some reason

MATEOGLA commented 4 months ago

Hi, I have the same issue with version 3.36.2. QGIS reports an error that it cannot zip but only when I use projects saved on OneDrive. Has anyone managed to solve this problem yet?