Skip to content

QGIS freezes during first-install dependency installation #27

Description

@tkempen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions