Bug report #4076
Hanging on trying to use --snapshot option from command line
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||Yes||Copied to github as #:||14059|
Trying to use --snapshot option to export raster with 1000x1000 dimensions (no extent) set from command line according to the description from http://underdark.wordpress.com/2010/11/30/creating-high-resolution-images-using-qgis/
QGIS opens up the project but hangs indefinitely without producing anything.
Win7, QGIS trunk 4c2e54c (OSGeo4W)
#3 Updated by Sake Wagenaar over 7 years ago
- File screen_print.png added
I have the same problem when I try to generate snapshots of a series of vector maps from a batch file (and also with a single snapshot from the command line). Several instances of QGIS are started. No images are saved and QGIS doesn't respond. The problem only occurs if I use the labeling function from the Layer menu. Not if I use the old labeling function from the Labels tab (Layer properties dialog).
I'm using QGIS 1.8.0, installed with the OSGeo4W installer (Windows 7).
#8 Updated by Jason Paul Joines over 6 years ago
I'm using Quantum GIS 1.8.0-Lisboa (package 1.8.0-1~precise3) on Kubuntu 12.04.2. I've just started working through the User Guide and am at the --snapshot explanation.
I had a session up and running with the landcover.img and lakes.gml files loaded from sample data, then tried "qgis --snapshot snapshot000.png" from a separate terminal window which fired up a new QGIS session and made a PNG of an empty white background.
Then I saved my project, closed QGIS and tried "qgis --project userguide.qgs --snapshot snapshot001.png". That resulted in less than a second of my project being displayed followed by a white background session and the mouse pointer spinning around in waiting mode. After several minutes, I killed the session and tried again. It hangs each time.
Then I opened my project interactively again and used the File --> Save as Image... to create the snapshot which worked just fine.
I thought displaying Tool Tips at startup might be causing the problems so I disabled that but no luck. Then I disabled showing the logo with "qgis --nologo --project userguide.qgs --snapshot snapshot001.png" but the session still hangs each time without creating a snapshot until I kill it.
#10 Updated by Sake Wagenaar over 6 years ago
- File QGIS19_Test_snapshots.zip added
- Status changed from Closed to Reopened
I tested the snapshot function with QGIS 1.9.0-Master (ddef9a9) on two systems (Windows 7 and Windows 8). The test failed on both systems. After the map is shown, the program does not react anymore and no snapshot is made. I used this command:
C:\\OSGeo4W\\bin\\qgis-dev.bat --project test.qgs --snapshot test.png
I uploaded a ZIP-file with a test project.