Fix silent crash when addon symlink is unreachable during startup#265
Open
Furash wants to merge 2 commits into
Open
Fix silent crash when addon symlink is unreachable during startup#265Furash wants to merge 2 commits into
Furash wants to merge 2 commits into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
handle_fatal_error()to callsys.exit(1). Becauselaunch.pysilently ignoredSystemExit, Blender would just close without any error message — making it very hard to diagnose.sys.exit(1)withraise RuntimeError(message)so the error propagates tolaunch.py'sexceptblock, which now unconditionally prints the full traceback. Blender stays running and the user gets a clear error pointing to the problematic addon..gitignore: add.claudeand.vscodedirectories🤖 Generated with Claude Code