https://issues.qgis.org/https://issues.qgis.org/favicon.ico2014-11-07T07:26:28ZQGIS Issue TrackingQGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=572872014-11-07T07:26:28ZSpencer Gardnerspencergardner@gmail.com
<ul></ul><p>Looks like my crash dump didn't attach (yet again). Here's a Dropbox link to a copy of the file:<br /><a class="external" href="https://www.dropbox.com/s/vk8dsbb9li8ri4c/qgis-20141107-101621-5032-5448-exported.dmp?dl=0">https://www.dropbox.com/s/vk8dsbb9li8ri4c/qgis-20141107-101621-5032-5448-exported.dmp?dl=0</a></p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=572972014-11-07T10:24:30ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>High</i></li></ul><p>Was the project made on qgis 2.4? can you try qgis master and see if it still happens?</p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=572982014-11-07T10:31:40ZSpencer Gardnerspencergardner@gmail.com
<ul></ul><p>I can't recall for certain, but I'm pretty sure this project was created in 2.6. In any case I'm running 2.6 now. Unfortunately, I can't test in master as I'm on a work computer without the ability to build master from source.</p>
<p>For what it's worth, the crashes also occur in Composer layout if I add the map and then zoom far enough out.</p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=572992014-11-07T10:36:26ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Spencer Gardner wrote:</p>
<blockquote>
<p>I can't recall for certain, but I'm pretty sure this project was created in 2.6. In any case I'm running 2.6 now. Unfortunately, I can't test in master as I'm on a work computer without the ability to build master from source.</p>
<p>For what it's worth, the crashes also occur in Composer layout if I add the map and then zoom far enough out.</p>
</blockquote>
<p>can you add a sample project (with data)?</p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=573002014-11-07T10:53:43ZSpencer Gardnerspencergardner@gmail.com
<ul></ul><p>Progress! I was able to isolate the problem to the inverse polygon shapeburst style on one of my layers. I tested on a copy of the dataset where I removed all rows with invalid geometries and it appears to work just fine. It looks like the problem is the handling of invalid geometries.</p>
<p>The problem only occurs if I have the layer in question symbolized with inverse polygons and shapeburst combined. I'm not having a problem with inverse polygon by itself and no errors with a plain shapeburst.</p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=573012014-11-07T10:55:02ZSpencer Gardnerspencergardner@gmail.com
<ul></ul><p>The data in question is stored in PostGIS so sharing would be difficult. I found that if I exported to shapefile for sharing purposes, the problem went away (presumably because the export cleared up any validity issues on the geometries). Let me know if you still need my data for testing and I'll see if there's something we can work out.</p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=573022014-11-07T10:57:58ZSpencer Gardnerspencergardner@gmail.com
<ul></ul><p>By the way, it might make a difference to know that my data were multipolygons. And I just ran ST_Makevalid on my PostGIS table and the problem no longer occurs in the original map.</p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=573262014-11-08T05:02:48ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Subject</strong> changed from <i>Crash when zooming out</i> to <i>Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometries</i></li><li><strong>Category</strong> set to <i>Symbology</i></li></ul><p>Spencer Gardner wrote:</p>
<blockquote>
<p>By the way, it might make a difference to know that my data were multipolygons. And I just ran ST_Makevalid on my PostGIS table and the problem no longer occurs in the original map.</p>
</blockquote>
<p>I have tried the same conditions, invalid multigeometry and same combination of symbology, but no crash. Please try qgis master and/or attach sample data and the style you are using. Thanks.</p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=573642014-11-10T06:22:01ZSpencer Gardnerspencergardner@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/download/8052/bad_layer.zip">bad_layer.zip</a> added</li></ul><p>I have attached a PostGIS sql backup of the layer and the .qml symbology that I'm using. Hopefully that gives you what you need to recreate the conditions. I just tested in a fresh map with only this dataset and symbology and I'm still having the problem once I zoom out far enough. The zoom level seems to vary - it generally happens between 1:60,000 and 1:100,000.</p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=573702014-11-10T09:23:16ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Spencer Gardner wrote:</p>
<blockquote>
<p>I have attached a PostGIS sql backup of the layer and the .qml symbology that I'm using. Hopefully that gives you what you need to recreate the conditions. I just tested in a fresh map with only this dataset and symbology and I'm still having the problem once I zoom out far enough. The zoom level seems to vary - it generally happens between 1:60,000 and 1:100,000.</p>
</blockquote>
<p>many messages in the log</p>
<p>2014-11-10T18:21:52 1 Exception: IllegalArgumentException: geometries must not contain null elements</p>
<p>but no crashes on QGIS master, Please give it a try and report back. Thanks!</p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=573742014-11-10T10:00:02ZSpencer Gardnerspencergardner@gmail.com
<ul></ul><p>I'll build master on my Ubuntu machine at home and see if I can reproduce. Could be specific to Windows, though. In any case, I can't build master on my work machine so there's not much more I can investigate here at work.</p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=573752014-11-10T10:04:09ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Spencer Gardner wrote:</p>
<blockquote>
<p>I'll build master on my Ubuntu machine at home and see if I can reproduce.</p>
</blockquote>
<p>no need to compile, there is a repository. On Windows you can install qgis master with the psgeo4w installer, no need to compile too.</p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=573762014-11-10T10:19:17ZSpencer Gardnerspencergardner@gmail.com
<ul></ul><p>I wasn't aware of the master build in osgeo4w. I'll give that a try sometime but it might be a few days. Will get back to you with results.</p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=573812014-11-10T18:18:25ZSpencer Gardnerspencergardner@gmail.com
<ul></ul><p>Just tested on Ubuntu with 2.6. No crash, but I'm seeing the same error messages and the layer disappears from the canvas when I zoom out to 1:130,000 or so. Would there be a difference in the way Windows handles this error compared to Ubuntu? It certainly looks like that's what is triggering the crash.</p>
<p>Will test with master on Windows when I have a chance.</p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=573932014-11-11T07:15:25ZSpencer Gardnerspencergardner@gmail.com
<ul></ul><p>Just installed master on Windows. Same result as my test on Ubuntu last night. Same error message and the layer disappears at certain scales. Interestingly, as I zoomed further out I noticed that the layer reappeared. It would disappear at about 1:110,000 and reappear at about 1:650,000.</p>
<p>Not sure if there's any further testing I can do. The problem appears to be somewhat isolated and doesn't crash in master.</p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=573942014-11-11T07:28:31ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Spencer Gardner wrote:</p>
<blockquote>
<p>Just installed master on Windows. Same result as my test on Ubuntu last night. Same error message and the layer disappears at certain scales. Interestingly, as I zoomed further out I noticed that the layer reappeared. It would disappear at about 1:110,000 and reappear at about 1:650,000.</p>
<p>Not sure if there's any further testing I can do. The problem appears to be somewhat isolated and doesn't crash in master.</p>
</blockquote>
<p>it still disappear if instead you use a clean vector?</p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=573952014-11-11T07:43:06ZSpencer Gardnerspencergardner@gmail.com
<ul></ul><p>It still disappears if I use a copy of the layer with valid geometries and the same symbology. It does not disappear if I use a simple fill symbology (with either valid or invalid geometries).</p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=573982014-11-11T12:06:53ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Spencer Gardner wrote:</p>
<blockquote>
<p>It still disappears if I use a copy of the layer with valid geometries and the same symbology. It does not disappear if I use a simple fill symbology (with either valid or invalid geometries).</p>
</blockquote>
<p>at this point this ticket should be closed as fixed (because in master is fixed) then you should open another one against qgis/symbology about the inverted polygons and disappearing features, attaching again the sample data.</p> QGIS Application - Bug report #11594: Crash when using inverse polygons and shapeburst (combined) symbology on invalid geometrieshttps://issues.qgis.org/issues/11594?journal_id=573992014-11-11T12:10:35ZSpencer Gardnerspencergardner@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul><p>Crash no longer occurs in master</p>