Skip to content

Navigation Mode Crash Fix#1374

Open
Halcyonic-01 wants to merge 1 commit intoinvesalius:masterfrom
Halcyonic-01:fix/threshold-range-indexerror-nav-mode-toggle
Open

Navigation Mode Crash Fix#1374
Halcyonic-01 wants to merge 1 commit intoinvesalius:masterfrom
Halcyonic-01:fix/threshold-range-indexerror-nav-mode-toggle

Conversation

@Halcyonic-01
Copy link
Copy Markdown
Contributor

Fixes #1373

1. Fixed Configuration Initialization (invesalius/session.py)

Corrected a typo that caused the app to falsely believe a project was still open from a previous session.

- self.project_status = 3
+ self._config["project_status"] = 3

2. Added Safety Guard (invesalius/control.py)

Added an early-return check in LoadProject() to prevent crashes when triggered without valid project data.

+ if not proj.threshold_range or not hasattr(proj, 'matrix_shape'):
+     if end_busy_cursor:
+         Publisher.sendMessage("End busy cursor")
+     return

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Navigation Mode Crash Issue

1 participant