{"action":"created","issue":{"url":"https://api.github.com/repos/xamarin/xamarin-android/issues/1842","repository_url":"https://api.github.com/repos/xamarin/xamarin-android","labels_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/1842/labels{/name}","comments_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/1842/comments","events_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/1842/events","html_url":"https://github.com/xamarin/xamarin-android/issues/1842","id":333282366,"node_id":"MDU6SXNzdWUzMzMyODIzNjY=","number":1842,"title":"AOT application doesn't launch on x86_64 emulator","user":{"login":"cosminstirbu","id":7135690,"node_id":"MDQ6VXNlcjcxMzU2OTA=","avatar_url":"https://avatars1.githubusercontent.com/u/7135690?v=4","gravatar_id":"","url":"https://api.github.com/users/cosminstirbu","html_url":"https://github.com/cosminstirbu","followers_url":"https://api.github.com/users/cosminstirbu/followers","following_url":"https://api.github.com/users/cosminstirbu/following{/other_user}","gists_url":"https://api.github.com/users/cosminstirbu/gists{/gist_id}","starred_url":"https://api.github.com/users/cosminstirbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosminstirbu/subscriptions","organizations_url":"https://api.github.com/users/cosminstirbu/orgs","repos_url":"https://api.github.com/users/cosminstirbu/repos","events_url":"https://api.github.com/users/cosminstirbu/events{/privacy}","received_events_url":"https://api.github.com/users/cosminstirbu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-18T13:59:55Z","updated_at":"2018-06-18T14:00:33Z","closed_at":null,"author_association":"NONE","body":"### Steps to Reproduce\r\n\r\n1. Create a sample Xamarin.Android application\r\n2. For Release configuration Enable AOT, LLVM Optimizing compiler and check only armeabi-v7a and x86_64 architecture\r\n3. Create Release .apk\r\n4. Drag and drop on a x86_64 emulator\r\n5. Launch the application and see it doesn't launch\r\n\r\n### Version Information\r\n\r\n```\r\nVisual Studio Enterprise 2017 for Mac\r\nVersion 7.5.2 (build 40)\r\nInstallation UUID: 1ede8c5d-9d75-419f-82a5-a4e553d2c07f\r\nRuntime:\r\n\tMono 5.10.1.57 (2017-12/ea8a24b1bbf) (64-bit)\r\n\tGTK+ 2.24.23 (Raleigh theme)\r\n\tXamarin.Mac 4.4.1.178 (master / eeaeb7e6)\r\n\r\n\tPackage version: 510010057\r\n\r\nNuGet\r\nVersion: 4.3.1.4445\r\n\r\n.NET Core\r\nRuntime: /usr/local/share/dotnet/dotnet\r\nRuntime Versions:\r\n\t2.0.5\r\n\t2.0.0\r\n\t1.1.2\r\n\t1.0.5\r\nSDK: /usr/local/share/dotnet/sdk/2.1.4/Sdks\r\nSDK Versions:\r\n\t2.1.4\r\n\t2.0.0\r\n\t1.0.4\r\nMSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.10.1/lib/mono/msbuild/15.0/bin/Sdks\r\n\r\nXamarin.Profiler\r\nVersion: 1.6.2\r\nLocation: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler\r\n\r\nXamarin.Android\r\nVersion: 8.3.3.2 (Visual Studio Enterprise)\r\nAndroid SDK: /Users/cosminstirbu/Documents/sdk\r\n\tSupported Android versions:\r\n\t\t5.1 (API level 22)\r\n\t\t6.0 (API level 23)\r\n\t\t7.0 (API level 24)\r\n\t\t7.1 (API level 25)\r\n\t\t8.0 (API level 26)\r\n\t\t8.1 (API level 27)\r\n\r\nSDK Tools Version: 26.1.1\r\nSDK Platform Tools Version: 27.0.1\r\nSDK Build Tools Version: 27.0.3\r\n\r\nJava SDK: /usr\r\njava version \"1.8.0_45\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_45-b14)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)\r\n\r\nAndroid Designer EPL code available here:\r\nhttps://github.com/xamarin/AndroidDesigner.EPL\r\n\r\nApple Developer Tools\r\nXcode 9.4 (14160)\r\nBuild 9F1027a\r\n\r\nXamarin.Mac\r\nVersion: 4.4.1.193 (Visual Studio Enterprise)\r\n\r\nXamarin.iOS\r\nVersion: 11.12.0.4 (Visual Studio Enterprise)\r\nHash: 64fece5f\r\nBranch: d15-7\r\nBuild date: 2018-05-29 20:00:44-0400\r\n\r\nXamarin Inspector\r\nVersion: 1.4.0\r\nHash: b3f92f9\r\nBranch: master\r\nBuild date: Fri, 19 Jan 2018 22:00:34 GMT\r\nClient compatibility: 1\r\n\r\nBuild Information\r\nRelease ID: 705020040\r\nGit revision: cfe2fc0566bc4db990242959de40505a13f58352\r\nBuild date: 2018-05-30 11:24:18-04\r\nXamarin addins: 3ac7413ef51a88e06367313c27aec8f7292752a6\r\nBuild lane: monodevelop-lion-d15-7\r\n\r\nOperating System\r\nMac OS X 10.13.5\r\nDarwin 17.6.0 Darwin Kernel Version 17.6.0\r\n    Tue May  8 15:22:16 PDT 2018\r\n    root:xnu-4570.61.1~1/RELEASE_X86_64 x86_64\r\n\r\nEnabled user installed addins\r\nAddinMaker 1.4.2\r\nFileNesting 0.1.1\r\nMacaque Tips 0.1.2\r\nStyleCop Support 1.1.0.0\r\nxUnit.NET 2 testing framework support 0.7.5\r\nStraight8's SpecFlow Integration 1.11.2.0\r\n```\r\n\r\n**NDK Version 17.0.4754217**\r\n\r\n### Log File\r\n\r\n```\r\n06-18 16:32:26.742 1699-1723/system_process I/ActivityManager: Start proc 8249:com.myapp/u0a86 for activity com.myapp/md56ddbe9b70b1931e00ea94b862e0da07e.SplashActivity\r\n06-18 16:32:26.838 8249-8249/? W/monodroid: Trying to load sgen from: /data/app/com.bca.buyerapp.uat-1/lib/x86_64/libmonosgen-2.0.so\r\n06-18 16:32:26.884 8249-8249/? W/monodroid-gc: GREF GC Threshold: 46080\r\n06-18 16:32:26.885 8249-8249/? W/monodroid: Calling into managed runtime init\r\n06-18 16:32:26.935 8249-8249/? E/mono: Unhandled Exception:\r\n    System.TypeInitializationException: The type initializer for 'Java.Interop.JniRuntime' threw an exception. ---> System.ArgumentException: Type provided must be an Enum.\r\n    Parameter name: enumType\r\n      at System.RuntimeType.GetEnumUnderlyingType () <0x7c1f99569e30 + 0x00049> in <31333f1e9cc74ec2914f4912ea8af6e7>:0 \r\n      at System.Enum.GetUnderlyingType (System.Type enumType) <0x7c1f9954cb80 + 0x0000e> in <31333f1e9cc74ec2914f4912ea8af6e7>:0 \r\n      at System.Collections.Generic.EqualityComparer`1[T].CreateComparer () [0x000e1] in <31333f1e9cc74ec2914f4912ea8af6e7>:0 \r\n      at System.Collections.Generic.EqualityComparer`1[T].get_Default () [0x0000b] in <31333f1e9cc74ec2914f4912ea8af6e7>:0 \r\n      at System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue]..ctor (System.Int32 concurrencyLevel, System.Int32 capacity, System.Boolean growLockArray, System.Collections.Generic.IEqualityComparer`1[T] comparer) [0x00072] in <31333f1e9cc74ec2914f4912ea8af6e7>:0 \r\n      at System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue]..ctor () [0x00006] in <31333f1e9cc74ec2914f4912ea8af6e7>:0 \r\n      at Java.Interop.JniRuntime..cctor () <0x7c1f994540b0 + 0x0001c> in <aa533aa4af8445f3b8f28f77ce0333e9>:0 \r\n       --- End of inner exception stack trace ---\r\n      at Android.Runtime.AndroidRuntime..ctor (System.IntPtr jnienv, System.IntPtr vm, System.Boolean allocNewObjectSupported, System.IntPtr classLoader, System.IntPtr classLoader_loadClass) <0x7c1f989158e0 + 0x00054> in <2b050e7f433043c2acff8fe2c18b5767>:0 \r\n      at Android.Runtime.JNIEnv.Initialize (Android.Runtime.JnienvInitializeArgs* args) <0x7c1f989222c0 + 0x003fc> in <2b050e7f433043c2acff8fe2c18b5767>:0 \r\n06-18 16:32:26.935 8249-8249/? E/mono-rt: [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'Java.Interop.JniRuntime' threw an exception. ---> System.ArgumentException: Type provided must be an Enum.\r\n    Parameter name: enumType\r\n      at System.RuntimeType.GetEnumUnderlyingType () <0x7c1f99569e30 + 0x00049> in <31333f1e9cc74ec2914f4912ea8af6e7>:0 \r\n      at System.Enum.GetUnderlyingType (System.Type enumType) <0x7c1f9954cb80 + 0x0000e> in <31333f1e9cc74ec2914f4912ea8af6e7>:0 \r\n      at System.Collections.Generic.EqualityComparer`1[T].CreateComparer () [0x000e1] in <31333f1e9cc74ec2914f4912ea8af6e7>:0 \r\n      at System.Collections.Generic.EqualityComparer`1[T].get_Default () [0x0000b] in <31333f1e9cc74ec2914f4912ea8af6e7>:0 \r\n      at System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue]..ctor (System.Int32 concurrencyLevel, System.Int32 capacity, System.Boolean growLockArray, System.Collections.Generic.IEqualityComparer`1[T] comparer) [0x00072] in <31333f1e9cc74ec2914f4912ea8af6e7>:0 \r\n      at System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue]..ctor () [0x00006] in <31333f1e9cc74ec2914f4912ea8af6e7>:0 \r\n      at Java.Interop.JniRuntime..cctor () <0x7c1f994540b0 + 0x0001c> in <aa533aa4af8445f3b8f28f77ce0333e9>:0 \r\n       --- End of inner exception stack trace ---\r\n      at Android.Runtime.AndroidRuntime..ctor (System.IntPtr jnienv, System.IntPtr vm, System.Boolean allocNewObjectSupported, System.IntPtr classLoader, System.IntPtr classLoader_loadClass) <0x7c1f989158e0 + 0x00054> in <2b050e7f433043c2acff8fe2c18b5767>:0 \r\n      at Android.Runtime.JNIEnv.Initialize (Android.Runtime.JnienvInitializeArgs* args) <0x7c1f989222c0 + 0x003fc> in <2b050e7f433043c2acff8fe2c18b5767>:0 \r\n06-18 16:32:26.986 1402-1402/? I/Zygote: Process 8249 exited cleanly (1)\r\n06-18 16:32:26.989 1699-1798/system_process I/ActivityManager: Process com.myapp (pid 8249) has died\r\n06-18 16:32:26.989 1699-1798/system_process D/ActivityManager: cleanUpApplicationRecord -- 8249\r\n06-18 16:32:26.996 8266-8266/? W/art: Unexpected CPU variant for X86 using defaults: x86_64\r\n```"},"comment":{"url":"https://api.github.com/repos/xamarin/xamarin-android/issues/comments/398064005","html_url":"https://github.com/xamarin/xamarin-android/issues/1842#issuecomment-398064005","issue_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/1842","id":398064005,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODA2NDAwNQ==","user":{"login":"cosminstirbu","id":7135690,"node_id":"MDQ6VXNlcjcxMzU2OTA=","avatar_url":"https://avatars1.githubusercontent.com/u/7135690?v=4","gravatar_id":"","url":"https://api.github.com/users/cosminstirbu","html_url":"https://github.com/cosminstirbu","followers_url":"https://api.github.com/users/cosminstirbu/followers","following_url":"https://api.github.com/users/cosminstirbu/following{/other_user}","gists_url":"https://api.github.com/users/cosminstirbu/gists{/gist_id}","starred_url":"https://api.github.com/users/cosminstirbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosminstirbu/subscriptions","organizations_url":"https://api.github.com/users/cosminstirbu/orgs","repos_url":"https://api.github.com/users/cosminstirbu/repos","events_url":"https://api.github.com/users/cosminstirbu/events{/privacy}","received_events_url":"https://api.github.com/users/cosminstirbu/received_events","type":"User","site_admin":false},"created_at":"2018-06-18T14:00:33Z","updated_at":"2018-06-18T14:00:33Z","author_association":"NONE","body":"If I enable x86 as well and install it on a x86 emulator, then it works."}}
{"actor":{"display_login":"cosminstirbu"}}