MIERUNE / qgis-plugx-plugin

QGIS to Illustrator with PlugX
GNU General Public License v2.0
3 stars 0 forks source link

crash when qgis project loaded #55

Closed Kanahiro closed 1 year ago

Kanahiro commented 1 year ago

how to reproduce

  1. open plugin window
  2. open qgs project
  3. crash qgis
Kanahiro commented 1 year ago

https://github.com/MIERUNE/qgis-plugin-for-plugx/blob/main/ui/main_dialog.py#L53 code aroud there cause this issue.

Kanahiro commented 1 year ago

Project load process

  1. clear current project
  2. load layers in a project
  3. signal readProject emitted

2 causes too many layerOrderChanged signals and process_node() and so QGIS crashes.

To avoid this:

  1. fix to disable process_node() when dialog is invisible
  2. catch QgsProject.cleared signal and close a dialog when catch it.