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

adding/editing layer feature crashes qgis master when OTF reprojection is enabled #17701

Closed
qgib opened this issue Nov 11, 2013 · 11 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Projections/Transformations Related to coordinate reference systems or coordinate transformation

Comments

@qgib
Copy link
Contributor

qgib commented Nov 11, 2013

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)
Original Redmine Issue: 9049
Affected QGIS version: master
Redmine category:projection_support
Assignee: Marco Hugentobler


Steps to reproduce:

  1. Create a new project
  2. Activate OTF reprojection, make sure the CRS is WGS 84 (EPSG:4326)
  3. Add a new vector polygon layer (memory layer will do just fine)
  4. Activate editing toggle for that layer
  5. Try to add a feature
  6. Instant boom crash

The same is true if you try to edit features (i.e. move feature and/or one node). That can't be more than a two weeks old crasher as I remember doing feature edits / additions under qgis master not so long ago. Setting priority to blocker.

@qgib
Copy link
Contributor Author

qgib commented Nov 12, 2013

Author Name: Giovanni Manghi (@gioman)


confirmed here

giovanni@sibirica ~ $ qgis
Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_US]
Warning: Could not parse stylesheet of widget 0x1cd1ba0
QGIS died on signal 11[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fca4d59e700 (LWP 7273)]
[New Thread 0x7fca4e697700 (LWP 7272)]
[New Thread 0x7fca59a8f700 (LWP 7264)]
0x00007fca818faccd in waitpid () from /lib/x86_64-linux-gnu/libc.so.6
[Current thread is 1 (Thread 0x7fca88b597c0 (LWP 7262))]
#_0  0x00007fca818faccd in waitpid () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#_1  0x00000000004efcb0 in qgisCrash(int) ()
No symbol table info available.
#2  <signal handler called>
No symbol table info available.
#_3  0x00007fca8545778b in QgsCoordinateTransform::transform(QgsPoint, QgsCoordinateTransform::TransformDirection) const () from /usr/lib/libqgis_core.so.2.1.0
No symbol table info available.
#_4  0x00007fca854eeb1e in QgsMapRenderer::mapToLayerCoordinates(QgsMapLayer*, QgsPoint) () from /usr/lib/libqgis_core.so.2.1.0
No symbol table info available.
#_5  0x00007fca84f06a72 in QgsMapTool::toLayerCoordinates(QgsMapLayer*, QgsPoint const&) () from /usr/lib/libqgis_gui.so.2.1.0
No symbol table info available.
#_6  0x00007fca84f06ac8 in QgsMapTool::toLayerCoordinates(QgsMapLayer*, QPoint const&) () from /usr/lib/libqgis_gui.so.2.1.0
No symbol table info available.
#_7  0x000000000062f5c8 in QgsMapToolCapture::nextPoint(QPoint const&, QgsPoint&, QgsPoint&) ()
No symbol table info available.
#_8  0x0000000000630568 in QgsMapToolCapture::addVertex(QPoint const&) ()
No symbol table info available.
#_9  0x000000000062aa2c in QgsMapToolAddFeature::canvasReleaseEvent(QMouseEvent*) ()
No symbol table info available.
#_10 0x00007fca84f00983 in QgsMapCanvas::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libqgis_gui.so.2.1.0
No symbol table info available.
#_11 0x00007fca838b4144 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_12 0x00007fca83c743b6 in QFrame::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_13 0x00007fca83e9eb2b in QGraphicsView::viewportEvent(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_14 0x00007fca844e1028 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_15 0x00007fca8386385f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_16 0x00007fca838690bf in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_17 0x00007fca85441aa6 in QgsApplication::notify(QObject*, QEvent*) () from /usr/lib/libqgis_core.so.2.1.0
No symbol table info available.
#_18 0x00007fca844e0e9c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_19 0x00007fca83864862 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_20 0x00007fca838e3bf5 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_21 0x00007fca838e2bae in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_22 0x00007fca8390c0d2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_23 0x00007fca8039dd13 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#_24 0x00007fca8039e060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#_25 0x00007fca8039e124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#_26 0x00007fca845103bf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_27 0x00007fca8390bd5e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#_28 0x00007fca844dfc82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_29 0x00007fca844dfed7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_30 0x00007fca844e4f67 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#_31 0x00000000004ea9a6 in main ()
No symbol table info available.
gdb returned 0
Aborted (core dumped)


  • crashes_corrupts_data was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Nov 12, 2013

Author Name: Marco Hugentobler (@mhugent)


  • assigned_to_id was configured as Marco Hugentobler

@qgib
Copy link
Contributor Author

qgib commented Nov 12, 2013

Author Name: Marco Hugentobler (@mhugent)


Hm, does not crash here. What CRS (and what datum transform) do you assign to the newly created layer?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Nov 12, 2013

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


Marco, here are my settings:

  1. Project CRS: WGS84, OTF reprojection on
  2. Newly created layer CRS: WGS84

I'm on a Linux machine, running latest master package (891fa7c) offered by the qgis.org ppa.

@qgib
Copy link
Contributor Author

qgib commented Nov 12, 2013

Author Name: Giovanni Manghi (@gioman)


Marco Hugentobler wrote:

Hm, does not crash here. What CRS (and what datum transform) do you assign to the newly created layer?

In the same environment as Mathieu I can replicate it all the time with the described steps (adding/editing a memory layer)

@qgib
Copy link
Contributor Author

qgib commented Nov 13, 2013

Author Name: Marco Hugentobler (@mhugent)


I tried exactly those steps and cannot replicate here (todays master). Any special options that need to be set?

@qgib
Copy link
Contributor Author

qgib commented Nov 14, 2013

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


Marco, are you running QGIS on windows or linux?

@qgib
Copy link
Contributor Author

qgib commented Nov 14, 2013

Author Name: Giovanni Manghi (@gioman)


Hi Mathieu,
this can be a plugin issue after all. I disabled all plugin but the "new memory layer" one and the crash is gone.

Please test.

@qgib
Copy link
Contributor Author

qgib commented Nov 15, 2013

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


Giovanni, disabling all plugins doesn't bring me much luck over here, still crashing.

@qgib
Copy link
Contributor Author

qgib commented Nov 15, 2013

Author Name: Giovanni Manghi (@gioman)


this is weird, now I cannot replicate the issue anymore.

@qgib
Copy link
Contributor Author

qgib commented Nov 15, 2013

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


The debian-nightly ppa had an update to its qgis master build with which I can't reproduce crash anymore. Looking into recent commits, I think Jurgen fixed this issue in commit 86b6c5b (https://issues.qgis.org/projects/quantum-gis/repository/revisions/86b6c5bbdfe75c293e2b0b86c9d1ce2f484b7a9e).

Closing.


  • resolution was changed from to fixed/implemented
  • status_id was changed from Feedback to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Projections/Transformations Related to coordinate reference systems or coordinate transformation Crash/Data Corruption labels May 24, 2019
@qgib qgib added this to the Future Release - High Priority 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 Projections/Transformations Related to coordinate reference systems or coordinate transformation
Projects
None yet
Development

No branches or pull requests

1 participant