-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Blazor Hybrid app started freezing/being unresponsive with latest Android WebView #10002
Comments
Did some more troubleshooting and turns out the problem is the latest version of WebView on Android, NOT Android 12. Blazor Hybrid stopped working with the latest version apparently. I even tried the Dev build and it's not working. The way I discovered that is I had an old Android phone running Android 11 and an older version of WebView. I upgraded to the latest version and right after the upgrade my Blazor Hybrid app stopped working as described above. I uninstalled the latest WebView update and the problem went away after re-launching my app. For now I will tell my users to downgrade their WebView if possible. Edit: No physical device needed. Installed the latest WebView on the Android Emulator and I can reproduce there too in debug mode with multiple Android versions. |
Here is the output of the stock Blazor Hybrid app running in the emulator. Stopped working after 36 clicks on the Counter button. Stopped working right after that last message (
|
I am also facing the same problem. |
Me too. Same problem. Its definitely a WebView issue. In my case, I installed my app in a device with the webview version 104.x.xxx and it worked but when I install it on a device with the webview 105.x.xxx my App stops freezes. I completely uninstalled the webview in the problematic device and my App worked, but, I know this isn't a "real" solution. |
See also #9882 |
Indeed, this seems like the same issue as #9882, so let's use that as the main issue. |
Duplicate of #9882 |
Description
My app has been in the Google Play app store for a couple months now. No issues whatsover, until a couple days ago when I updated by phone to the latest Android 12. Mind you I had Android 12 before too. After the upgrade the app just stopped responding to input (same app store version that has been in there for weeks and working). The buttons look like they are getting tapped, but nothing happens. This is not reproducible in the emulator (debug or release), only on a real device. A handful of users who also upgraded to the latest Android 12 have also reported issues. I am sure more will come.
My Windows Store and iOS Store apps still work perfectly, so definitely Android 12 related. My phone's Android build is 61.1.A.9.219. It's a Sony Xperia. Other users that reported this have other devices, but all Android 12.
I don't really know how to diagnose this, as there is no classic Blazor error at the bottom that comes up. I even tried using the ErrorBoundary, but nothing there either. Since it's on a real device, I can't pull up DevTools (F12) to see if there is anything there. Any clues on how to further diagnose this? Needless to say this is terrible for my app, which is already live in the store.
Steps to Reproduce
There has been no new version released that would break something, so this can only be a problem with the framework. I spent countless hours scouring my app and trying to find if it's my fault. Then I just created a new Blazor Hybrid app in VS 2022 Preview and deployed it to my device with no changes. I navigated to the Counter page and spammed the increment button and lo and behold, the button froze after about 100 times. I can cosistently reproduce this. Sometimes it happens after more clicks, sometimes less. If I plug the same counter logic into my app it happens faster, after about 10 times, probably because it's a heavier app than the stock template. Don't know what that means, but hopefully it's a clue.
Link to public reproduction project repository
Reproducible with out of the box Blazor Hybrid project template.
Version with bug
6.0.312
Last version that worked well
6.0.312
Affected platforms
Android
Affected platform versions
Android 12 build 61.1.A.9.219 and up
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: