Opened 18 years ago

Closed 18 years ago

Last modified 15 years ago

#141 closed bug (duplicate)

crashes when printing on pdf

Reported by: scarselli@… Owned by: rblazek
Priority: critical: causes crash or data corruption Milestone:
Component: Printing Version: 0.8
Keywords: print pdf Cc:
Must Fix for Release: No Platform: Debian
Platform Version: etch Awaiting user input: no

Description

When I print on a virtually pdf printer I get this error

Debug: XP@�����`�Ͷ��ο0�0�@�}0��}8�8��}8��}�_(��x��� ��‹���x��� �� 0��}�}8�8��}8��}�_(�~�O���ο:-1076961576 in project file no symbol node in renderitem DOM Debug: qgslabel.cpp:602 QgsLabel::readXML() got node labelattributes key: composition_1 QgsComposerMap::recalculate mCalculate = 1 mUserExtent = 1608759.5842439599800855,4829905.6724525298923254 : 1616531.4813295900821686,4836227.1256708903238177 mScale = 0.2 mExtent = 1608433.0327867749147117,4829541.3990617096424103 : 1616858.0327867749147117,4836591.3990617096424103 QgsComposerMap::setOptions QgsComposerMap::recalculate mCalculate = 1 mUserExtent = 1608759.5842439599800855,4829905.6724525298923254 : 1616531.4813295900821686,4836227.1256708903238177 mScale = 0.2 mExtent = 1608433.0327867749147117,4829541.3990617096424103 : 1616858.0327867749147117,4836591.3990617096424103 QgsComposerMap::setOptions QgsComposerLabel::QgsComposerLabel() QgsComposerLabel::readSettings mId = 2 QgsComposerLabel::areaPoints QgsComposerLabel::areaPoints QgsComposerLabel::QgsComposerLabel() QgsComposerLabel::readSettings mId = 3 QgsComposerLabel::areaPoints QgsComposerLabel::areaPoints QgsComposerLabel::QgsComposerLabel() QgsComposerLabel::readSettings mId = 4 QgsComposerLabel::areaPoints QgsComposerLabel::areaPoints QgsComposerLabel::QgsComposerLabel() QgsComposerLabel::readSettings mId = 5 QgsComposerLabel::areaPoints QgsComposerLabel::areaPoints draw mPlotStyle = 0 mPreviewMode = 0 use cache extent = 8425 x 7050 cache = 1000 x 836 transform = Map units/pixel: 8.425 X minimum: 1.60843e+06 Y minimum: 4.82954e+06 Y maximum: 836 scale = 1.685 translate: 35, 40 QgsComposerLabel::render QgsComposerLabel::render QgsComposerLabel::render QgsComposerLabel::render Resolution = 600 Paper: 420 x 297 Printing ... draw mPlotStyle = 2 mPreviewMode = 0 render Segmentation fault

Change History (7)

comment:1 by cavallini@…, 18 years ago

Further testing: printing to cups-pdf produces an empty ~/PDF/_stin_.pdf file

comment:2 by cavallini@…, 18 years ago

Further testing confirms the bug. It seems to be related to the complexity of the image: with only a greyscale grass raster it prints ok, if we overlay a higher resolution layer, it crashes:

use cache scale = 1.62 translate: 90, 133 draw mPlotStyle = 0 QgsComposerScalebar::render p = 0xafc7897c mComposition->scale() = 5 QgsComposerScalebar::boundingRect QgsComposerScalebar::writeSettings Resolution = 300 Paper: 420 x 297 Printing ... draw mPlotStyle = 2 mPreviewMode = 0 render Segmentation fault

comment:3 by g_j_m, 18 years ago

Can you attach a back trace from it crashes?

comment:4 by cavallini@…, 18 years ago

I did some more testing with r5907, and it seems to be working with simple cases, and crashing when I add several grass layers, transparencies etc.: QgsComposerVectorLegend::render p = 0xafb4707c mComposition->scale() = 5 font sizes = 71.6139 61.3833 51.1528 layer = 3 layer = 2 mSelected = 0 draw mPlotStyle = 0 QgsComposerScalebar::render p = 0xafb4707c mComposition->scale() = 5 QgsComposerLabel::render Resolution = 300 Paper: 420 x 297 Printing ... draw mPlotStyle = 2 mPreviewMode = 0 render Segmentation fault

comment:5 by g_j_m, 18 years ago

Resolution: duplicate
Status: newclosed

I'm tidying up the 'crash when printing to postscript' tickets - refer to ticket #345 for further details.

comment:6 by rblazek, 18 years ago

Priority: majorcritical

comment:7 by (none), 15 years ago

Milestone: Version 0.8

Milestone Version 0.8 deleted

Note: See TracTickets for help on using tickets.