https://issues.qgis.org/https://issues.qgis.org/favicon.ico2007-10-11T16:03:25ZQGIS Issue TrackingQGIS Application - Bug report #777: crashes with python reference to destroyed objects (e.g exportToWkt() crashes when geom has been deleted)https://issues.qgis.org/issues/777?journal_id=156812007-10-11T16:03:25ZMartin Dobiaswonder.sk@gmail.com
<ul></ul><p>The problem here is in python bindings because the scenario seems to be like this:<br /> 1. get feature<br /> 2. store geometry's reference in Python<br /> 3. feature is deleted (together with geometry)<br /> 4. reference in Python still exists, but the object it's pointing to doesn't</p>
<p>I'm trying to find out how to cope with this correctly...</p>
<p>Martin</p> QGIS Application - Bug report #777: crashes with python reference to destroyed objects (e.g exportToWkt() crashes when geom has been deleted)https://issues.qgis.org/issues/777?journal_id=156822008-08-29T00:27:49ZJürgen Fischerjef@norbit.de
<ul></ul><p>see also <a class="issue tracker-1 status-5 priority-3 priority- closed" href="https://issues.qgis.org/issues/1248" title="QgsGeometry.Union causes Segfault when unioning multi-polyon features (Closed)">#1248</a></p> QGIS Application - Bug report #777: crashes with python reference to destroyed objects (e.g exportToWkt() crashes when geom has been deleted)https://issues.qgis.org/issues/777?journal_id=156832009-07-30T03:40:56ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Hi,</p>
<p>what is the status of this issue?</p>
<p>cheers</p> QGIS Application - Bug report #777: crashes with python reference to destroyed objects (e.g exportToWkt() crashes when geom has been deleted)https://issues.qgis.org/issues/777?journal_id=156842009-12-01T22:52:16ZJürgen Fischerjef@norbit.de
<ul></ul><p>see also <a class="issue tracker-1 status-5 priority-3 priority- closed" href="https://issues.qgis.org/issues/2173" title="Crash in python console when renderer changes (Closed)">#2173</a></p> QGIS Application - Bug report #777: crashes with python reference to destroyed objects (e.g exportToWkt() crashes when geom has been deleted)https://issues.qgis.org/issues/777?journal_id=156852010-06-11T22:24:35ZPaolo Cavallinicavallini@faunalia.it
<ul></ul><p>Still true?</p> QGIS Application - Bug report #777: crashes with python reference to destroyed objects (e.g exportToWkt() crashes when geom has been deleted)https://issues.qgis.org/issues/777?journal_id=156862010-06-11T22:42:47ZMartin Dobiaswonder.sk@gmail.com
<ul></ul><p>This haven't been fixed yet</p> QGIS Application - Bug report #777: crashes with python reference to destroyed objects (e.g exportToWkt() crashes when geom has been deleted)https://issues.qgis.org/issues/777?journal_id=156872010-07-24T14:29:07ZGiuseppe Sucamelibrush.tyler@gmail.com
<ul></ul><p>No crashes in my Ubuntu 9.04, but I never get the correct results.</p>
<p>I tried wkbType() on the same selected geometry a lot of times and I get different (and also strange) results:<br />0, 16777216, 7, 187101, 92, 143587, ...</p> QGIS Application - Bug report #777: crashes with python reference to destroyed objects (e.g exportToWkt() crashes when geom has been deleted)https://issues.qgis.org/issues/777?journal_id=275552011-12-16T12:59:11ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Target version</strong> changed from <i>Version 1.7.0</i> to <i>Version 1.7.4</i></li></ul> QGIS Application - Bug report #777: crashes with python reference to destroyed objects (e.g exportToWkt() crashes when geom has been deleted)https://issues.qgis.org/issues/777?journal_id=280312011-12-23T07:09:14ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Pull Request or Patch supplied</strong> set to <i>No</i></li><li><strong>Crashes QGIS or corrupts data</strong> set to <i>Yes</i></li><li><strong>Affected QGIS version</strong> set to <i>master</i></li></ul> QGIS Application - Bug report #777: crashes with python reference to destroyed objects (e.g exportToWkt() crashes when geom has been deleted)https://issues.qgis.org/issues/777?journal_id=307612012-04-16T04:22:25ZPaolo Cavallinicavallini@faunalia.it
<ul><li><strong>Target version</strong> changed from <i>Version 1.7.4</i> to <i>Version 1.8.0</i></li></ul> QGIS Application - Bug report #777: crashes with python reference to destroyed objects (e.g exportToWkt() crashes when geom has been deleted)https://issues.qgis.org/issues/777?journal_id=347432012-09-04T10:03:56ZPaolo Cavallinicavallini@faunalia.it
<ul><li><strong>Target version</strong> changed from <i>Version 1.8.0</i> to <i>Version 2.0.0</i></li></ul> QGIS Application - Bug report #777: crashes with python reference to destroyed objects (e.g exportToWkt() crashes when geom has been deleted)https://issues.qgis.org/issues/777?journal_id=379802012-12-30T08:46:45ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Priority</strong> changed from <i>Low</i> to <i>High</i></li></ul> QGIS Application - Bug report #777: crashes with python reference to destroyed objects (e.g exportToWkt() crashes when geom has been deleted)https://issues.qgis.org/issues/777?journal_id=389502013-02-24T09:19:39ZMatthias Kuhn
<ul></ul><p>Fix in <a href="https://github.com/qgis/Quantum-GIS/pull/436" class="external">pull request #436</a></p>
<p>Not sure if it's the best way to do it.<br />Maybe a reference counter or the like could also help to overcome this problem. But I'm not sure how easy it is to do mixed ref-counting between python and C++?</p> QGIS Application - Bug report #777: crashes with python reference to destroyed objects (e.g exportToWkt() crashes when geom has been deleted)https://issues.qgis.org/issues/777?journal_id=480102014-01-30T22:43:32ZPaolo Cavallinicavallini@faunalia.it
<ul><li><strong>Target version</strong> changed from <i>Version 2.0.0</i> to <i>Future Release - High Priority</i></li></ul> QGIS Application - Bug report #777: crashes with python reference to destroyed objects (e.g exportToWkt() crashes when geom has been deleted)https://issues.qgis.org/issues/777?journal_id=711722016-06-22T04:34:41ZJürgen Fischerjef@norbit.de
<ul><li><strong>Assignee</strong> deleted (<del><i>Martin Dobias</i></del>)</li></ul> QGIS Application - Bug report #777: crashes with python reference to destroyed objects (e.g exportToWkt() crashes when geom has been deleted)https://issues.qgis.org/issues/777?journal_id=720642016-08-01T14:23:21ZNyall Dawson
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Fixed in changeset <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/bd7d913379b68a8104608b1afab4d380e4edc26b" title="Refine QgsFeature geometry getters/setters All pointer based methods have been removed. Now we ...">bd7d913379b68a8104608b1afab4d380e4edc26b</a>.</p>