Bug report #10516
crash when zoom to (raster) layer
Status: | Closed | ||
---|---|---|---|
Priority: | Severe/Regression | ||
Assignee: | - | ||
Category: | Rasters | ||
Affected QGIS version: | 2.2.0 | Regression?: | No |
Operating System: | linux | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 18926 |
Description
1) open empty project
2) add a new raster layer
3) see that extents are not updated to raster extents (another bug)
4) click on zoom to layer in raster's context menu in TOC
5) crash
what is bizarre is that the crash is in QgsVectorLayer::geometryType even though there are no vector layers loaded
src/core/raster/qgsrasteriterator.cpp: 56: (readNextRasterPart) Entered src/core/raster/qgsrasterlayer.cpp: 304: (draw) total raster draw time (ms): 2 Program received signal SIGSEGV, Segmentation fault. 0x00007ffff41034a1 in QgsVectorLayer::geometryType (this=0x0) at /data/src/qgis/qgis-etiennesky/src/core/qgsvectorlayer.cpp:601 601 if ( mDataProvider ) (gdb) bt #0 0x00007ffff41034a1 in QgsVectorLayer::geometryType (this=0x0) at /data/src/qgis/qgis-etiennesky/src/core/qgsvectorlayer.cpp:601 #1 0x00007ffff376b3a8 in QgsLayerTreeViewDefaultActions::zoomToLayers (this=0x2fba250, canvas=0x12665f0, layers=...) at /data/src/qgis/qgis-etiennesky/src/gui/layertree/qgslayertreeviewdefaultactions.cpp:203 #2 0x00007ffff376afb6 in QgsLayerTreeViewDefaultActions::zoomToLayer (this=0x2fba250, canvas=0x12665f0) at /data/src/qgis/qgis-etiennesky/src/gui/layertree/qgslayertreeviewdefaultactions.cpp:165 #3 0x00007ffff376b23f in QgsLayerTreeViewDefaultActions::zoomToLayer (this=0x2fba250) at /data/src/qgis/qgis-etiennesky/src/gui/layertree/qgslayertreeviewdefaultactions.cpp:181 #4 0x00007ffff3871748 in QgsLayerTreeViewDefaultActions::qt_static_metacall (_o=0x2fba250, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7fffffffabb0) at /data/src/qgis/qgis-etiennesky/build-debug/src/gui/layertree/moc_qgslayertreeviewdefaultactions.cxx:66 #5 0x00007ffff2bfe87a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #6 0x00007ffff1f7da62 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #7 0x00007ffff1f7f433 in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #8 0x00007ffff23ad489 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #9 0x00007ffff23b19b9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #10 0x00007ffff1fd350a in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #11 0x00007ffff23b57bb in QMenu::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #12 0x00007ffff1f83e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #13 0x00007ffff1f8a5dd in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #14 0x00007ffff3f6e511 in QgsApplication::notify (this=0x7fffffffd040, receiver=0x2e9b4e0, event=0x7fffffffb240) at /data/src/qgis/qgis-etiennesky/src/core/qgsapplication.cpp:243 #15 0x00007ffff2bea4dd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #16 0x00007ffff1f89d93 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #17 0x00007ffff1ffecfc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #18 0x00007ffff1ffe269 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #19 0x00007ffff2025b02 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #20 0x00007fffedd99e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #21 0x00007fffedd9a048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #22 0x00007fffedd9a0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #23 0x00007ffff2c177a1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #24 0x00007ffff2025bb6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #25 0x00007ffff2be90af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #26 0x00007ffff2be93a5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #27 0x00007ffff23b4587 in QMenu::exec(QPoint const&, QAction*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #28 0x00007ffff3768d6c in QgsLayerTreeView::contextMenuEvent (this=0x1282770, event=0x7fffffffc0f0) at /data/src/qgis/qgis-etiennesky/src/gui/layertree/qgslayertreeview.cpp:115 #29 0x00007ffff1fd37d2 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #30 0x00007ffff2374fce in QFrame::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #31 0x00007ffff24845b3 in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #32 0x00007ffff24c3190 in QTreeView::viewportEvent(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #33 0x00007ffff2bea646 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #34 0x00007ffff1f83e0c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #35 0x00007ffff1f8b1f8 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #36 0x00007ffff3f6e511 in QgsApplication::notify (this=0x7fffffffd040, receiver=0x134c7a0, event=0x7fffffffc0f0) at /data/src/qgis/qgis-etiennesky/src/core/qgsapplication.cpp:243 #37 0x00007ffff2bea4dd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #38 0x00007ffff1ffea20 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #39 0x00007ffff1ffe269 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #40 0x00007ffff2025b02 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #41 0x00007fffedd99e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #42 0x00007fffedd9a048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #43 0x00007fffedd9a0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #44 0x00007ffff2c177a1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #45 0x00007ffff2025bb6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #46 0x00007ffff2be90af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #47 0x00007ffff2be93a5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #48 0x00007ffff2beeb79 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #49 0x000000000055a54d in main (argc=1, argv=0x7fffffffd358) at /data/src/qgis/qgis-etiennesky/src/app/main.cpp:1017
Associated revisions
fix zoom to layer extent crash (fixes #10516)
History
#1 Updated by Etienne Tourigny over 10 years ago
- Operating System set to linux
- Target version set to Version 2.4
#2 Updated by Jürgen Fischer over 10 years ago
- Status changed from Open to Closed
Fixed in changeset 2e2853a1f6e4eafe8920c47b9569cec9a0bc2978.