Crash when debugging in Android Emulator with architecture ARM
See original GitHub issue#385 redux
1. Create a Fabulous app as usual and open the solution
2. Switch to the Android project
3-6. Create an armeabi-v7a emulator
7. Restart Adb server to make new emulator show up
8. Debug the project with F5
9. Accept the recommendation for x86 dialog
10. Wait for initial load
11. Fix Emulator:glTexImage2D: got err pre :(
errors with
11.1. More>Settings>Advanced>OpenGL ES Renderer: SwiftShader
11.2. More>Settings>Advanced>OpenGL ES API level: Renderer Maximum
12. Restart emulator, re-debug
13. Wait
14. Open Debug log
Screenshots
2. (Visual Studio 2019 is opened)
3.
4.
5.
6.
7.
9.
11.
Build log to reference while waiting
1>Waiting for runtime checks to complete
Detecting installed packages
Detecting installed packages...
Removing old runtime
Removing old runtime: Mono.Android.DebugRuntime...
Installing shared runtime
Target device is armeabi-v7a.
Installing the Mono shared runtime (debug - 1560182289)...
Installing platform framework
Installing the API 28 platform framework..
Runtime checks completed
1>Starting deployment to arm_v7a ...
1>Deploying to arm_v7a ...
1>Build started.
1>Project "ARMNullRef.Android.fsproj" (Install target(s)):
1>Project "ARMNullRef.fsproj" (GetTargetFrameworks target(s)):
1>Done building project "ARMNullRef.fsproj".
1>Project "ARMNullRef.fsproj" (GetTargetPath target(s)):
1>Done building project "ARMNullRef.fsproj".
1>No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
1>C:\Program Files\Android\jdk\microsoft_dist_openjdk_1.8.0.25\bin\keytool.exe -list -alias androiddebugkey -storepass android -keypass android -keystore "C:\Users\hadri\AppData\Local\Xamarin\Mono for Android\debug.keystore"
1>C:\Program Files (x86)\Android\android-sdk\build-tools\28.0.3\zipalign.exe -p 4 "C:\Users\hadri\source\repos\ARMNullRef\ARMNullRef.Android\obj\Debug\android\bin\com.companyname.apk" "bin\Debug\\com.companyname-Signed.apk"
1>C:\Program Files\Android\jdk\microsoft_dist_openjdk_1.8.0.25\bin\java.exe -jar "C:\Program Files (x86)\Android\android-sdk\build-tools\28.0.3\lib\apksigner.jar" sign --ks "C:\Users\hadri\AppData\Local\Xamarin\Mono for Android\debug.keystore" --ks-pass pass:android --ks-key-alias androiddebugkey --key-pass pass:android --min-sdk-version 21 --max-sdk-version 28 C:\Users\hadri\source\repos\ARMNullRef\ARMNullRef.Android\bin\Debug\com.companyname-Signed.apk
1>Done building project "ARMNullRef.Android.fsproj".
1>Build succeeded.
1>Deployment was successful to arm_v7a.
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========
Debug log
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/ARMNullRef.dll
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Fabulous.Core.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Fabulous.CustomControls.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Fabulous.LiveUpdate.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/FormsViewGroup.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/FSharp.Core.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Newtonsoft.Json.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Arch.Core.Common.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Arch.Core.Runtime.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Arch.Lifecycle.Common.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Arch.Lifecycle.LiveData.Core.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Arch.Lifecycle.Runtime.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Arch.Lifecycle.ViewModel.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.FSharp.ResourceProvider.Runtime.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.Animated.Vector.Drawable.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.Annotations.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.AsyncLayoutInflater.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.Collections.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.Compat.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.CoordinaterLayout.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.Core.UI.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.Core.Utils.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.CursorAdapter.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.CustomTabs.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.CustomView.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.Design.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.DocumentFile.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.DrawerLayout.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.Fragment.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.Interpolator.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.Loader.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.LocalBroadcastManager.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.Media.Compat.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.Print.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.SlidingPaneLayout.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.SwipeRefreshLayout.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.Transition.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.v4.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.v7.AppCompat.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.v7.CardView.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.v7.MediaRouter.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.v7.Palette.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.v7.RecyclerView.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.Vector.Drawable.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.VersionedParcelable.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Android.Support.ViewPager.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Essentials.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Forms.Core.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Forms.Platform.Android.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Forms.Platform.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/Xamarin.Forms.Xaml.dll [External]
Loaded assembly: Mono.Android.dll [External]
Loaded assembly: Java.Interop.dll [External]
Loaded assembly: System.dll [External]
Loaded assembly: Mono.Security.dll [External]
Loaded assembly: System.Core.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/com.companyname/files/.__override__/ARMNullRef.Android.dll
Loaded assembly: netstandard.dll [External]
Loaded assembly: System.Runtime.dll [External]
Loaded assembly: System.Diagnostics.Debug.dll [External]
Loaded assembly: System.Resources.ResourceManager.dll [External]
Loaded assembly: System.Globalization.dll [External]
Loaded assembly: System.Collections.Concurrent.dll [External]
Loaded assembly: System.Collections.dll [External]
Loaded assembly: System.Reflection.dll [External]
Loaded assembly: System.Reflection.Extensions.dll [External]
Loaded assembly: System.Runtime.Extensions.dll [External]
Loaded assembly: System.Linq.dll [External]
=================================================================
Native Crash Reporting
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
=================================================================
Basic Fault Adddress Reporting
=================================================================
Memory around native instruction pointer (0x9391ffd0):0x9391ffc0 50 8d 2e 96 5c 8d 2e 96 68 8d 2e 96 74 8d 2e 96 P...\...h...t...
0x9391ffd0 18 ea e6 a4 1b 00 00 00 00 bf ce af 28 4b 29 96 ............(K).
0x9391ffe0 b8 1f 0a a5 13 04 00 00 00 01 10 00 00 00 00 00 ................
0x9391fff0 00 00 00 00
00 80 2e 96 0c 80 2e 96 18 80 2e 96 ................
No native Android stacktrace (see debuggerd output).
=================================================================
Managed Stacktrace:
=================================================================
=================================================================
Issue Analytics
- State:
- Created 4 years ago
- Comments:23 (8 by maintainers)
Top Results From Across the Web
Crash when debugging in Android Emulator with ...
The emulator is too slow for the debugger of Visual Studio 2019 (Windows), the debug times out and the app is killed before...
Read more >Troubleshoot known issues with Android Emulator
To avoid crashes and hangs due to lack of free disk space, the emulator checks for sufficient free disk space on startup and...
Read more >Android emulator crashes; "emulator-arm.exe stopped ...
Emulator crashes because it fails to allocate memory. Follow these steps to resolve the problem. Go to Window->Android Virtual Device ...
Read more >Android IL2CPP Build crashes while select both arm64 and ...
Only select one of them(arm64 or armv7 single) would not crash, but when I check both of them, the app would crash before...
Read more >My Android all runs on emulator but crashes on the device, ...
Normally, a CPU with VT (hardware virtualization), 4GB RAM let a emulator do something simple but to play games you need higher specs....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is the Stacktrace vor the v3 repo.
@Happypig375 I hope good news for you: your initial problem with debugging shouldn’t exist anylonger. I set up a new
SqueakyApp
, deployed and run it in debug on a armeabi-v7a device. I use VS2019 16.1.6 - the newest version. With the versions before I had the same problem as you.Will test this, too.
EDIT: The repro v3 gives the error indeed. I think I know why the v3 is broken right now but I will need to investigate on this! Will keep writing updates in this issue.