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

QGIS3 crashes when getting canvas scene items #28491

Closed
qgib opened this issue Nov 29, 2018 · 4 comments
Closed

QGIS3 crashes when getting canvas scene items #28491

qgib opened this issue Nov 29, 2018 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption High Priority PyQGIS Related to the PyQGIS API

Comments

@qgib
Copy link
Contributor

qgib commented Nov 29, 2018

Author Name: Anja Sen (Anja Sen)
Original Redmine Issue: 20671
Affected QGIS version: 3.4.1
Redmine category:python_bindings_/_sipify


My QGIS3 crashes whenever I execute the following code in Python-Console:

iface.mapCanvas().scene().items()

I have tried in QGIS3.2 and also QGIS 3.4. I work on Windows, and this issue started this week, before that it was working fine. I have tried to re-install QGIS with no success.. Any idea what it could be?

The crash report is the following:

Crash ID: b0e4dda0218358488ab39b2e18dde2d36f43cfa2
Stack Trace
QObject::connect :
PyInit_QtCore :
PyObject_FastCallKeywords :
PyObject_Call :
PyInit_sip :
PyMethodDef_RawFastCallKeywords :
PyMethodDef_RawFastCallKeywords :
PyEval_EvalFrameDefault :
PyEval_EvalCodeWithName :
PyImport_Import :
PyImport_Import :
PyMethodDef_RawFastCallKeywords :
PyMethodDef_RawFastCallKeywords :
PyEval_EvalFrameDefault :
PyMethodDef_RawFastCallKeywords :
PyEval_EvalFrameDefault :
PyEval_EvalCodeWithName :
PyMethodDef_RawFastCallKeywords :
PyEval_EvalFrameDefault :
PyEval_EvalCodeWithName :
PyMethodDef_RawFastCallKeywords :
PyEval_EvalFrameDefault :
PyMethodDef_RawFastCallKeywords :
PyEval_EvalFrameDefault :
PyMethodDef_RawFastCallKeywords :
PyEval_EvalFrameDefault :
PyFunction_FastCallDict :
PyMethodDef_RawFastCallDict :
PyObject_Call :
PyInit_sip :
PyInit_Qsci :
QWidget::event :
QFrame::event :
QAbstractScrollArea::event :
PyInit_Qsci :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processKeyEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
TranslateMessageEx :
TranslateMessage :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.4.1-Madeira
QGIS code revision: 383851c
Compiled against Qt: 5.11.2
Running against Qt: 5.11.2
Compiled against GDAL: 2.3.2
Running against GDAL: 2.3.2

System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 6.1.7601

@qgib
Copy link
Contributor Author

qgib commented Nov 29, 2018

Author Name: Giovanni Manghi (@gioman)


  • priority_id was changed from Normal to High
  • category_id was changed from PyQGIS Console to Python bindings / sipify

@qgib
Copy link
Contributor Author

qgib commented Nov 29, 2018

Author Name: Nyall Dawson (@nyalldawson)


Works ok here. Have you tried with a clean profile and no plugins?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Nov 30, 2018

Author Name: Anja Sen (Anja Sen)


Nyall Dawson wrote:

Works ok here. Have you tried with a clean profile and no plugins?

Hi Nyall,

with a clean profile it works fine! Do you know what the issue could be with my previous profile?

Anja

@qgib
Copy link
Contributor Author

qgib commented Nov 30, 2018

Author Name: Giovanni Manghi (@gioman)


with a clean profile it works fine! Do you know what the issue could be with my previous profile?

could be a bad 3rd party plugin or a legacy setting/config in the profile folder.


  • resolution was changed from to invalid
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Nov 30, 2018
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority PyQGIS Related to the PyQGIS API Crash/Data Corruption labels May 25, 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 High Priority PyQGIS Related to the PyQGIS API
Projects
None yet
Development

No branches or pull requests

1 participant