maui
maui copied to clipboard
Freezing App when Navigating Between Tabs with BlazorWebView in Maui Blazor App
Description
Two Tabs: an AppShell page that contains two tabs named "page1" and "page2". These tabs likely represent different sections or functionalities within the app.
Navigation from Page1 to Another Page: When navigate from "page1" to another page, presumably using some kind of navigation mechanism like a button click or a navigation service.
BlazorWebView Content: The page you navigate to from "page1" contains a BlazorWebView component.
Tab Switching: After navigating to the page containing the BlazorWebView, you switch tabs from "page1" back to "page2" and then "page2" back to "page1".
App Freeze: At this point, when you switch back to "page1" after previously navigating away from it, the app freezes. This means that the app becomes unresponsive and does not react to user input or continue executing code.
Steps to Reproduce
Create new maui blazor app
Link to public reproduction project repository
https://github.com/alzubitariq/MauiBlazorNavigationIssue
Version with bug
8.0.21 SR4.1
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android
Did you find any workaround?
No
Relevant log output
[RtgSched] resetRtgSchedHandle failed enable:1
[OnBackInvokedCallback] OnBackInvokedCallback is not enabled for the application.
[OnBackInvokedCallback] Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Open similar issues:
- App crashes when navigating from TabbedPage to another TabbedPage (#22131), similarity score: 0.77
Closed similar issues:
- Whole App Shell and Shell content disapear when changing between tabs fast enough (Release mode on Android) (#18555), similarity score: 0.78
- Blazor UI Freezes on scroll (#13722), similarity score: 0.78
- Maui app softlock (#13044), similarity score: 0.76
- Switching Tabs after resuming from background throws System.NullReferenceException on Android (#12498), similarity score: 0.76
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
@Eilon Could you please take a look
Verified this issue with Visual Studio 17.10 Preview 7.0 (8.0.21). Can repro on android platform with sample project.
Duplicate of the root cause of #20678.