Bug 30630 - arm64-v8a ABI bugged in release mode
Summary: arm64-v8a ABI bugged in release mode
Status: RESOLVED DUPLICATE of bug 28995
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 5.1
Hardware: All All
: High normal
Target Milestone: 5.1.4 (C5SR2)
Assignee: João Matos
URL:
Depends on:
Blocks:
 
Reported: 2015-06-01 09:23 UTC by Romain Flechner
Modified: 2015-10-26 18:26 UTC (History)
8 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
A small project reproducing the issue (40.82 KB, application/octet-stream)
2015-06-01 09:23 UTC, Romain Flechner
Details
Apks generated by build in release (6.28 MB, application/octet-stream)
2015-06-02 04:11 UTC, Romain Flechner
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 28995

Description Romain Flechner 2015-06-01 09:23:53 UTC
Created attachment 11402 [details]
A small project reproducing the issue

Hi,


There is a bug when using APK with arm64-v8a ABI.

I checked all ABis in advanced build settings.

My app crashes on a LG G4 with error:

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:913)
... 1 more
Caused by: md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable: System.ExecutionEngineException: SIGILL
at Java.Interop.TypeManager.n_Activate (intptr,intptr,intptr,intptr,intptr,intptr) <0x00267>
at (wrapper dynamic-method) object.7ece24a0-faf5-478c-bae3-27ebf97080b1 (intptr,intptr,intptr,intptr,intptr,intptr) <0x0003f>

at mono.android.TypeManager.n_activate(Native Method)
at mono.android.TypeManager.Activate(TypeManager.java:7)
at md5aab110208ed4bed29cf5863d988cbbbf.SplashScreenActivity.<init>(SplashScreenActivity.java:24)
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.Class.newInstance(Class.java:1606)
at android.app.Instrumentation.newActivity(Instrumentation.java:1066)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2273)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2434)
at android.app.ActivityThread.access$800(ActivityThread.java:162)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5424)
... 4 more


The code in my splash screen is:

var intent = new Intent(this, typeof(MainActivity));
StartActivity(intent);
			
This error doesn't occur while debugging my app.

So I built with one APK per ABI in release mode and I tested the app.
The bug occurs with 'arm64-v8a' apk.

The small attached project is reproducing the bug.
Comment 1 João Matos 2015-06-01 13:21:50 UTC
Cannot repro this under Debug or Release on a Nexus 9 (arm64-v8a ABI).
Comment 2 Romain Flechner 2015-06-01 14:29:39 UTC
The bug occurs on the new's LG model. The G4.
Comment 3 Zoltan Varga 2015-06-01 15:49:21 UTC
What Xamarin.Android version are you using ?
Comment 4 Romain Flechner 2015-06-02 03:53:14 UTC
Xamarin Studio
Version 5.9 (build 431)
Installation UUID: 248b54c3-fc4a-4c53-ac40-3942ca3a6c15
Runtime:
	Microsoft .NET 4.0.30319.34209
	GTK+ 2.24.22 (MS-Windows theme)
	GTK# 2.12.26

Xamarin.Android
Version: 5.1.1 (Business Edition)
Android SDK: C:\Users\romain.flechner\AppData\Local\Android\android-sdk
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)
Java SDK: C:\Program Files\Java\jdk1.7.0_67
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

Xamarin Android Player
Version: 0.2.5
Location: C:\Program Files\Xamarin Android Player\DeviceManager.exe

Build Information
Release ID: 509000431
Git revision: 7560726734fc7267de2fa9abed2509968deefaa8
Build date: 2015-04-17 17:09:09-04
Xamarin addins: 2e772c734ab3148054eae7bf8949f340fdeb5e5e

Operating System
Windows 6.2.9200.0 (64-bit)
Comment 5 Romain Flechner 2015-06-02 04:11:21 UTC
Created attachment 11421 [details]
Apks generated by build in release

Tested on LG G4 (CPU snapdragon 808 )

The bug occurs with arm64-v8a apk but not with others.
Comment 6 Peter Collins 2015-06-04 15:40:04 UTC
I believe this is a duplicate of Bug #28995. A fix should be available in the next service release of XA (5.1.4) which is currently slated for an initial Alpha release within the next couple of weeks.

*** This bug has been marked as a duplicate of bug 28995 ***
Comment 8 Romain Flechner 2015-06-05 03:43:35 UTC
Great, I will check immedialtly.
Thanks