Skip to content

Issue : UI Freezes During Heavy Computations #53

@Adithyakp86

Description

@Adithyakp86

Description The application performs computationally intensive tasks, such as keypoint detection in cloning.py and probability map calculation in resampling.py, directly on the main GUI thread. This causes the application to freeze and become unresponsive until the processing is complete.

Solution Refactor the heavy computation methods to run in a background thread.

  • Use QThread or QThreadPool to move execution off the main thread.
  • Use pyqtSignal (or Signal from PySide6) to communicate progress and results back to the main thread for UI updates.
  • Show a progress bar or a "Processing..." dialog that doesn't block the event loop.

Assign this issue to me under the OSCG.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions