Skip to content

Fix Minecraft launch crash from Account refresh thread - #20

Merged
Liis17 merged 1 commit into
mainfrom
fix/windows-launch-crash
Oct 24, 2026
Merged

Liis17 merged 1 commit into
mainfrom
fix/windows-launch-crash

Conversation

@Liis17

@Liis17 Liis17 commented Oct 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fixed UI thread subscription failures interrupting account refresh
  • Added dispatcher queue protection for MainWindow notifications
  • Protected UI notifications from breaking token rotation in AppCoordinator
  • Added regression test for account notification failure scenarios
  • Updated documentation about account notification threading behavior
  • All 57 existing tests continue to pass

Testing

  • Ran 57 targeted tests for authorization, session refresh, and game launch

  • Windows x64 builds successfully without warnings or errors

  • Windows build passes: MinecraftSessionCoordinatorTests, GameLaunchCoordinatorTests, AppCoordinatorTests, MicrosoftDeviceAuthTests

  • Verified regressed test now passes after fix

  • Tested account notification error handling and token rotation recovery

  • Main window notification processing validated through DispatcherQueue

  • Not run: End-to-end Minecraft launch testing after rebuild (requires manual verification)

  • Not run: macOS platform impact assessment (changes Windows-specific)

  • Not run: Full CI pipeline across both platforms (limited to Windows builds)

- §§§ Account refresh notifications were raised off the UI thread; MainWindow marshals them into its DispatcherQueue and skips them after closing.
- Per-subscriber failures no longer abort the refresh commit; all Account subscribers still receive updates.
@Liis17
Liis17 merged commit 862ff32 into main Oct 24, 2026
3 checks 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.

1 participant