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 on getting items of mapCanvas scene if features are identified #34457

Closed
zmilucero opened this issue Feb 13, 2020 · 0 comments · Fixed by #36439
Closed

QGIS crashes on getting items of mapCanvas scene if features are identified #34457

zmilucero opened this issue Feb 13, 2020 · 0 comments · Fixed by #36439
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! PyQGIS Related to the PyQGIS API

Comments

@zmilucero
Copy link

Describe the bug

Similar to issues #32894 and #32700, QGIS now seems to crash if features have been identified using Identify Features and the identify result has not been cleared (either via right-clicking or the Clear Results button in the Identify Results panel) prior to getting items of mapCanvas scene.

How to Reproduce

  1. Load in vector dataset (tested with polygons and points)
  2. Identify any features
  3. Clear identify results
  4. Run iface.mapCanvas().scene().items() in the console; it works as expected
  5. Identify any features again
  6. Without clearing, run iface.mapCanvas().scene().items() in the console; it will hang for a few seconds and then produce a "QGIS unexpectedly ended" dialog or, in some cases, silently crash

QGIS and OS versions

QGIS version | 3.10.2-A Coruña | QGIS code revision | d4cd3cf
Compiled against Qt | 5.11.2 | Running against Qt | 5.11.2
Compiled against GDAL/OGR | 3.0.3 | Running against GDAL/OGR | 3.0.4
Compiled against GEOS | 3.8.0-CAPI-1.13.1 | Running against GEOS | 3.8.0-CAPI-1.13.1
Compiled against SQLite | 3.29.0 | Running against SQLite | 3.29.0
PostgreSQL Client Version | 11.5 | SpatiaLite Version | 4.3.0
QWT Version | 6.1.3 | QScintilla2 Version | 2.10.8
Compiled against PROJ | 6.3.0 | Running against PROJ | Rel. 6.3.0, January 1st, 2020
OS Version | Windows 10 (10.0)
Active python plugins | db_manager; MetaSearch; processing

Additional context

Reproduced on three Windows 10 computers running 3.10.2 - two installs with all plugins disabled, one with an entirely fresh profile (specs above).

@zmilucero zmilucero added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Feb 13, 2020
@gioman gioman added the PyQGIS Related to the PyQGIS API label Feb 14, 2020
@gioman gioman changed the title QGIS 3.10.2 crashes on getting items of mapCanvas scene if features are identified QGIS crashes on getting items of mapCanvas scene if features are identified Feb 14, 2020
@troopa81 troopa81 self-assigned this May 14, 2020
troopa81 added a commit to troopa81/QGIS that referenced this issue May 14, 2020
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! PyQGIS Related to the PyQGIS API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants