Skip to content

Fix silent crash when addon symlink is unreachable during startup#265

Open
Furash wants to merge 2 commits into
JacquesLucke:masterfrom
Furash:fix-silent-startup-crash
Open

Fix silent crash when addon symlink is unreachable during startup#265
Furash wants to merge 2 commits into
JacquesLucke:masterfrom
Furash:fix-silent-startup-crash

Conversation

@Furash

@Furash Furash commented Mar 8, 2026

Copy link
Copy Markdown

Summary

  • Fix silent Blender crash on startup: When developing multiple addons, a stale or unreachable symlink from another addon could cause handle_fatal_error() to call sys.exit(1). Because launch.py silently ignored SystemExit, Blender would just close without any error message — making it very hard to diagnose.
  • Replace sys.exit(1) with raise RuntimeError(message) so the error propagates to launch.py's except block, which now unconditionally prints the full traceback. Blender stays running and the user gets a clear error pointing to the problematic addon.
  • Update .gitignore: add .claude and .vscode directories

🤖 Generated with Claude Code

Furash and others added 2 commits March 8, 2026 10:43
When developing multiple addons, a stale or unreachable symlink from
another addon could cause startup to fail. Because handle_fatal_error()
called sys.exit(1) and launch.py silently ignored SystemExit, Blender
would just close without any clue about what went wrong — making it
very hard to diagnose.

Replace sys.exit(1) with raise RuntimeError(message) so the error
propagates to launch.py's except block, which now unconditionally
prints the traceback. This keeps Blender running and gives the user
a clear error message pointing to the problematic addon.

The SystemExit special-case in launch.py is removed since
handle_fatal_error no longer calls sys.exit.
Add .claude and .vscode to .gitignore and fix missing newline at EOF.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant