dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.28k stars 1.76k forks source link

Blazor Hybrid app started freezing/being unresponsive with latest Android WebView #10002

Closed tinytownsoftware closed 2 years ago

tinytownsoftware commented 2 years ago

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

tinytownsoftware commented 2 years ago

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.

tinytownsoftware commented 2 years ago

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 ([nyname.mauiapp1] Explicit concurrent copying GC freed 6539(326KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 3626KB/7253KB, paused 13us,10us total 6.871ms). The other messages after that are me clicking on the unresponsive button. It's not frozen, it's just not working anymore.

> am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.companyname.mauiapp1/crc64e632a077a20c694c.MainActivity"
> Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.companyname.mauiapp1/crc64e632a077a20c694c.MainActivity }
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/MauiApp1.dll
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Mono.Android.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Runtime.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Java.Interop.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Collections.dll [External]
Resolved pending breakpoint for 'Android.Runtime.JNIEnv.RegisterJniNatives(System.IntPtr, System.Int32, System.IntPtr, System.IntPtr, System.Int32)' to /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNIEnv.cs:124 [0x00000].
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Threading.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Runtime.InteropServices.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Threading.Thread.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Diagnostics.StackTrace.dll [External]
Loaded assembly: data-0x7001c205d060 [External]
Loaded assembly: data-0x7001c204d050 [External]
Loaded assembly: data-0x700270aee650 [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/netstandard.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Linq.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Collections.Concurrent.dll [External]
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointSendToIde(System.String)' to D:\a\_work\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:419 [0x00000].
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Text.Json.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Text.Encodings.Web.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.ComponentModel.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.Maui.Controls.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.ObjectModel.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.Maui.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.Maui.Graphics.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.Maui.Essentials.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.Extensions.Logging.Abstractions.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.ComponentModel.TypeConverter.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Private.Uri.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Runtime.Loader.dll [External]
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointCheckpoint()' to D:\a\_work\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:414 [0x00000].
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Memory.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Reflection.Emit.Lightweight.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Reflection.Emit.ILGeneration.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Reflection.Primitives.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Runtime.CompilerServices.Unsafe.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Xamarin.AndroidX.Core.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.Extensions.DependencyInjection.Abstractions.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.Maui.Controls.Xaml.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.Extensions.Configuration.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.Extensions.Configuration.Abstractions.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.Extensions.Logging.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.AspNetCore.Components.WebView.Maui.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Xamarin.AndroidX.AppCompat.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Xamarin.Google.Android.Material.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Xamarin.AndroidX.SwipeRefreshLayout.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Xamarin.AndroidX.Fragment.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Xamarin.AndroidX.Activity.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Xamarin.AndroidX.Lifecycle.ViewModel.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Xamarin.AndroidX.Lifecycle.Common.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Xamarin.AndroidX.SavedState.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Xamarin.AndroidX.DrawerLayout.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Xamarin.AndroidX.CustomView.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Xamarin.AndroidX.Navigation.Runtime.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Net.Primitives.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.AspNetCore.Components.WebView.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.JSInterop.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.AspNetCore.Components.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.AspNetCore.Components.Web.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.Extensions.Options.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.Extensions.DependencyInjection.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Diagnostics.Tracing.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Xml.ReaderWriter.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Private.Xml.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Text.Encoding.Extensions.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Text.RegularExpressions.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Numerics.Vectors.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.Extensions.FileProviders.Abstractions.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Xamarin.AndroidX.RecyclerView.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Xamarin.AndroidX.CardView.dll [External]
[nyname.mauiapp1] Late-enabling -Xcheck:jni
[nyname.mauiapp1] Unexpected CPU variant for x86: x86_64.
[nyname.mauiapp1] Known variants: atom, sandybridge, silvermont, kabylake, default
[CompatibilityChangeReporter] Compat change id reported: 171979766; UID 10161; state: ENABLED
[ziparchive] Unable to open '/data/app/~~bINdxtNSvhmb4RGzk8mltw==/com.companyname.mauiapp1-Hm_hnIQOpJyah2lxi2WPaA==/base.dm': No such file or directory
[ziparchive] Unable to open '/data/app/~~bINdxtNSvhmb4RGzk8mltw==/com.companyname.mauiapp1-Hm_hnIQOpJyah2lxi2WPaA==/base.dm': No such file or directory
[GraphicsEnvironment] ANGLE Developer option for 'com.companyname.mauiapp1' set to: 'default'
[GraphicsEnvironment] ANGLE GameManagerService for com.companyname.mauiapp1: false
[GraphicsEnvironment] Neither updatable production driver nor prerelease driver is supported.
[NetworkSecurityConfig] No Network Security Config specified, using platform default
[NetworkSecurityConfig] No Network Security Config specified, using platform default
[debug-app-helper] Checking if libmonodroid was unpacked to /data/app/~~bINdxtNSvhmb4RGzk8mltw==/com.companyname.mauiapp1-Hm_hnIQOpJyah2lxi2WPaA==/lib/x86_64/libmonodroid.so
[debug-app-helper] Native libs extracted to /data/app/~~bINdxtNSvhmb4RGzk8mltw==/com.companyname.mauiapp1-Hm_hnIQOpJyah2lxi2WPaA==/lib/x86_64, assuming application/android:extractNativeLibs == true
[debug-app-helper] Setting up for DSO lookup in app data directories
[debug-app-helper] Added filesystem DSO lookup location: /data/app/~~bINdxtNSvhmb4RGzk8mltw==/com.companyname.mauiapp1-Hm_hnIQOpJyah2lxi2WPaA==/lib/x86_64
[debug-app-helper] Using runtime path: /data/app/~~bINdxtNSvhmb4RGzk8mltw==/com.companyname.mauiapp1-Hm_hnIQOpJyah2lxi2WPaA==/lib/x86_64
[debug-app-helper] checking directory: `/data/user/0/com.companyname.mauiapp1/files/.__override__/lib`
[debug-app-helper] directory does not exist: `/data/user/0/com.companyname.mauiapp1/files/.__override__/lib`
[debug-app-helper] Checking whether Mono runtime exists at: /data/user/0/com.companyname.mauiapp1/files/.__override__/libmonosgen-2.0.so
[debug-app-helper] Checking whether Mono runtime exists at: /data/app/~~bINdxtNSvhmb4RGzk8mltw==/com.companyname.mauiapp1-Hm_hnIQOpJyah2lxi2WPaA==/lib/x86_64/libmonosgen-2.0.so
[debug-app-helper] Mono runtime found at: /data/app/~~bINdxtNSvhmb4RGzk8mltw==/com.companyname.mauiapp1-Hm_hnIQOpJyah2lxi2WPaA==/lib/x86_64/libmonosgen-2.0.so
[nyname.mauiapp1] Attempt to remove non-JNI local reference, dumping thread
[DOTNET] JNI_OnLoad: JNI_OnLoad in pal_jni.c
[monodroid] Creating public update directory: `/data/user/0/com.companyname.mauiapp1/files/.__override__`
[nyname.mauiapp1] Attempt to remove non-JNI local reference, dumping thread
[monodroid-debug] Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=10.0.2.2:63983,embedding=1
[monodroid-assembly] open_from_bundles: failed to load assembly MauiApp1.dll
[monodroid-gc] GREF GC Threshold: 46080
[monodroid-assembly] open_from_bundles: failed to load assembly Mono.Android.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Java.Interop.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Collections.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Threading.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.InteropServices.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Threading.Thread.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Diagnostics.StackTrace.dll
[nyname.mauiapp1] Attempt to remove non-JNI local reference, dumping thread
[monodroid-assembly] open_from_bundles: failed to load assembly netstandard.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Linq.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Collections.Concurrent.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Text.Json.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Text.Encodings.Web.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.ComponentModel.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Controls.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.ObjectModel.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Graphics.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Essentials.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.Logging.Abstractions.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.ComponentModel.TypeConverter.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Private.Uri.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.Loader.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Memory.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Reflection.Emit.Lightweight.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Reflection.Emit.ILGeneration.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Reflection.Primitives.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.CompilerServices.Unsafe.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Core.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.DependencyInjection.Abstractions.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Controls.Xaml.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.Configuration.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.Configuration.Abstractions.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.Logging.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.AspNetCore.Components.WebView.Maui.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.AppCompat.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.Google.Android.Material.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.SwipeRefreshLayout.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Fragment.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Activity.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Lifecycle.ViewModel.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Lifecycle.Common.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.SavedState.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.DrawerLayout.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.CustomView.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Navigation.Runtime.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Net.Primitives.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.AspNetCore.Components.WebView.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.JSInterop.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.AspNetCore.Components.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.AspNetCore.Components.Web.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.Options.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.DependencyInjection.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Diagnostics.Tracing.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Xml.ReaderWriter.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Private.Xml.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Text.Encoding.Extensions.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Text.RegularExpressions.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Numerics.Vectors.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.FileProviders.Abstractions.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.RecyclerView.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.CardView.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Loader.dll
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Xamarin.AndroidX.Loader.dll [External]
[libEGL] loaded /vendor/lib64/egl/libEGL_emulation.so
[libEGL] loaded /vendor/lib64/egl/libGLESv1_CM_emulation.so
[libEGL] loaded /vendor/lib64/egl/libGLESv2_emulation.so
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Controls.Compatibility.dll
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.Maui.Controls.Compatibility.dll [External]
Thread started:  #2
Thread started:  #3
Thread started:  #4
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.Serialization.Json.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Private.DataContractSerialization.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.Serialization.Xml.dll
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Runtime.Serialization.Json.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Private.DataContractSerialization.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Runtime.Serialization.Xml.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.Serialization.Primitives.dll
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Runtime.Serialization.Primitives.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.CoordinatorLayout.dll
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Xamarin.AndroidX.CoordinatorLayout.dll [External]
[ziparchive] Unable to open '/data/app/~~zhKsg6vrWH5cc2wgMToQFw==/com.google.android.trichromelibrary.dev_528400237-RQ5FNukr9O64Km2pwRoUVg==/base.dm': No such file or directory
[ziparchive] Unable to open '/data/app/~~zhKsg6vrWH5cc2wgMToQFw==/com.google.android.trichromelibrary.dev_528400237-RQ5FNukr9O64Km2pwRoUVg==/base.dm': No such file or directory
[nyname.mauiapp1] Entry not found
[WebViewFactory] Loading com.google.android.webview.dev version 107.0.5284.2 (code 528400237)
[nyname.mauiapp1] Accessing hidden method Landroid/os/Trace;->isTagEnabled(J)Z (unsupported, reflection, allowed)
[nyname.mauiapp1] Accessing hidden method Landroid/os/Trace;->traceBegin(JLjava/lang/String;)V (unsupported, reflection, allowed)
[nyname.mauiapp1] Accessing hidden method Landroid/os/Trace;->traceEnd(J)V (unsupported, reflection, allowed)
[nyname.mauiapp1] Accessing hidden method Landroid/os/Trace;->asyncTraceBegin(JLjava/lang/String;I)V (unsupported, reflection, allowed)
[nyname.mauiapp1] Accessing hidden method Landroid/os/Trace;->asyncTraceEnd(JLjava/lang/String;I)V (unsupported, reflection, allowed)
[cr_WVCFactoryProvider] Loaded version=107.0.5284.2 minSdkVersion=29 isBundle=true multiprocess=true packageId=2
[cr_LibraryLoader] Successfully loaded native library
[cr_CachingUmaRecorder] Flushed 9 samples from 9 histograms.
[CompatibilityChangeReporter] Compat change id reported: 183155436; UID 10161; state: DISABLED
[chromium] [ERROR:simple_file_enumerator.cc(21)] opendir /data/user/0/com.companyname.mauiapp1/cache/WebView/Default/HTTP Cache/Code Cache/wasm: No such file or directory (2)
[chromium] [ERROR:simple_index_file.cc(614)] Could not reconstruct index from disk
[chromium] [ERROR:simple_file_enumerator.cc(21)] opendir /data/user/0/com.companyname.mauiapp1/cache/WebView/Default/HTTP Cache/Code Cache/js: No such file or directory (2)
[chromium] [ERROR:simple_index_file.cc(614)] Could not reconstruct index from disk
[CompatibilityChangeReporter] Compat change id reported: 214741472; UID 10161; state: DISABLED
[CompatibilityChangeReporter] Compat change id reported: 171228096; UID 10161; state: ENABLED
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.Primitives.dll
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.Extensions.Primitives.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.FileProviders.Embedded.dll
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.Extensions.FileProviders.Embedded.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.FileProviders.Composite.dll
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Microsoft.Extensions.FileProviders.Composite.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly System.Xml.XDocument.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Private.Xml.Linq.dll
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Xml.XDocument.dll [External]
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Private.Xml.Linq.dll [External]
[nyname.mauiapp1] Accessing hidden method Landroid/media/AudioManager;->getOutputLatency(I)I (unsupported, reflection, allowed)
[cr_media] BLUETOOTH_CONNECT permission is missing.
[cr_media] registerBluetoothIntentsIfNeeded: Requires BLUETOOTH permission
[HostConnection] createUnique: call
[HostConnection] HostConnection::get() New Host Connection established 0x700052018350, tid 17740
[HostConnection] HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2 
[EGL_emulation] eglCreateContext: 0x700052013f10: maj 2 min 0 rcv 2
[EGL_emulation] eglMakeCurrent: 0x700052013f10: ver 2 0 (tinfo 0x70026ddf5080) (first time)
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Lifecycle.LiveData.Core.dll
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/Xamarin.AndroidX.Lifecycle.LiveData.Core.dll [External]
[nyname.mauiapp1] Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
[nyname.mauiapp1] Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
[EGL_emulation] eglCreateContext: 0x7000520127d0: maj 2 min 0 rcv 2
Thread started:  #5
Thread started: .NET Timers #6
[EGL_emulation] eglCreateContext: 0x7000520175d0: maj 2 min 0 rcv 2
[CompatibilityChangeReporter] Compat change id reported: 193247900; UID 10161; state: DISABLED
[HostConnection] createUnique: call
[HostConnection] HostConnection::get() New Host Connection established 0x70005201a150, tid 17680
[HostConnection] HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2 
[OpenGLRenderer] Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
[OpenGLRenderer] Failed to initialize 101010-2 format, error = EGL_SUCCESS
[EGL_emulation] eglCreateContext: 0x70005201aed0: maj 2 min 0 rcv 2
[EGL_emulation] eglMakeCurrent: 0x70005201aed0: ver 2 0 (tinfo 0x70026ddf5100) (first time)
[Gralloc4] mapper 4.x is not supported
[HostConnection] createUnique: call
[HostConnection] HostConnection::get() New Host Connection established 0x70005201a690, tid 17680
[goldfish-address-space] allocate: Ask for block of size 0x100
[goldfish-address-space] allocate: ioctl allocate returned offset 0x3efffe000 size 0x2000
[Gralloc4] allocator 4.x is not supported
[HostConnection] HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2 
[Parcel] Expecting binder but got null!
Thread started:  #7
Thread started:  #8
Thread started:  #9
Thread started:  #10
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.Intrinsics.dll
Loaded assembly: /data/data/com.companyname.mauiapp1/files/.__override__/System.Runtime.Intrinsics.dll [External]
[EGL_emulation] app_time_stats: avg=244.52ms min=1.69ms max=849.83ms count=6
Thread started: <Thread Pool> #11
Thread started: .NET ThreadPool Gate #12
Thread started: <Thread Pool> #13
Thread started: <Thread Pool> #14
Thread started: <Thread Pool> #15
Thread finished: <Thread Pool> #11
Thread finished: <Thread Pool> #14
The thread 0xb has exited with code 0 (0x0).
The thread 0xe has exited with code 0 (0x0).
[EGL_emulation] app_time_stats: avg=2810.60ms min=14.98ms max=44719.70ms count=16
[EGL_emulation] app_time_stats: avg=103.24ms min=13.68ms max=867.43ms count=10
[EGL_emulation] app_time_stats: avg=128.37ms min=14.71ms max=1132.58ms count=10
[EGL_emulation] app_time_stats: avg=51.46ms min=15.24ms max=148.99ms count=21
[EGL_emulation] app_time_stats: avg=77.07ms min=13.59ms max=150.67ms count=13
[EGL_emulation] app_time_stats: avg=71.44ms min=14.94ms max=151.08ms count=14
[EGL_emulation] app_time_stats: avg=80.92ms min=13.44ms max=164.84ms count=14
[nyname.mauiapp1] Explicit concurrent copying GC freed 6539(326KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 3626KB/7253KB, paused 13us,10us total 6.871ms
[EGL_emulation] app_time_stats: avg=64.47ms min=7.51ms max=149.56ms count=16
[EGL_emulation] app_time_stats: avg=34.48ms min=14.03ms max=285.08ms count=29
[EGL_emulation] app_time_stats: avg=1393.58ms min=2.93ms max=12435.71ms count=9
[EGL_emulation] app_time_stats: avg=59.68ms min=14.61ms max=298.87ms count=19
[EGL_emulation] app_time_stats: avg=25.84ms min=1.99ms max=146.64ms count=35
HaralampidisSA commented 2 years ago

I am also facing the same problem.

Ewerton commented 2 years ago

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.

HaralampidisSA commented 2 years ago

See also #9882

Eilon commented 2 years ago

Indeed, this seems like the same issue as #9882, so let's use that as the main issue.

samhouts commented 2 years ago

Duplicate of #9882