qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.35k stars 2.98k forks source link

QGIS crashes on startup when plugin manager last closed viewing the settings tab #24348

Closed qgib closed 5 years ago

qgib commented 7 years ago

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV) Original Redmine Issue: 16439 Affected QGIS version: 2.18.5 Redmine category:plugin_manager Assignee: Mathieu Pellerin - nIRV


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.

qgib commented 7 years ago

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)


Fixed in changeset "40dac8f00d3542b55f2b03cfdb680c0dccc9fa3b".