Skip to content

Fix crash on start - #335

Open
whamm86 wants to merge 4 commits into
mainfrom
fix-crash-on-vs-start
Open

whamm86 wants to merge 4 commits into
mainfrom
fix-crash-on-vs-start

Conversation

@whamm86

@whamm86 whamm86 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

There is a problem with plugin loading that causes crashes on startup. In Visual Studio, a clean build helped fix the crash. However, the current release build, v2025-10-21.alpha of the Package Explorer, crashes as well.

With these changes, problems during plugin loading are handled gracefully, and the application will no longer crash.

whamm86 and others added 4 commits August 19, 2026 12:26
1. Plugin.cs — CefSettings now sets BrowserSubprocessPath, LocalesDirPath, and ResourcesDirPath to the plugin's own directory (resolved from
  Assembly.GetExecutingAssembly().Location). CefSharp will find its native files in plugins/AasxPluginWebBrowser/ instead of defaulting to the main app
  directory.
2. AasxPluginWebBrowser.csproj — Target framework updated from net8.0-windows to net8.0-windows7.0, matching the main app and required by CefSharp/WPF
  under .NET 8.

The graceful fallback in BrowserContainer.cs remains as a safety net — if CefSharp still fails for any reason (e.g., missing VC++ redistributable), the app degrades to FakeBrowser instead of crashing.

Co-Authored-By: Claude Sonnet 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