Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Merge selected features" leads to data loss and crash (in master) #16027

Closed
qgib opened this issue Dec 20, 2012 · 5 comments
Closed

"Merge selected features" leads to data loss and crash (in master) #16027

qgib opened this issue Dec 20, 2012 · 5 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Vectors Related to general vector layer handling (not specific data formats)
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Dec 20, 2012

Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 6902
Affected QGIS version: master
Redmine category:vectors


Pick a vector layer,

select two features and try the "merge selected features" tool.

QGIS will ask you column by column if you want to keep the attribute of the first feature or if the one of the second feature.

If the column is of a numeric type, then a few more options are available, as sum, min, max, etc.

It seems anyway that this functions to always return a decimal number, and if the column is of type integer then the computed values is LOST (it becomes 0) when the edits are saved. This happens in QGIS 1.8.

In master is the same, but actually after merging the feature if the user try open the table of attributes QGIS will crash.

tested on Windows for now, will do also on linux.



Related issue(s): #16585 (relates)
Redmine related issue(s): 7668


@qgib
Copy link
Contributor Author

qgib commented Dec 20, 2012

Author Name: Giovanni Manghi (@gioman)


Oh boy... today it doesn't seems I'm able to replicate the crash, but the only the data loss. I will try to recover the original layer used in the first test.

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2013

Author Name: Giovanni Manghi (@gioman)


see also #16109

@qgib
Copy link
Contributor Author

qgib commented May 9, 2013

Author Name: Marco Francesco De Paolini (Marco Francesco De Paolini)


May be related: sometimes when selecting two features with identical fields values and try the "merge selected features", it appears to select different random features in the Merge feature attributes window. Not sure how to replicate this issue.


  • 5663 was configured as Screen_Shot_2013-05-09_at_10.25.22.png

@qgib
Copy link
Contributor Author

qgib commented Jun 1, 2013

Author Name: Giovanni Manghi (@gioman)


The result (after saving edits) is always wrong in an integer column (it becomes 0) when using any function (median, sum, min, max). In a decimal column the decimal part is removed is using "median".

Anyway it causes data corruption.

@qgib
Copy link
Contributor Author

qgib commented Jun 19, 2013

Author Name: Matthias Kuhn (@m-kuhn)


Fixed in changeset "7d38eac04352bbfe7800782e462380f9525fe6cb".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats) Crash/Data Corruption labels May 24, 2019
@qgib qgib added this to the Version 2.0.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Vectors Related to general vector layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant