Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#1252 closed bug (fixed)

QGIS crashes when I use Identify Tool on MULTILINESTRINGS

Reported by: hdus Owned by: jef
Priority: critical: causes crash or data corruption Milestone:
Component: Vectors Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: RedHat
Platform Version: Awaiting user input: yes

Description

When I use the Identify Tool on MULTILINESTRINGS loaded from PostGIS QGIS, crashes with the following system message:

Fatal: ASSERT: "!isEmpty()" in file /usr/local/qt4.3.4/include/QtCore/qvector.h, line 237

Attachments (2)

temp.zip (17.1 KB ) - added by hdus 16 years ago.
strass.sql (81.9 KB ) - added by hdus 16 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 by jef, 16 years ago

Is there some more information about this? I couldn't reproduce the problem.

comment:2 by jef, 16 years ago

Owner: changed from nobody to jef

in reply to:  1 comment:3 by hdus, 16 years ago

Replying to jef:

Is there some more information about this? I couldn't reproduce the problem.

This chrash affect QGIS-1.0.0 trunk. QGIS-0.11 works fine without any problems. The crash happens with PostGIS-Layer only. When I convert the layer to shape everything works fine.

Additional I found out that polygon geometries also shows curious behaviour. Not in all cases but sometimes when I click into a single polygon more than 1 polygon is queried or one of the neighbour polygon. There is no difference between shape or postgis. Try the attached shape.

My System: Qt-4.3.4 QGIS 1.0.0 rev. 9205 Hedhat AS4 PostgreSQL 8.3.3

by hdus, 16 years ago

Attachment: temp.zip added

comment:4 by jef, 16 years ago

Resolution: fixed
Status: newclosed

fixed in r9209

in reply to:  4 ; comment:5 by hdus, 16 years ago

Replying to jef:

fixed in r9209

jef thank you very much for the fast fix!!

in reply to:  5 ; comment:6 by hdus, 16 years ago

Resolution: fixed
Status: closedreopened

Replying to hdus:

Replying to jef:

fixed in r9209

jef thank you very much for the fast fix!!

Ooops I was a little bit premature, but the multilinestring issue doesn't seems to be fixed, QGIS is still crashing.

in reply to:  6 comment:7 by jef, 16 years ago

Awaiting user input: set

Replying to hdus:

Replying to hdus:

Replying to jef:

fixed in r9209

jef thank you very much for the fast fix!!

Ooops I was a little bit premature, but the multilinestring issue doesn't seems to be fixed, QGIS is still crashing.

Ok, the fixed bug didn't seem to be related to either multilinestrings or postgis anyway. I spit your shape into postgis and was able to reproduce crashes when opening the identify results and clicking multiple times on different polygons.

So there must be something else, which I'm still unable to reproduce. The only thing I noticed is that the postgis table contains POLYGONs only, while the bug title is about MULTILINESTRINGs.

Which GEOS version are you running?

comment:8 by hdus, 16 years ago

I checked the problem on a different box with Kubuntu 7.10. QGIS also crashes when I try to query a multilinestring with the identify tool on this box.

I use GEOS-3.0.0.

Please look at the attached postgis dump which crashes QGIS on the mentioned two boxes.

by hdus, 16 years ago

Attachment: strass.sql added

in reply to:  8 ; comment:9 by jef, 16 years ago

Resolution: fixed
Status: reopenedclosed

Replying to hdus:

Please look at the attached postgis dump which crashes QGIS on the mentioned two boxes.

ah, ok - that one contains MULTILINESTRINGs and produces a crash. It happend when QGIS was trying to show the endpoints of the line. It doesn't do that for MULTILINESTRINGs anymore.

fixed in r9211

in reply to:  9 comment:10 by hdus, 16 years ago

Replying to jef:

Replying to hdus:

Please look at the attached postgis dump which crashes QGIS on the mentioned two boxes.

ah, ok - that one contains MULTILINESTRINGs and produces a crash. It happend when QGIS was trying to show the endpoints of the line. It doesn't do that for MULTILINESTRINGs anymore.

fixed in r9211

Jürgen nun funzt es. Many thanx!

comment:11 by (none), 15 years ago

Milestone: Version 1.0.0

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.