Bug report #12050

Occasional crash on launch

Added by Nyall Dawson about 9 years ago. Updated about 9 years ago.

Assignee:Martin Dobias
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:20252


I'm seeing an occasional crash on launch with current master. I've been unable to reliably reproduce it, but the console will output

src/gui/qgsmapcanvas.cpp: 846: (setExtent) [0ms] Empty extent - keeping old scale with new center!

hundreds of times before the crash occurs. I suspect this is probably related to the rotation refactoring changes to map canvas.

Associated revisions

Revision ffd7f8a8
Added by Martin Dobias about 9 years ago

Fix #12050 - possible crash on launch

Do not allow infinite recursion setExtent() -> setCenter() -> setExtent()


#1 Updated by Martin Dobias about 9 years ago

  • Assignee set to Martin Dobias

Couldn't reproduce a crash on start, but this Python code will lead to the same crash:

from qgis.gui import QgsMapCanvas

#2 Updated by Martin Dobias about 9 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF