maui icon indicating copy to clipboard operation
maui copied to clipboard

Emulator crashing when using C# markup for hot reload

Open echolumaque opened this issue 1 year ago • 7 comments

Description

I have followed David Ortinau's blog: https://dev.to/davidortinau/c-ui-and-net-hot-reload-a-match-made-in-net-maui-243f and James Montemagno's YouTube video: https://www.youtube.com/watch?v=cyz_fKE5wQI that teaches how to use hot reload on C# markup. Unfortunately after invoking hot reload, it crashes.

Steps to Reproduce

  • Follow the two links above
  • Create a UI using C# markup
  • Invoke hot reload

Link to public reproduction project repository

https://github.com/Organisasyon-ng-mga-Malalakas/HealthMate/tree/emulator-crash-test

Version with bug

7.0.92

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 12+

Did you find any workaround?

No response

Relevant log output

Start debugging Android application ...
> am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.group10.healthmate/crc646fc0cc76ae7dad7d.MainActivity"
> Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.group10.healthmate/crc646fc0cc76ae7dad7d.MainActivity }
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/HealthMate.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Mono.Android.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Runtime.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Java.Interop.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Runtime.InteropServices.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/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:127 [0x00000].
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Threading.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Threading.Thread.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Diagnostics.StackTrace.dll [External]
Loaded assembly: data-0x7f1ae9d3e030 [External]
Loaded assembly: data-0x7f1ae9d7e070 [External]
Loaded assembly: data-0x7f1b8741ee60 [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/netstandard.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Linq.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/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:423 [0x00000].
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Text.Json.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Text.Encodings.Web.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.ComponentModel.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Runtime.Loader.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Microsoft.Maui.Controls.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Realm.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.ObjectModel.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Microsoft.Maui.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Microsoft.Maui.Graphics.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Microsoft.Maui.Essentials.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Microsoft.Extensions.Logging.Abstractions.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.ComponentModel.TypeConverter.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Private.Uri.dll [External]
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointCheckpoint()' to D:\a\_work\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:418 [0x00000].
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Memory.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Reflection.Emit.Lightweight.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Reflection.Emit.ILGeneration.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Reflection.Primitives.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.Core.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.AppCompat.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Microsoft.Extensions.DependencyInjection.Abstractions.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Console.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Microsoft.Maui.Controls.Xaml.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/CommunityToolkit.Maui.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/CommunityToolkit.Maui.Core.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Sharpnado.CollectionView.Maui.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/The49.Maui.BottomSheet.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Syncfusion.Maui.Core.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Mopups.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Microsoft.Extensions.Configuration.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Microsoft.Extensions.Configuration.Abstractions.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Microsoft.Extensions.Logging.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.Google.Android.Material.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.SwipeRefreshLayout.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.Fragment.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.Activity.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.Lifecycle.ViewModel.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.Lifecycle.Common.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.SavedState.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.DrawerLayout.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.CustomView.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.Navigation.Runtime.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Net.Primitives.dll [External]
[up10.healthmat] Late-enabling -Xcheck:jni
[up10.healthmat] Unexpected CPU variant for X86 using defaults: x86_64
[CompatibilityChangeReporter] Compat change id reported: 171979766; UID 10146; state: ENABLED
[GraphicsEnvironment] ANGLE Developer option for 'com.group10.healthmate' set to: 'default'
[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/~~r0HTGWUL6o1N0QVBzp-R5Q==/com.group10.healthmate-q-WvT9_j2u65a-f0--uEPQ==/lib/x86_64/libmonodroid.so
[debug-app-helper] Native libs extracted to /data/app/~~r0HTGWUL6o1N0QVBzp-R5Q==/com.group10.healthmate-q-WvT9_j2u65a-f0--uEPQ==/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/~~r0HTGWUL6o1N0QVBzp-R5Q==/com.group10.healthmate-q-WvT9_j2u65a-f0--uEPQ==/lib/x86_64
[debug-app-helper] Using runtime path: /data/app/~~r0HTGWUL6o1N0QVBzp-R5Q==/com.group10.healthmate-q-WvT9_j2u65a-f0--uEPQ==/lib/x86_64
[debug-app-helper] checking directory: `/data/user/0/com.group10.healthmate/files/.__override__/lib`
[debug-app-helper] directory does not exist: `/data/user/0/com.group10.healthmate/files/.__override__/lib`
[debug-app-helper] Checking whether Mono runtime exists at: /data/user/0/com.group10.healthmate/files/.__override__/libmonosgen-2.0.so
[debug-app-helper] Checking whether Mono runtime exists at: /data/app/~~r0HTGWUL6o1N0QVBzp-R5Q==/com.group10.healthmate-q-WvT9_j2u65a-f0--uEPQ==/lib/x86_64/libmonosgen-2.0.so
[debug-app-helper] Mono runtime found at: /data/app/~~r0HTGWUL6o1N0QVBzp-R5Q==/com.group10.healthmate-q-WvT9_j2u65a-f0--uEPQ==/lib/x86_64/libmonosgen-2.0.so
[up10.healthmat] Attempt to remove non-JNI local reference, dumping thread
[DOTNET] JNI_OnLoad: JNI_OnLoad in pal_jni.c
[DOTNET] GetOptionalClassGRef: optional class com/android/org/conscrypt/OpenSSLEngineImpl was not found
[monodroid] Creating public update directory: `/data/user/0/com.group10.healthmate/files/.__override__`
[up10.healthmat] 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:58435,embedding=1,timeout=1693646822
[monodroid-assembly] open_from_bundles: failed to load assembly HealthMate.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.Runtime.InteropServices.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.Threading.Thread.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Diagnostics.StackTrace.dll
[up10.healthmat] 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 System.Runtime.Loader.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Controls.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Realm.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.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 Xamarin.AndroidX.Core.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.AppCompat.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.DependencyInjection.Abstractions.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Console.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Controls.Xaml.dll
[monodroid-assembly] open_from_bundles: failed to load assembly CommunityToolkit.Maui.dll
[monodroid-assembly] open_from_bundles: failed to load assembly CommunityToolkit.Maui.Core.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Sharpnado.CollectionView.Maui.dll
[monodroid-assembly] open_from_bundles: failed to load assembly The49.Maui.BottomSheet.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Syncfusion.Maui.Core.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Mopups.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 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.Maui.Controls.Compatibility.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Microsoft.Maui.Controls.Compatibility.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.RecyclerView.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.RecyclerView.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly SQLite-net.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/SQLite-net.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly CommunityToolkit.Mvvm.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/CommunityToolkit.Mvvm.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly System.ComponentModel.Annotations.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.ComponentModel.Annotations.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.DependencyInjection.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Microsoft.Extensions.DependencyInjection.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly System.Diagnostics.Tracing.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Diagnostics.Tracing.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly System.Linq.Expressions.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Linq.Expressions.dll [External]
[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
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Xml.ReaderWriter.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Private.Xml.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Syncfusion.Licensing.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Syncfusion.Licensing.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly System.Text.Encoding.Extensions.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Text.Encoding.Extensions.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly mscorlib.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/mscorlib.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly System.Numerics.Vectors.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Numerics.Vectors.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly System.Text.RegularExpressions.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Text.RegularExpressions.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
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.Serialization.Primitives.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Runtime.Serialization.Json.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Private.DataContractSerialization.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Runtime.Serialization.Xml.dll [External]
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Runtime.Serialization.Primitives.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.CardView.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.CardView.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Loader.dll
[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
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.Loader.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Window.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.Window.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.CoordinatorLayout.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.CoordinatorLayout.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Lifecycle.LiveData.Core.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.Lifecycle.LiveData.Core.dll [External]
[up10.healthmat] Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
[up10.healthmat] Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.ViewPager2.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.ViewPager2.dll [External]
[CompatibilityChangeReporter] Compat change id reported: 171228096; UID 10146; state: ENABLED
[TabLayout] MODE_SCROLLABLE + GRAVITY_FILL is not supported, GRAVITY_START will be used instead
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Lifecycle.Runtime.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.Lifecycle.Runtime.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.ViewPager.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.ViewPager.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.AppCompat.AppCompatResources.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/Xamarin.AndroidX.AppCompat.AppCompatResources.dll [External]
Thread started: .NET Timer #5
[HostConnection] createUnique: call
[HostConnection] HostConnection::get() New Host Connection established 0x7f1979d2b590, tid 23350
[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_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_vulkan_async_qsri ANDROID_EMU_read_color_buffer_dma GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_1 
[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: 0x7f1979d2b890: maj 3 min 1 rcv 4
[EGL_emulation] eglMakeCurrent: 0x7f1979d2b890: ver 3 1 (tinfo 0x7f1b8f800080) (first time)
[Gralloc4] mapper 4.x is not supported
[HostConnection] createUnique: call
[HostConnection] HostConnection::get() New Host Connection established 0x7f1979d299d0, tid 23350
[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_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_vulkan_async_qsri ANDROID_EMU_read_color_buffer_dma GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_1 
Thread started: <Thread Pool> #6
Thread started: .NET ThreadPool Gate #7
Thread started: <Thread Pool> #8
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.Intrinsics.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Runtime.Intrinsics.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly System.Xml.XmlSerializer.dll
Loaded assembly: /data/data/com.group10.healthmate/files/.__override__/System.Xml.XmlSerializer.dll [External]
Thread started: <Thread Pool> #9
Thread started: <Thread Pool> #10
Thread started: <Thread Pool> #11
[up10.healthmat] Explicit concurrent copying GC freed 1215(181KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 6509KB/12MB, paused 464us,48us total 8.220ms
Thread finished: <Thread Pool> #8
Thread finished: <Thread Pool> #9
Thread finished: <Thread Pool> #11
The thread 0x8 has exited with code 0 (0x0).
The thread 0x9 has exited with code 0 (0x0).
The thread 0xb has exited with code 0 (0x0).
Thread started: <Thread Pool> #12
[libc] Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8 in tid 23329 (Debugger agent), pid 23308 (up10.healthmate)
The connection with the debugger has been lost. The target application may have exited.
Mono.Debugger.Soft.VMDisconnectedException: Exception of type 'Mono.Debugger.Soft.VMDisconnectedException' was thrown.
   at Mono.Debugger.Soft.Connection.disconnected_check() in D:\a\_work\1\s\External\debugger-libs\Mono.Debugger.Soft\Mono.Debugger.Soft\Connection.cs:line 1507
   at Mono.Debugger.Soft.Connection.SendReceive(CommandSet command_set, Int32 command, PacketWriter packet) in D:\a\_work\1\s\External\debugger-libs\Mono.Debugger.Soft\Mono.Debugger.Soft\Connection.cs:line 1834
   at Mono.Debugger.Soft.Connection.VM_GetTypesForSourceFile(String fname, Boolean ignoreCase) in D:\a\_work\1\s\External\debugger-libs\Mono.Debugger.Soft\Mono.Debugger.Soft\Connection.cs:line 2050
   at Mono.Debugger.Soft.VirtualMachine.GetTypesForSourceFile(String fname, Boolean ignoreCase) in D:\a\_work\1\s\External\debugger-libs\Mono.Debugger.Soft\Mono.Debugger.Soft\VirtualMachine.cs:line 333
   at Mono.Debugging.Soft.SoftDebuggerSession.AddFileToSourceMapping(String filename) in D:\a\_work\1\s\External\debugger-libs\Mono.Debugging.Soft\SoftDebuggerSession.cs:line 1694
   at Mono.Debugging.Soft.SoftDebuggerSession.FindLocationsByFile(String file, Int32 line, Int32 column, Boolean& genericTypeOrMethod, Boolean& insideLoadedRange) in D:\a\_work\1\s\External\debugger-libs\Mono.Debugging.Soft\SoftDebuggerSession.cs:line 1665
   at Mono.Debugging.Soft.SoftDebuggerSession.TryResolveBreakpoint(BreakInfo breakInfo, Breakpoint breakpoint, Boolean& insideLoadedRange) in D:\a\_work\1\s\External\debugger-libs\Mono.Debugging.Soft\SoftDebuggerSession.cs:line 1238
   at Mono.Debugging.Soft.SoftDebuggerSession.TryResolvePendingBreakpoints() in D:\a\_work\1\s\External\debugger-libs\Mono.Debugging.Soft\SoftDebuggerSession.cs:line 2488
   at Mono.Debugging.Soft.SoftDebuggerSession.HandleMethodUpdateEvents(MethodUpdateEvent[] methods) in D:\a\_work\1\s\External\debugger-libs\Mono.Debugging.Soft\SoftDebuggerSession.cs:line 2484
   at Mono.Debugging.Soft.SoftDebuggerSession.HandleEventSet(EventSet es) in D:\a\_work\1\s\External\debugger-libs\Mono.Debugging.Soft\SoftDebuggerSession.cs:line 1891
   at Mono.Debugging.Soft.SoftDebuggerSession.EventHandler() in D:\a\_work\1\s\External\debugger-libs\Mono.Debugging.Soft\SoftDebuggerSession.cs:line 1801

echolumaque avatar Sep 02 '23 09:09 echolumaque

I don't believe this would be specific to the MAUI UI repo. This exception is being thrown by the Mono Soft Debugger and would, most likely, happen regardless of if you were trying to hot reload from a MAUI UI application or a .NET Android one. But I'm not sure if it maybe could be tooling within Visual Studio causing the debugger libs to fail, or something else. Or maybe it is MAUI UI specific.

@thaystg @lambdageek What do ya'll think?

drasticactions avatar Sep 06 '23 11:09 drasticactions

I will investigate it.

thaystg avatar Sep 06 '23 12:09 thaystg

@echolumaque which version of VS are you using?

thaystg avatar Sep 06 '23 15:09 thaystg

@echolumaque which version of VS are you using?

Hello @thaystg , I am using Visual Studio 2022 17.7.1. Let me know how I could help you if you need further assistance from me.

Thanks!

echolumaque avatar Sep 06 '23 18:09 echolumaque

@echolumaque can you share the sample app that reproduces the issue?

thaystg avatar Sep 06 '23 18:09 thaystg

@echolumaque can you share the sample app that reproduces the issue?

@thaystg, you can try it here: https://github.com/Organisasyon-ng-mga-Malalakas/HealthMate/tree/emulator-crash-test. Here's the concerned files:

image

What's happening is that hot reload is now not being invoked (changes not showing on the emulator) but when I put a breakpoint on line 64 of SchedulePage.xaml.cs, and hit save which invokes hot reload, it crashes with the same exception.

image

Sorry it's just a quick test of my existing code so it's quite messy. Let me know if you need something from me.

Thanks again!

echolumaque avatar Sep 06 '23 19:09 echolumaque

Having the same issue, using MAUI Blazor recently updated to net8 - starting the App in Android Emulatur, doing any change in a C# markup page, kills the process. This means i can't use hot reload at all right now, which is causing a huge loss in productivity. We are considering moving to Flutter.

[libc] Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8 in tid 24033 (Debugger agent), pid 24011

adb logcat:

01-13 10:32:44.363 24190 24190 F DEBUG   : pid: 24011, tid: 24033, name: Debugger agent  >>> com.hitchapp.hitch <<<
01-13 10:32:44.363 24190 24190 F DEBUG   : uid: 10182
01-13 10:32:44.363 24190 24190 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000008
01-13 10:32:44.363 24190 24190 F DEBUG   : Cause: null pointer dereference
01-13 10:32:44.363 24190 24190 F DEBUG   :     rax 0000000000000000  rbx 0000717409af15d0  rcx 0000000000000000  rdx 00007173565fb700
01-13 10:32:44.363 24190 24190 F DEBUG   :     r8  0000000000000000  r9  0000000000000000  r10 0000000000000000  r11 0000000000000000
01-13 10:32:44.363 24190 24190 F DEBUG   :     r12 0000000000000001  r13 00007175ca226950  r14 0000000000000000  r15 000071743a80b6a0
01-13 10:32:44.363 24190 24190 F DEBUG   :     rdi 0000000000000000  rsi 000000000000032b
01-13 10:32:44.363 24190 24190 F DEBUG   :     rbp 00007175ca226e70  rsp 00007173565fb700  rip 000071735f486eb8
01-13 10:32:44.363 24190 24190 F DEBUG   : 9 total frames
01-13 10:32:44.363 24190 24190 F DEBUG   : backtrace:
01-13 10:32:44.363 24190 24190 F DEBUG   :       #00 pc 0000000000028eb8  /data/app/~~PGwFnlAQsKQkP732ldX6dQ==/com.hitchapp.hitch-hnyM96vaWAcTUKeaEALw2A==/lib/x86_64/libmono-component-debugger.so (BuildId: 1c74febae626d008490d4a981f019b38025930af)
01-13 10:32:44.363 24190 24190 F DEBUG   :       #01 pc 0000000000028995  /data/app/~~PGwFnlAQsKQkP732ldX6dQ==/com.hitchapp.hitch-hnyM96vaWAcTUKeaEALw2A==/lib/x86_64/libmono-component-debugger.so (BuildId: 1c74febae626d008490d4a981f019b38025930af)
01-13 10:32:44.363 24190 24190 F DEBUG   :       #02 pc 0000000000030cdc  /data/app/~~PGwFnlAQsKQkP732ldX6dQ==/com.hitchapp.hitch-hnyM96vaWAcTUKeaEALw2A==/lib/x86_64/libmono-component-debugger.so (BuildId: 1c74febae626d008490d4a981f019b38025930af)
01-13 10:32:44.363 24190 24190 F DEBUG   :       #03 pc 000000000001ba59  /data/app/~~PGwFnlAQsKQkP732ldX6dQ==/com.hitchapp.hitch-hnyM96vaWAcTUKeaEALw2A==/lib/x86_64/libmono-component-debugger.so (BuildId: 1c74febae626d008490d4a981f019b38025930af)
01-13 10:32:44.363 24190 24190 F DEBUG   :       #04 pc 000000000002271f  /data/app/~~PGwFnlAQsKQkP732ldX6dQ==/com.hitchapp.hitch-hnyM96vaWAcTUKeaEALw2A==/lib/x86_64/libmono-component-debugger.so (BuildId: 1c74febae626d008490d4a981f019b38025930af)
01-13 10:32:44.363 24190 24190 F DEBUG   :       #05 pc 0000000000024fae  /data/app/~~PGwFnlAQsKQkP732ldX6dQ==/com.hitchapp.hitch-hnyM96vaWAcTUKeaEALw2A==/lib/x86_64/libmono-component-debugger.so (BuildId: 1c74febae626d008490d4a981f019b38025930af)
01-13 10:32:44.363 24190 24190 F DEBUG   :       #06 pc 00000000002c06ab  /data/app/~~PGwFnlAQsKQkP732ldX6dQ==/com.hitchapp.hitch-hnyM96vaWAcTUKeaEALw2A==/lib/x86_64/libmonosgen-2.0.so (BuildId: 15beacb4f7391331d2f844e5b3ac0cac28355d90)
01-13 10:32:44.363 24190 24190 F DEBUG   :       #07 pc 00000000000cd06a  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+58) (BuildId: fa337969c798946280caa45e2d71a2e7)
01-13 10:32:44.363 24190 24190 F DEBUG   :       #08 pc 0000000000062d88  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+56) (BuildId: fa337969c798946280caa45e2d71a2e7)

DominikMarin avatar Jan 13 '24 09:01 DominikMarin

Could you please share with us an app that reproduces it?

thaystg avatar Jan 15 '24 17:01 thaystg

Hi @echolumaque. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Feb 28 '24 07:02 ghost

I could not repro this issue on 17.10.0 Preview 1.0 with android emulator 33. H

RoiChen001 avatar Feb 28 '24 07:02 RoiChen001