Bug report #7653
QGIS Crashes when Docking/Undocking Python Console
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||OS X||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||16573|
QGIS (d4d26257b77) crashes when docking/undocking Python Console on OS X. Same behavior was not observed on Linux.
#4 Updated by Larry Shaffer over 8 years ago
Confirmed here, too. Mac 10.7.5, latest master build.
I get a
EXC_BAD_ACCESS crash, but with limited crash report info. Just a bunch (511) of these lines:
0 QtGui 0x000000010d1e72b2 -[QCocoaWindow drawRectSpecial:] + 50 1 QtGui 0x000000010d1e72de -[QCocoaWindow drawRectSpecial:] + 94 2 QtGui 0x000000010d1e72de -[QCocoaWindow drawRectSpecial:] + 94 ... 511 QtGui 0x000000010d1e72de -[QCocoaWindow drawRectSpecial:] + 94
My guess at this point is that the ownership of the editor is in question, and that undocking/docking the console's doc changes parental ownership (on Mac, at least) and the editor isn't an appropriate descendant child when that happens. Dunno, just a guess.
#5 Updated by Salvatore Larosa over 8 years ago
Hi Gary and Larry,
I just saw this bug  and appears to be related to this issue.
The problem seems to be in QTabWidget.documentMode, if changed to False the crash should not occur.
so, please could you try commenting out line 609  or set it to False
and let me know if it solves ?