Application crashes with unhandled exception when navigating between pages using button click in .NET MAUI (.NET 8 and .NET 9) #27020
Labels
area-navigation
NavigationPage
partner/syncfusion
Issues / PR's with Syncfusion collaboration
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
We are experiencing an issue in our .NET MAUI application when navigating from a main page to a listview page using a button click and then returning back to the main page. If this action is performed recursively, the application sometimes crashes with an unhandled exception.
In button click, use the Navigation.PushAsync method to navigate the second page.
Call stack
Sample file
MAUIApplicationCrash.zip
Output video
UnhandledExceptionMAUI.mp4
Steps to Reproduce
a. Main Page: Contains a single button.
b. Second Page: Contains a simple ListView control with some data.
Expected Behavior:
The application should allow continuous navigation between pages without crashing, regardless of the number of times the action is performed.
Actual Behavior:
After repeatedly navigating between the Main Page and the Second Page, the application crashes with an unhandled exception.
Link to public reproduction project repository
No response
Version with bug
9.0.22 SR2.2
Is this a regression from previous behavior?
No, this is something new, Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
windows 10.0.19041.0
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: