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

100% reproducible crash when try to move a newly created (point) feature node #16814

Closed
qgib opened this issue May 30, 2013 · 8 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption

Comments

@qgib
Copy link
Contributor

qgib commented May 30, 2013

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)
Original Redmine Issue: 7950
Affected QGIS version: master

Assignee: Marco Hugentobler


That regressed recently. Steps to reproduce:
/!\ important: you need to check the "[x] Show markers only for selected features" option in the digitizing section of QGIS' options window /!\

  1. Create a new project
  2. Insert a new memory points layer (creating new points shapefile also does it, but you can skip the file creation via memory layer)
  3. Switch the layer's edit mode on
  4. Input two random points on the canvas
  5. Switch the layer's edit mode off to save the added points
  6. Switch the layer's edit mode back on
  7. Try to move one of the two points with the node tool

Over here, on my windows 7 machine, the steps above always lead to QGIS crashing and throwing a minidump.

@qgib
Copy link
Contributor Author

qgib commented May 30, 2013

Author Name: Giovanni Manghi (@gioman)


  • crashes_corrupts_data was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented May 31, 2013

Author Name: Sandro Santilli (@strk)


Can't reproduce this on GNU/Linux 64bit as of 4f46379

@qgib
Copy link
Contributor Author

qgib commented May 31, 2013

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)


So much for a 100% reproducible crasher! ;)

So I've just tried on my linux machine and indeed, linux is crash-free when it comes to this. Will go back to windows and see whether crash occurs on clean profile (i.e. new ~/qgis2)

@qgib
Copy link
Contributor Author

qgib commented Jun 2, 2013

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)


Ahh, got it. My windows machine had a not default setting switched on, namely the "[x] Show markers only for selected features" option in the Options' digitizing section. If I switch this off, the crash doesn't occur. If it's switched on, it'll crash on my windows and linux machine. I've updated the above steps to reproduce to mention this.

This option is often given to people reporting slow panning while editing.

@qgib
Copy link
Contributor Author

qgib commented Jun 3, 2013

Author Name: Sandro Santilli (@strk)


Confirmed!
My stack trace isn't that good (no line-level debugging symbols) anyway here it is:

Debug: src/app/nodetool/qgsselectedfeature.cpp: 73: (updateGeometry) Entering.
Fatal: QGIS died on signal 11
Stacktrace (run through c++filt):
output/bin/qgis(_Z15myMessageOutput9QtMsgTypePKc+0x223)[0x549115]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x2e)[0x7f3a9a9d141e]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x718bf)[0x7f3a9a9d18bf]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z6qFatalPKcz+0x94)[0x7f3a9a9d1a64]
output/bin/qgis(_Z9qgisCrashi+0x1f)[0x548ef0]
/lib/x86_64-linux-gnu/libc.so.6(+0x364a0)[0x7f3a984c14a0]
/usr/src/qgis/Quantum-GIS/b/output/lib/libqgis_core.so.1.9.0(_ZN11QgsGeometryC2ERKS_+0x1f)[0x7f3a9bcbdc17]
output/bin/qgis(_ZN18QgsSelectedFeature14updateGeometryEP11QgsGeometry+0x114)[0x6e1e88]
output/bin/qgis(_ZN18QgsSelectedFeature15createVertexMapEv+0x84)[0x6e4a12]
output/bin/qgis(_ZN18QgsSelectedFeature16replaceVertexMapEv+0x24)[0x6e379c]
output/bin/qgis(_ZN18QgsSelectedFeature18setSelectedFeatureExP14QgsVectorLayerP12QgsMapCanvas+0x215)[0x6e21cd]
output/bin/qgis(_ZN18QgsSelectedFeatureC1ExP14QgsVectorLayerP12QgsMapCanvas+0xe0)[0x6e1a74]
output/bin/qgis(_ZN18QgsMapToolNodeTool16canvasPressEventEP11QMouseEvent+0x17d)[0x6de77b]
/usr/src/qgis/Quantum-GIS/b/output/lib/libqgis_gui.so.1.9.0(_ZN12QgsMapCanvas15mousePressEventEP11QMouseEvent+0xab)[0x7f3a9b5be7d7]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x969)[0x7f3a99eae429]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN6QFrame5eventEP6QEvent+0x26)[0x7f3a9a26e3b6]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN13QGraphicsView13viewportEventEP6QEvent+0x7b)[0x7f3a9a498b2b]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent+0x88)[0x7f3a9aadb028]

@qgib
Copy link
Contributor Author

qgib commented Jun 3, 2013

Author Name: Marco Hugentobler (@mhugent)


I think this bug is related to my recent commit 4c02d7f. But I think the mentioned commit is ok, it just reveals a problem that has been there (bug was not causing a crash until now). I'm investigating...


  • assigned_to_id was configured as Marco Hugentobler

@qgib
Copy link
Contributor Author

qgib commented Jun 5, 2013

Author Name: Marco Hugentobler (@mhugent)


Should be fixed with 6bbc149. Please test and reopen in case the problem persists.


  • status_id was changed from Open to Resolved

@qgib
Copy link
Contributor Author

qgib commented Jun 10, 2013

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)


Thanks Marco.


  • resolution was changed from to fixed
  • status_id was changed from Resolved to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption labels 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
Projects
None yet
Development

No branches or pull requests

1 participant