Bug report #16439
QGIS crashes on startup when plugin manager last closed viewing the settings tab
|Assignee:||Mathieu Pellerin - nIRV|
|Affected QGIS version:||2.18.5||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||Yes||Copied to github as #:||24348|
QGIS will crash on startup when a user last closed his/her plugin manager viewing the settings tab.
The long story short here is that due to the plugin manager's not having the same amount of optionStacks and optionList items, the settings stack index is 1, while the optionList index is 3; QgsOptionDiloagBase saving/restoring sets both the optionList and optionStack index to the latter. In the context of the plugin manager, this leads to the dialog trying to update its window title upon creation using mModelProxy's mModelPlugins which isn't initialized and crashes QGIS.
The only way to fix this is either via editing QGIS2.conf/QGIS3.conf and manually changing the PluginManager\\tab value back to 0, or delete the whole file. I imagine this must have silently affected a number of users who couldn't dissect crash properly.
Fix coming in soon.