v0.9.46 — crash-loop fix
Crash fix: server start killed the app on some machines
Fixes the crash-loop reported in the issue tracker: on some machines, the moment the Valheim server printed its first line of output, BakaLoader died — and because the server auto-starts on launch, the app then crashed instantly on every restart.
Root cause
Server console output arrives on a background thread. The internal PostJson bridge checked WebView.CoreWebView2 for null before marshaling to the UI thread — and WebView2 forbids touching CoreWebView2 from any other thread. On many machines the cross-thread COM call happens to survive; on others it fails with E_NOINTERFACE → unhandled exception → process terminated. That's the "CoreWebView2 can only be accessed from the UI thread" error visible in Event Viewer.
The fix
PostJsonnow marshals to the UI thread first and only dereferences the WebView there.- Guards for window teardown races, and the UI-side post can never take the process down (and can never recurse through the logger).
If you were stuck in the crash loop: just replace your install with this version and launch — your saved profile will be picked up and the server will start normally.
Gates: build 0 errors · 76/76 tests.