Bug report #12498
Python console crash QGIS if undocked while autocompletion active
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||no timely feedback|
|Crashes QGIS or corrupts data:||Yes||Copied to github as #:||20644|
- open python console
- start writing a line so that the auto completion menu opens
- without choosing any entry undock the python console (the auto completion menu is still open)
- left click into the console leads QGIS to crash.
#2 Updated by Matthias Kuhn over 4 years ago
Does not seem to be an easy fix.
I think it boils down to this upstream bug report:
Removing `Qt::WA_StaticContents` should resolve the crash, but as far as I can see, this flag is set internally by QScintilla we don't actually use it a lot in QGIS.
The upstream report mentions that "the crash is no longer reproducible" without more details, so we can only assume that it has been resolve in Qt in some release of the 5-series...