Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application crashes with unhandled exception when navigating between pages using button click in .NET MAUI (.NET 8 and .NET 9) #27020

Open
aruljenithberkmans opened this issue Jan 9, 2025 · 2 comments
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

Comments

@aruljenithberkmans
Copy link

aruljenithberkmans commented Jan 9, 2025

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.

Image

Call stack

Image

Sample file
MAUIApplicationCrash.zip

Output video

UnhandledExceptionMAUI.mp4

Steps to Reproduce

  1. Create a .NET MAUI project with two pages:
    a. Main Page: Contains a single button.
    b. Second Page: Contains a simple ListView control with some data.
  2. On the Main Page, set up the button click action to navigate to the Second Page.
  3. On the Second Page, provide a way to return to the Main Page (e.g., using a return arrow or back button).
  4. Navigate from the Main Page to the Second Page by clicking the button, then return to the Main Page.
  5. Repeat steps 4 multiple times.
  6. Observe that after several iterations, the application crashes with an unhandled exception.

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

@aruljenithberkmans aruljenithberkmans added the t/bug Something isn't working label Jan 9, 2025
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@sheiksyedm sheiksyedm added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Jan 9, 2025
@RoiChen001 RoiChen001 added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage platform/windows 🪟 labels Jan 9, 2025
@RoiChen001
Copy link

I can repro this issue at Windows platform on the latest 17.13 Preview 2.1 (9.0.21 & 9.0.22).

@jfversluis jfversluis added this to the Backlog milestone Jan 9, 2025
@jfversluis jfversluis added the area-navigation NavigationPage label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants