Opened 18 years ago

Closed 18 years ago

Last modified 15 years ago

#57 closed defect (fixed)

segfault when opening a project with a map composed

Reported by: werchowyna@… Owned by: rblazek
Priority: critical: causes crash or data corruption Milestone:
Component: Project Loading / Saving Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: Debian
Platform Version: ubuntu breezy Awaiting user input: no

Description

Opening any project which was saved after using Map composer there is a segfault.

  1. new project
  1. add layer
  1. use Map composer
  1. save project
  1. open this project
  1. segfault

Last QGIS words are:

Debug: key: <SelectionColorBluePart> value: 0 Debug: key: <SelectionColorGreenPart> value: 255 Debug: key: <SelectionColorRedPart> value: 255 Debug: key: <CanvasColorBluePart> value: 255 Debug: key: <CanvasColorGreenPart> value: 255 Debug: key: <CanvasColorRedPart> value: 255 Debug: key: <PositionPrecision> subkey: <PositionPrecision> Debug: name: PositionPrecision Debug: key: <DecimalPlaces> value: 2 Debug: key: <Automatic> value: true Debug: qgsproject.cpp : 678 unable to find title element

Debug: qgslabel.cpp:573 QgsLabel::readXML() got node labelattributes If there is a QPaintEngine error here, it is caused by an emit call just after l ine 215 in file qgsmaprender.cpp. layer name: Shadow_2004_region Vector layer type: ogr The selected layer is not GRASS. Debug: Unable to find canvas widget theOverviewCanvas Debug: Unable to find canvas widget theOverviewCanvas Debug: Canvas bacground color restored... key: composition_1 Segmentation fault

Maciek

Attachments (1)

qgis-openproject-5500.diff (1.7 KB ) - added by takubo@… 18 years ago.
patch for this ticket

Download all attachments as: .zip

Change History (6)

comment:1 by anonymous, 18 years ago

Owner: changed from gsherman to rblazek

comment:2 by takubo@…, 18 years ago

This problem was occured in my debian system. It may be encoding related problem.

While writing and reading composed setting, it may break setting if layer name have non-ascii charcters.

I made patch for this problem. It works fine with my env.

by takubo@…, 18 years ago

Attachment: qgis-openproject-5500.diff added

patch for this ticket

comment:3 by g_j_m, 18 years ago

Resolution: fixed
Status: newclosed

Applied patch (in SVN r5502), which appears to resolve the problem.

comment:4 by anonymous, 17 years ago

Awaiting user input: unset
Must Fix for Release: No

comment:5 by (none), 15 years ago

Milestone: Version 0.8

Milestone Version 0.8 deleted

Note: See TracTickets for help on using tickets.