Problem
On first installation, TrailScan installs its Python dependencies (rasterio, laspy, scipy, onnxruntime, ...) at runtime via pip. This installation currently runs on the QGIS main (UI) thread, so QGIS becomes unresponsive for several minutes. Users have reported having to kill the QGIS process.
See #21 and the comment by @boronian there (tested on two Windows 11 machines, QGIS 3.44).
Current mitigation
#21 adds a warning to the plugin description advising users to save their work before installing. That is only a stopgap.
Proposed fix
Run the dependency installation off the UI thread (e.g. in a QgsTask or a QThread worker) so QGIS stays responsive and the installer dialog can show real progress.
Problem
On first installation, TrailScan installs its Python dependencies (rasterio, laspy, scipy, onnxruntime, ...) at runtime via pip. This installation currently runs on the QGIS main (UI) thread, so QGIS becomes unresponsive for several minutes. Users have reported having to kill the QGIS process.
See #21 and the comment by @boronian there (tested on two Windows 11 machines, QGIS 3.44).
Current mitigation
#21 adds a warning to the plugin description advising users to save their work before installing. That is only a stopgap.
Proposed fix
Run the dependency installation off the UI thread (e.g. in a QgsTask or a QThread worker) so QGIS stays responsive and the installer dialog can show real progress.