https://issues.qgis.org/https://issues.qgis.org/favicon.ico2016-07-19T23:26:08ZQGIS Issue TrackingQGIS Application - Bug report #15311: Issue with QgsVectorLayerUndoCommand class (QGIS crashes)https://issues.qgis.org/issues/15311?journal_id=719302016-07-19T23:26:08ZMartin Dobiaswonder.sk@gmail.com
<ul></ul><p>Unfortunately currently if you connect to one of the layer "editing" signals, issuing further editing commands will break the undo stack of the layer (because the previous undo command is not fully finished when a new undo command appears). A workaround for the meanwhile is to delay the follow up editing command - e.g. by making the connection "queued" or by using a QTimer with zero timeout or something similar...</p> QGIS Application - Bug report #15311: Issue with QgsVectorLayerUndoCommand class (QGIS crashes)https://issues.qgis.org/issues/15311?journal_id=719982016-07-26T13:57:35Zgcarrillo -
<ul></ul><p>Thank you Martin for your comments. I've been trying with 3 layer editing SIGNALs (featureAdded, geometryChanged, and attributeValueChanged) and the only one that seems to fail is featureAdded. The other 2 don't make QGIS crash and allow QGIS to undo the edits properly.</p> QGIS Application - Bug report #15311: Issue with QgsVectorLayerUndoCommand class (QGIS crashes)https://issues.qgis.org/issues/15311?journal_id=744122017-02-04T01:50:38ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Priority</strong> changed from <i>Normal</i> to <i>High</i></li></ul> QGIS Application - Bug report #15311: Issue with QgsVectorLayerUndoCommand class (QGIS crashes)https://issues.qgis.org/issues/15311?journal_id=750212017-03-07T06:52:33ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Target version</strong> changed from <i>Future Release - High Priority</i> to <i>Version 2.18</i></li><li><strong>Affected QGIS version</strong> changed from <i>2.14.2</i> to <i>2.18.4</i></li></ul> QGIS Application - Bug report #15311: Issue with QgsVectorLayerUndoCommand class (QGIS crashes)https://issues.qgis.org/issues/15311?journal_id=777862017-04-30T23:05:21ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Easy fix?</strong> set to <i>No</i></li><li><strong>Regression?</strong> set to <i>No</i></li></ul> QGIS Application - Bug report #15311: Issue with QgsVectorLayerUndoCommand class (QGIS crashes)https://issues.qgis.org/issues/15311?journal_id=992262019-01-29T12:23:37ZPeter Petrikpeter.petrik@lutraconsulting.co.uk
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li><li><strong>Description</strong> updated (<a href="/journals/diff/99226?detail_id=87876" title="View differences">diff</a>)</li></ul><p>Can you please retest with 3.x release, since 2.18 is no longer developed and let me know if this is still the issue? Thanks</p> QGIS Application - Bug report #15311: Issue with QgsVectorLayerUndoCommand class (QGIS crashes)https://issues.qgis.org/issues/15311?journal_id=1018232019-03-09T14:09:33ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>end of life</i></li></ul><p><strong>End of life notice: QGIS 2.18 LTR</strong></p>
<p><strong>Source:</strong><br /><a class="external" href="http://blog.qgis.org/2019/03/09/end-of-life-notice-qgis-2-18-ltr/">http://blog.qgis.org/2019/03/09/end-of-life-notice-qgis-2-18-ltr/</a></p>
<p>QGIS 3.4 has recently become our new Long Term Release (LTR) version. This is a major step in our history – a long term release version based on the massive updates, library upgrades and improvements that we carried out in the course of the 2.x to 3x upgrade cycle.</p>
<p>We strongly encourage all users who are currently using QGIS 2.18 LTR as their preferred QGIS release to migrate to QGIS 3.4. This new LTR version will receive regular bugfixes for at least one year. It also includes hundreds of new functions, usability improvements, bugfixes, and other goodies. See the relevant changelogs for a good sampling of all the new features that have gone into version 3.4</p>
<p>Most plugins have been either migrated or incorporated into the core QGIS code base.</p>
<p>We strongly discourage the continued use of QGIS 2.18 LTR as it is now officially unsupported, which means we’ll not provide any bug fix releases for it.</p>
<p>You should also note that we intend to close all bug tickets referring to the now obsolete LTR version. Original reporters will receive a notification of the ticket closure and are encouraged to check whether the issue persists in the new LTR, <strong>in which case they should reopen the ticket</strong>.</p>
<p>If you would like to better understand the QGIS release roadmap, check out our roadmap page! It outlines the schedule for upcoming releases and will help you plan your deployment of QGIS into an operational environment.</p>
<p>The development of QGIS 3.4 LTR has been made possible by the work of hundreds of volunteers, by the investments of companies, professionals, and administrations, and by continuous donations and financial support from many of you. We sincerely thank you all and encourage you to collaborate and support the project even more, for the long term improvement and sustainability of the QGIS project.</p> QGIS Application - Bug report #15311: Issue with QgsVectorLayerUndoCommand class (QGIS crashes)https://issues.qgis.org/issues/15311?journal_id=1031952019-03-17T23:51:21Zgcarrillo -
<ul><li><strong>Resolution</strong> deleted (<del><i>end of life</i></del>)</li><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li><li><strong>Priority</strong> changed from <i>High</i> to <i>Normal</i></li><li><strong>Affected QGIS version</strong> changed from <i>2.18.4</i> to <i>3.7(master)</i></li></ul><p>Just tested this on master (v3.7) and it's still happening: QGIS crashes when closing the edit session discarding the edits.</p> QGIS Application - Bug report #15311: Issue with QgsVectorLayerUndoCommand class (QGIS crashes)https://issues.qgis.org/issues/15311?journal_id=1031962019-03-18T00:12:19Zgcarrillo -
<ul></ul><p>Steps to reproduce the issue in QGIS v3.x:</p>
<p>1. Open QGIS, load a sample vector layer (with a numeric field in the field index 0) and select it in the Layer List Widget (ToC).<br />2. Run the following code snippet into the QGIS Python Console to connect featureAdded SIGNAL to a custom SLOT that changes an attribute value:</p>
<pre>
myLayer = iface.activeLayer()
field = 0
def updateFeatureAttrs( fId ):
f = myLayer.getFeature( fId )
geom = f.geometry()
myLayer.changeAttributeValue( fId, field, geom.asPoint().x() )
myLayer.featureAdded.connect( updateFeatureAttrs )
</pre>
<p>3. Start editing. Add a new point. (If a form opens click on OK). Don't save anything.<br />4. Stop editing and choose "Close without saving." <br />5. QGIS crashes and prints this error:</p>
<p><em>src/gui/qgsmaptool.cpp:92 : (activate) [3241ms] Cursor has been set<br />src/app/qgsmaptooldigitizefeature.cpp:155 : (cadCanvasReleaseEvent) [601ms] savePoint = 269, -100<br />src/app/qgsfeatureaction.cpp:175 : (addFeature) [0ms] reuseLastValues: 0<br />src/app/qgsfeatureaction.cpp:293 : (onFeatureSaved) [1838ms] reuseLastValues: 0<br />src/gui/qgsmapcanvas.cpp:499 : (refresh) [0ms] CANVAS refresh - invalid settings -> nothing to do<br />Fatal: ASSERT: "it != mBuffer->mAddedFeatures.end()" in file /docs/dev/qgis/QGIS/src/core/qgsvectorlayerundocommand.cpp, line 234<br />QGIS died on signal -1Could not attach to process. If your uid matches the uid of the target<br />process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try<br />again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf<br />ptrace: Operation not permitted.<br />No thread selected<br />No stack.<br />gdb returned 0<br />Aborted (core dumped)<br /></em></p> QGIS Application - Bug report #15311: Issue with QgsVectorLayerUndoCommand class (QGIS crashes)https://issues.qgis.org/issues/15311?journal_id=1032522019-03-20T11:37:01ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Open</i></li></ul>