Skip to content

fix loading crash caused by broken plugins#1224

Merged
AdvancedImagingUTSW merged 3 commits into
TheDeanLab:developfrom
annie-xd-wang:fix-broken-plugin-loading
May 28, 2026
Merged

fix loading crash caused by broken plugins#1224
AdvancedImagingUTSW merged 3 commits into
TheDeanLab:developfrom
annie-xd-wang:fix-broken-plugin-loading

Conversation

@annie-xd-wang

Copy link
Copy Markdown
Collaborator

No description provided.

annie-xd-wang and others added 3 commits May 27, 2026 23:59
Broaden file-based plugin module loading to catch ImportError, which covers Windows DLL/CuPy import failures as well as missing modules. The helper now also handles missing import specs or loaders by returning None instead of crashing during startup.

Keep plugin managers type-hinted and documented in numpydoc style, and normalize importlib resource paths before passing them to APIs that expect filesystem strings.

Add regression coverage for configured file plugins whose controller import fails, plus helper-level tests for ImportError and missing spec/loader cases.
@AdvancedImagingUTSW AdvancedImagingUTSW self-requested a review May 28, 2026 17:34
@AdvancedImagingUTSW AdvancedImagingUTSW merged commit 74f76b4 into TheDeanLab:develop May 28, 2026
1 check passed
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.

2 participants