KEMBAR78
[housekeeping] Dispatch MainPage reset to UI thread to prevent crash in HostApp by bhavanesh2001 · Pull Request #30272 · dotnet/maui · GitHub
Skip to content

Conversation

@bhavanesh2001
Copy link
Contributor

Description of Change

Fixes a crash caused by setting MainPage inside SelectionChanged handler. I think this is surfaced after this #28830

The reset is now dispatched to the UI thread to allow the selection round-trip to complete and avoid accessing disposed handlers.

crash.mp4

@bhavanesh2001 bhavanesh2001 requested a review from a team as a code owner June 27, 2025 11:00
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jun 27, 2025
@PureWeen
Copy link
Member

/azp run MAUI-UITests-public

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@PureWeen PureWeen merged commit f6e378b into dotnet:main Jun 27, 2025
74 of 78 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community ✨ Community Contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants