https://issues.qgis.org/https://issues.qgis.org/favicon.ico2013-04-08T12:07:06ZQGIS Issue TrackingQGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=399422013-04-08T12:07:06ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>it is a regression since 1.8? I'm not able to replicate the issue here, but maybe I'm doing it wrong.</p> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=399442013-04-08T13:58:24ZOlivier Dalangolivier.dalang@gmail.com
<ul></ul><p>Yes it's a regression, the problem does not show up in 1.8...</p>
<p>Here (Windows 7) it seems to happen every time when following those steps.</p>
<p>If confirmed, this should be a blocker, since it leads to data corruption.</p> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=399452013-04-08T13:59:15ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Priority</strong> changed from <i>Normal</i> to <i>Severe/Regression</i></li></ul> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=404112013-04-22T04:45:13ZRadim Blazekradim.blazek@gmail.com
<ul></ul><blockquote>
<p>9) reload the project and see !!</p>
</blockquote>
<p>What does it mean "reload the project"? Reopen project file or refresh display?</p> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=404212013-04-22T05:37:52ZOlivier Dalangolivier.dalang@gmail.com
<ul></ul>Actually, when you refresh display only :
<ul>
<li>on the layer that was not edited, you see that the two merged parts have disappeared</li>
<li>on the layer that was edited, you see the two merged parts plus the result of the merge</li>
</ul>
<p>But actually, I'm just discovering that the shapefile seems in a deeper mess, even after reloading : if you create a new polygon, no matter what shape, it will take the shape of the result of the merge.</p>
<p>Here's a screencast of the procedure :<br /><a class="external" href="https://www.dropbox.com/s/84nj515s6mfu09f/mergeBug2.avi?m">https://www.dropbox.com/s/84nj515s6mfu09f/mergeBug2.avi?m</a></p> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=415692013-06-01T23:47:58ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Open</i></li></ul> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=424082013-06-27T23:10:28ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Category</strong> set to <i>Digitising</i></li></ul> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=425532013-07-01T13:53:31ZSalvatore Larosalrssvtml@gmail.com
<ul></ul><p>is it still true ?</p>
<p>following the above steps I did not get any crash !<br />tested with a polygon layer and I do not see unusual behavior.</p> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=425682013-07-02T02:01:25ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><blockquote>
<p>following the above steps I did not get any crash !<br />tested with a polygon layer and I do not see unusual behavior.</p>
</blockquote>
<p>I don't think it causes crash, it causes data corruption.</p> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=426942013-07-08T07:43:05ZJürgen Fischerjef@norbit.de
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>Giovanni Manghi wrote:</p>
<blockquote>
<p>I don't think it causes crash, it causes data corruption.</p>
</blockquote>
<p>So you can reproduce the problem? Just checking, if I should try harder...</p> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=427262013-07-08T22:40:23ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><blockquote>
<p>So you can reproduce the problem? Just checking, if I should try harder...</p>
</blockquote>
<p>no I can't.</p>
<p>Olivier still true for you?</p> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=427312013-07-08T23:26:07ZOlivier Dalangolivier.dalang@gmail.com
<ul></ul><p>Hi !</p>
<p>The behavior changed a little bit but I still get data corruption (with master from yesterday, under Windows 7).<br />It's no more necessary to reload the project to see the data loss.</p>
<p>Here's a screencast : <a class="external" href="https://www.dropbox.com/s/g70fkaus6j40vll/mergeBug4.avi">https://www.dropbox.com/s/g70fkaus6j40vll/mergeBug4.avi</a></p> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=427392013-07-09T00:51:50ZJürgen Fischerjef@norbit.de
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Open</i></li></ul><p>ok, I can reproduce it now. I suspect it's a file locking issue in OGR (might be tied to windows). Looking into GDAL now...</p> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=427432013-07-09T01:30:27ZJürgen Fischerjef@norbit.de
<ul><li><strong>Assignee</strong> set to <i>Jürgen Fischer</i></li></ul> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=427642013-07-09T05:25:52ZJürgen Fischerjef@norbit.de
<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/78b04df91a1b85ee70ff5b326980f480b3069d47" title="ogr provider: reopen the data source if a REPACK failed (fixes #7540)">78b04df91a1b85ee70ff5b326980f480b3069d47</a>.</p> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=427652013-07-09T05:28:50ZJürgen Fischerjef@norbit.de
<ul></ul><p>Jürgen Fischer wrote:</p>
<blockquote>
<p>Fixed in changeset <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/78b04df91a1b85ee70ff5b326980f480b3069d47" title="ogr provider: reopen the data source if a REPACK failed (fixes #7540)">78b04df91a1b85ee70ff5b326980f480b3069d47</a>.</p>
</blockquote>
<p>It was caused by locking. QGIS does a REPACK after deleting and that silently fails with current OGR. <a href="https://github.com/OSGeo/gdal/pull/17" class="external">GDAL pull request #17</a> should fix this by adding an error message. reopening the original DBF if it can't be removed and cleaning up the <code>*_packed.dbf</code>.</p>
<p>Nevertheless QGIS now checks if there still is a <code>*_packed.dbf</code> to detect that the REPACK failed and reopens the dataset in that case.</p> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=559812014-10-04T11:48:08ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li><li><strong>Target version</strong> changed from <i>Version 2.0.0</i> to <i>Version 2.6</i></li></ul><p>Sorry to reopen this, seems master still affected. See also <a class="issue tracker-1 status-5 priority-4 priority- closed" href="https://issues.qgis.org/issues/11082" title="Merge tool bug when a shapefile is loaded multiple times (Closed)">#11082</a></p> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=565882014-10-21T00:47:34ZJürgen Fischerjef@norbit.de
<ul><li><strong>Assignee</strong> deleted (<del><i>Jürgen Fischer</i></del>)</li></ul> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=567062014-10-24T07:11:39ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>it is pretty easy to replicate this issue, it is just needed to "insist" a bit. Here two screencast, that as some point show that after removing a shape and re-adding it features are lost!</p>
<p>The second show also a possible bug in the "split features" tool.</p>
<p><a class="external" href="https://www.dropbox.com/s/rpjcn8gpn75r31m/t7540_1.mp4?dl=0">https://www.dropbox.com/s/rpjcn8gpn75r31m/t7540_1.mp4?dl=0</a></p>
<p><a class="external" href="https://www.dropbox.com/s/9n9a7j1puugwpnr/t7540_2.mp4?dl=0">https://www.dropbox.com/s/9n9a7j1puugwpnr/t7540_2.mp4?dl=0</a></p> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=567072014-10-24T07:16:38ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Giovanni Manghi wrote:</p>
<blockquote>
<p>Sorry to reopen this, seems master still affected. See also <a class="issue tracker-1 status-5 priority-4 priority- closed" href="https://issues.qgis.org/issues/11082" title="Merge tool bug when a shapefile is loaded multiple times (Closed)">#11082</a></p>
</blockquote>
<p>after all it does not seems related... I have a VM with qgis running against gdal/ogr trunk and I can still see the issue described in this ticket.</p> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=569592014-10-30T06:13:55ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Feedback</i></li></ul><p>it seems this could have been solved by this <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/4cf08c5c112278ab4f50cf21b735a4a58d6a98aa" title="Avoid unneeded geometry cloning in QgsGeometry::nodeGeometries Affects splitGeometry and reshape...">4cf08c5c112278ab4f50cf21b735a4a58d6a98aa</a></p> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=570252014-10-31T04:55:20ZJürgen Fischerjef@norbit.de
<ul><li><strong>Target version</strong> changed from <i>Version 2.6</i> to <i>Future Release - High Priority</i></li></ul> QGIS Application - Bug report #7540: Merge tool bug when a shapefile is loaded multiple timeshttps://issues.qgis.org/issues/7540?journal_id=570962014-11-03T13:51:06ZGiovanni 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>fixed/implemented</i></li></ul><p>after <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/4cf08c5c112278ab4f50cf21b735a4a58d6a98aa" title="Avoid unneeded geometry cloning in QgsGeometry::nodeGeometries Affects splitGeometry and reshape...">4cf08c5c112278ab4f50cf21b735a4a58d6a98aa</a> I really cannot make to replicate this issue. That commit solves also partially <a class="issue tracker-1 status-5 priority-10 priority- closed" href="https://issues.qgis.org/issues/11007" title="Deleted/edited features within SHAPEFILE are still recognized in other software packages (Closed)">#11007</a> (but only for the case of edited features, still there is an issue with deleted ones).</p>
<p>Please reopen if necessary.</p>