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

QGIS Crashes when removing a layer #13969

Closed
qgib opened this issue Jun 10, 2011 · 4 comments
Closed

QGIS Crashes when removing a layer #13969

qgib opened this issue Jun 10, 2011 · 4 comments
Labels
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)
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Jun 10, 2011

Author Name: Tim Sutton (Tim Sutton)
Original Redmine Issue: 3970
Affected QGIS version: master
Redmine category:vectors


When removing a layer, QGIS sometimes crashes. I get the following backtrace. The layers in question were all vector layers.

#_0  0x00007ffff2a2d5b8 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#_1  0x00007ffff70d66fa in QgsVectorLayer::nextFeature (this=0x4fc3d20, f=...)
    at /home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsvectorlayer.cpp:1795
#_2  0x00007ffff70d0bf6 in QgsVectorLayer::drawRendererV2 (this=0x4fc3d20, rendererContext=..., labeling=false)
    at /home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsvectorlayer.cpp:731
#_3  0x00007ffff70d2286 in QgsVectorLayer::draw (this=0x4fc3d20, rendererContext=...)
    at /home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsvectorlayer.cpp:987
#_4  0x00007ffff70723e2 in QgsMapRenderer::render (this=0x7ffffffed2e0, painter=0x7ffffffed5e0)
    at /home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsmaprenderer.cpp:492
#_5  0x00007ffff7112350 in QgsComposerMap::draw (this=0x6999f90, painter=0x7ffffffed5e0, extent=..., size=..., dpi=96)
    at /home/timlinux/dev/cpp/Quantum-GIS/src/core/composer/qgscomposermap.cpp:177
#_6  0x00007ffff71127dc in QgsComposerMap::cache (this=0x6999f90) at /home/timlinux/dev/cpp/Quantum-GIS/src/core/composer/qgscomposermap.cpp:229
#_7  0x00007ffff71135f1 in QgsComposerMap::updateCachedImage (this=0x6999f90)
    at /home/timlinux/dev/cpp/Quantum-GIS/src/core/composer/qgscomposermap.cpp:362
#_8  0x00007ffff742bf8f in QgsComposerMap::qt_metacall (this=0x6999f90, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7ffffffed760)
    at /home/timlinux/dev/cpp/Quantum-GIS/build-release/src/core/composer/moc_qgscomposermap.cxx:78
#_9  0x00007ffff5fb75f8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#_10 0x00007ffff742952b in QgsMapLayerRegistry::layerWillBeRemoved (this=0xe6f6a0, _t1=...)
    at /home/timlinux/dev/cpp/Quantum-GIS/build-release/src/core/moc_qgsmaplayerregistry.cxx:90
#_11 0x00007ffff706e9b0 in QgsMapLayerRegistry::removeMapLayer (this=0xe6f6a0, theLayerId=..., theEmitSignal=true)
    at /home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsmaplayerregistry.cpp:97
#_12 0x000000000078441d in QgsLegend::removeSelectedLayers (this=0xf0a7c0) at /home/timlinux/dev/cpp/Quantum-GIS/src/app/legend/qgslegend.cpp:2003
#_13 0x000000000055eae8 in QgisApp::removeLayer (this=0xd403c0) at /home/timlinux/dev/cpp/Quantum-GIS/src/app/qgisapp.cpp:4539
#_14 0x00000000007fc3ed in QgisApp::qt_metacall (this=0xd403c0, _c=QMetaObject::InvokeMetaMethod, _id=45, _a=0x7ffffffedb00)
    at /home/timlinux/dev/cpp/Quantum-GIS/build-release/src/app/moc_qgisapp.cxx:407
#_15 0x00007ffff5fb75f8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#_16 0x00007ffff535d112 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#_17 0x00007ffff535d2ff in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#_18 0x00007ffff535d46f in QAction::event(QEvent*) () from /usr/lib/libQtGui.so.4
#_19 0x00007ffff53639e4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#_20 0x00007ffff53683aa in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#_21 0x00007ffff701869b in QgsApplication::notify (this=0x7fffffffdd10, receiver=0xdaa240, event=0x7ffffffee120)
    at /home/timlinux/dev/cpp/Quantum-GIS/src/core/qgsapplication.cpp:118
#_22 0x00007ffff5fa249c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#_23 0x00007ffff5395be0 in ?? () from /usr/lib/libQtGui.so.4


@qgib
Copy link
Contributor Author

qgib commented Nov 12, 2011

Author Name: Tim Sutton (Tim Sutton)


  • fixed_version_id was changed from Version 1.7.1 to Version 1.7.2

@qgib
Copy link
Contributor Author

qgib commented Nov 30, 2011

Author Name: Giovanni Manghi (@gioman)


  • fixed_version_id was changed from Version 1.7.2 to Version 1.7.3

@qgib
Copy link
Contributor Author

qgib commented Dec 16, 2011

Author Name: Giovanni Manghi (@gioman)


  • fixed_version_id was changed from Version 1.7.3 to Version 1.7.4

@qgib
Copy link
Contributor Author

qgib commented Dec 23, 2011

Author Name: Giovanni Manghi (@gioman)


duplicate of #13587


  • resolution was changed from to duplicate
  • crashes_corrupts_data was configured as 0
  • status_id was changed from Open to Closed
  • version was configured as master
  • pull_request_patch_supplied was configured as 0

@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) labels May 24, 2019
@qgib qgib added this to the Version 1.7.4 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! Vectors Related to general vector layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant