Opened 13 years ago

Closed 13 years ago

#1128 closed defect (worksforme)

QGIS 0.10.0 crashes when using print composer

Reported by: morgan Owned by: nobody
Priority: critical: causes crash or data corruption Milestone:
Component: Printing Version: 0.10.0
Keywords: print composer, ubuntu, kde, kubuntu, print, printing Cc:
Must Fix for Release: No Platform: Linux
Platform Version: Ubuntu 8.04 Awaiting user input: no


Using QGIS 0.10.0-6~hardy on (k)ubuntu 8.04 on a Thinkpad T61.

Print composer causes QGIS to completely exit without warning or error message.

This happens every time I try to "print."

Steps: File>>Print (print composer opens) Click on "add map" Try to place map>> I can draw the square boundary for the map. I draw the box, QGIS sits for a second, then the entire program crashes without warning or error message.

This worked fine in 0.9


Change History (8)

comment:1 Changed 13 years ago by cuz

Platform Version: Ubuntu 8.04

I have a similar problem with straight Ubuntu Hardy 8.04. In Print Composer, I can print and generate SVG files reasonably well (though point symbols seem to be reproduced in different shapes). However, when I try to save to image (png), QGIS crashes and takes Gnome Desktop with it. Save as Image works fine from main GUI.

comment:2 Changed 13 years ago by mhugent

Hm, I cannot reproduce both problems with the current svn version (30.06.2008). Did you use svn version? If yes, then it would be good to know what kind of layer your project contains.


comment:3 Changed 13 years ago by cuz


Good point. Sorry for my relative ignorance here. I just started using QGIS this week (love it). My version is the most recent Ubuntu would automagically download from for Hardy.

The project has a mix of shapefiles (point and vector) and vector PostGIS files. The particular view I've been trying to save originally had a postGIS vector file and a vector shapefile (both from Census boundary files--basically states on one (shapefile) layer and a (postGIS) graduated symbol layer of metro areas) and a print composer generated label. After the previous note, I removed the label and had the same results.

I don't know if this applies, but I did mess around with legend files a bit for the postGIS layer since I couldn't figure out how to edit the ranges provided on the layer's symbology tab. I did discover that I had to change the layer 'id' in the style file along with the layer names. (Note: It would be great if the styles were NOT associated with a particular layer so that they could be easily imported to additional layers.)

And note that I'm aware that my lack of familiarity with the program may also be a factor!

I will try to start a new project and try isolating layer types to see if that sheds any light and report back.


comment:4 Changed 13 years ago by cuz

Well, I'm confused. All I can do is give you results. Using this shapefile (, the crash occurs. Using other shapefiles (like,%20Census%20&%20Administrative%20Shapefiles%20&%20Data/ produces no problem. Also, after importing the problem file into postGIS using shp2pgsql, it saves to png without a problem. Perhaps this means it's a malformed shapefile?

comment:5 Changed 13 years ago by morgan

I'm not using the SVN version, I'm using the Hardy package from Have there been any changes to the print manager in the current SVN version?

Also, (and this is probably important) I've noticed that I only have this problem when there are PostGIS layers in the map.

Lastly, the save as image problem posted above should probably be it's own ticket, as it doesn't seem to relate to the Print Composer.

comment:6 Changed 13 years ago by cuz

My issue probably shouldn't be a separate ticket as it ONLY happens in print composer. Save as image from the main window works fine. (This is not to say that the issue is necessarily the same, only that it should not be moved on account of its relation to print composer.)

The problem also occurred only with some shapefiles even in the absence of PostGIS layers.

comment:7 Changed 13 years ago by morgan

whoops, sorry cuz, I misread your comment.

comment:8 Changed 13 years ago by mhugent

Resolution: worksforme
Status: newclosed

Dear cuz and morgan

I installed the 0.10 package for hardy, downloaded the shapefile st99_d00, opened print composer and exported to png. Unfortunately, there was no crash for me, so it's difficult for me to find the cause of your problems.

For 0.11, many things in rendering and also in print composer have been changed. For 1.0, nearly all of the print composer code is going to be changed under the hood (in advanced_printing_branch). So I close this ticket for now, as I think it will be out of date with the following releases. There will surely be new problems then ;-) Anyway, thanks for your feedback.


Note: See TracTickets for help on using tickets.