Bug 36739 - No implementation found error during runtime
Summary: No implementation found error during runtime
Status: REOPENED
Alias: None
Product: Android
Classification: Xamarin
Component: General (show other bugs)
Version: 6.0.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2015-12-09 04:31 UTC by Ryan Alford
Modified: 2016-04-14 19:53 UTC (History)
4 users (show)

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


Attachments
Test app (31.01 KB, application/zip)
2015-12-09 04:31 UTC, Ryan Alford
Details

Description Ryan Alford 2015-12-09 04:31:50 UTC
Created attachment 14197 [details]
Test app

I am building an application and I've been running the app on Genymotion simulators for about a month without any problems. I've also run the app on a Honeywell rugged device that's running Android 4.0.1, and that ran fine. I also tested on a Galaxy Note 8 running Android 4.4.2, and the app runs fine. However, if I try to run the app on my phone(HTC One M8 running Android 5.0.1), it crashes immediately during startup. It also crashes on an HTC One M9 running 5.0.1, and a Samsung phone(not sure the model or android version). 

I've been searching Google for a few hours and haven't been able to find much of an actual answer.

I have created a test project that exhibits the issue(added as an attachment). And by test project, I mean, File --> New --> Solution --> Android Application --> OK, then run the app.

Below is the stack trace I get in Xamarin Studio's Application Output window when the app crashes and the information from logcat.

Any help would be greatly appreciated.

=========================================
=========================================
=========== Crash Information ===========
=========================================
=========================================
Forwarding debugger port 8815
Detecting existing process
[art] Late-enabling -Xcheck:jni
[art] VMHOOK: rlim_cur : 0 pid:6811
[art] No implementation found for void mono.android.Runtime.register(java.lang.String, java.lang.Class, java.lang.String) (tried Java_mono_android_Runtime_register and Java_mono_android_Runtime_register__Ljava_lang_String_2Ljava_lang_Class_2Ljava_lang_String_2)
[AndroidRuntime] FATAL EXCEPTION: main
[AndroidRuntime] Process: testapp.testapp, PID: 6811
[AndroidRuntime] java.lang.UnsatisfiedLinkError: No implementation found for void mono.android.Runtime.register(java.lang.String, java.lang.Class, java.lang.String) (tried Java_mono_android_Runtime_register and Java_mono_android_Runtime_register__Ljava_lang_String_2Ljava_lang_Class_2Ljava_lang_String_2)
[AndroidRuntime] at mono.android.Runtime.register(Native Method)
[AndroidRuntime] at md5108e7d03129c71cd1961de8f4b9f0a5c.MainActivity.<clinit>(MainActivity.java:14)
[AndroidRuntime] at java.lang.reflect.Constructor.newInstance(Native Method)
[AndroidRuntime] at java.lang.Class.newInstance(Class.java:1572)
[AndroidRuntime] at android.app.Instrumentation.newActivity(Instrumentation.java:1083)
[AndroidRuntime] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2312)
[AndroidRuntime] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2474)
[AndroidRuntime] at android.app.ActivityThread.access$800(ActivityThread.java:144)
[AndroidRuntime] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1359)
[AndroidRuntime] at android.os.Handler.dispatchMessage(Handler.java:102)
[AndroidRuntime] at android.os.Looper.loop(Looper.java:155)
[AndroidRuntime] at android.app.ActivityThread.main(ActivityThread.java:5696)
[AndroidRuntime] at java.lang.reflect.Method.invoke(Native Method)
[AndroidRuntime] at java.lang.reflect.Method.invoke(Method.java:372)
[AndroidRuntime] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)
[AndroidRuntime] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)


=========================================
=========================================
=========== Logcat Information ==========
=========================================
=========================================

I/ActivityManager(  956): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=testapp.testapp/md5108e7d03129c71cd1961de8f4b9f0a5c.MainActivity} from uid 2000 on display 0

I/AnimationUtil(  956): isHTCRecent(testapp/Recent screens.)/0

D/PMS     (  956): acquireHCC(2debfc7c): CPU_MIN_NUM ActivityManager-MultiCore-Num 0x8000 956 1000 null

D/PMS     (  956): acquireHCC(38507905): CPU_MIN_FREQ ActivityManager-MultiCore-Freq 0x2000 956 1000 null

I/FeedHostManager( 1512): [onPause]

E/MP-Decision( 2321): Update arg "0 190 240 240".

E/MP-Decision( 2321): Update arg "0 75 400 400".

I/FeedProviderManager( 1512): onPause

I/SocialFeedProvider( 1512): +onPause

I/FeedHostManager( 1512): [onLeaveFeedMode] instance: com.htc.launcher.feeds.FeedHostManager@205cc9c4

I/SocialFeedProvider( 1512): -onPause

E/cutils-trace(12776): Error opening trace file: No such file or directory (2)

I/ContextualWidget( 1512): onPause

I/ContextualWidget( 1512): notifyWidgetDeactive

W/HtcSystemUPManager(  956): HtcSystemUPHandler The policy is disabled. AppId: activity_history, category: launch

I/art     (12807): Late-enabling -Xcheck:jni

I/art     (12807): VMHOOK: rlim_cur : 0 pid:12807

I/ActivityManager(  956): Start proc testapp.testapp for activity testapp.testapp/md5108e7d03129c71cd1961de8f4b9f0a5c.MainActivity: pid=12807 uid=10485 gids={50485, 9997, 3003, 1028} abi=armeabi-v7a

E/art     (12807): No implementation found for void mono.android.Runtime.register(java.lang.String, java.lang.Class, java.lang.String) (tried Java_mono_android_Runtime_register and Java_mono_android_Runtime_register__Ljava_lang_String_2Ljava_lang_Class_2Ljava_lang_String_2)

E/AndroidRuntime(12807): FATAL EXCEPTION: main

E/AndroidRuntime(12807): Process: testapp.testapp, PID: 12807

E/AndroidRuntime(12807): java.lang.UnsatisfiedLinkError: No implementation found for void mono.android.Runtime.register(java.lang.String, java.lang.Class, java.lang.String) (tried Java_mono_android_Runtime_register and Java_mono_android_Runtime_register__Ljava_lang_String_2Ljava_lang_Class_2Ljava_lang_String_2)

E/AndroidRuntime(12807): at mono.android.Runtime.register(Native Method)

E/AndroidRuntime(12807): at md5108e7d03129c71cd1961de8f4b9f0a5c.MainActivity.<clinit>(MainActivity.java:14)

E/AndroidRuntime(12807): at java.lang.reflect.Constructor.newInstance(Native Method)

E/AndroidRuntime(12807): at java.lang.Class.newInstance(Class.java:1572)

E/AndroidRuntime(12807): at android.app.Instrumentation.newActivity(Instrumentation.java:1083)

E/AndroidRuntime(12807): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2312)

E/AndroidRuntime(12807): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2474)

E/AndroidRuntime(12807): at android.app.ActivityThread.access$800(ActivityThread.java:144)

E/AndroidRuntime(12807): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1359)

E/AndroidRuntime(12807): at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime(12807): at android.os.Looper.loop(Looper.java:155)

E/AndroidRuntime(12807): at android.app.ActivityThread.main(ActivityThread.java:5696)

E/AndroidRuntime(12807): at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime(12807): at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime(12807): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)

E/AndroidRuntime(12807): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)

E/ActivityManager(  956): App crashed! Process: testapp.testapp

W/ActivityManager(  956):   Force finishing activity testapp.testapp/md5108e7d03129c71cd1961de8f4b9f0a5c.MainActivity




=========================================
=========================================
========== Xamarin Information ==========
=========================================
=========================================

=== Xamarin Studio ===

Version 5.8.3 (build 1)
Installation UUID: 00048706-b760-47fa-8d13-5150aaab514a
Runtime:
	Mono 4.2.1 (explicit/6dd2d0d)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402010102

=== Xamarin.Android ===

Version: 6.0.0.34 (Business Edition)
Android SDK: /Users/ryan/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
		5.0   (API level 21)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Apple Developer Tools ===

Xcode 6.2 (6776)
Build 6C131e

=== Xamarin.iOS ===

Version: 9.2.1.54 (Business Edition)
Hash: eb4c1ef
Branch: master
Build date: 2015-12-01 02:12:30-0500

=== Xamarin.Mac ===

Not Installed

=== Build Information ===

Release ID: 508030001
Git revision: 6e8e725e0d689351901c2c70453bfa4ea25e293b
Build date: 2015-04-06 20:31:47-04
Xamarin addins: 051cd5f8c1b5dbfc87eaef80a74aec03f34c60a8

=== Operating System ===

Mac OS X 10.9.5
Darwin new-users-mbp 13.4.0 Darwin Kernel Version 13.4.0
    Wed Mar 18 16:20:14 PDT 2015
    root:xnu-2422.115.14~1/RELEASE_X86_64 x86_64
Comment 1 Ryan Alford 2015-12-09 16:49:28 UTC
I've completely updated to the latest Xamarin 4 bits, and this is still an issue. New Xamarin information...


=== Xamarin Studio ===

Version 5.10.1 (build 6)
Installation UUID: 00048706-b760-47fa-8d13-5150aaab514a
Runtime:
	Mono 4.2.1 (explicit/6dd2d0d)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402010102

=== Xamarin.Profiler ===

Version: 0.0.0.0
Location: /Applications/XamarinProfiler.Mac.app/Contents/MacOS/XamarinProfiler.Mac

=== Apple Developer Tools ===

Xcode 6.2 (6776)
Build 6C131e

=== Xamarin.iOS ===

Version: 9.2.1.54 (Business Edition)
Hash: eb4c1ef
Branch: master
Build date: 2015-12-01 02:12:30-0500

=== Xamarin.Android ===

Version: 6.0.0.34 (Business Edition)
Android SDK: /Users/ryan/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
		5.0   (API level 21)
		5.1   (API level 22)
		6.0   (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.0.1
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468-11M4833)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)

=== Xamarin Android Player ===

Version: 0.4.4
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Not Installed

=== Build Information ===

Release ID: 510010006
Git revision: 0b60eecdb531933734519c13257d16a780274aab
Build date: 2015-12-04 20:28:20-05
Xamarin addins: 9876fd7c9837977178411ec7375b4352c0a0d6af
Build lane: monodevelop-lion-cycle6-baseline

=== Operating System ===

Mac OS X 10.11.2
Darwin New-Users-MBP 15.2.0 Darwin Kernel Version 15.2.0
    Fri Nov 13 19:56:56 PST 2015
    root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64
Comment 2 Peter Collins 2015-12-21 17:17:42 UTC
I didn't have any luck reproducing this on an HTC One M9 running Android 5.1, or an HTC One M7 w/ Android 4.4.3.

Does this issue only reproduce for you in Debug deployments, or does it affect any and all deployment attempts to those devices? Also, could you provide details of the Samsung model that is affected if possible?
Comment 4 Peter Collins 2016-04-14 19:53:56 UTC
I tried the Steps #6, #7, and #8 in sequence a few times using the attached project (which is just a simple hello world app) and was unable to reproduce with the following devices:
> Nexus 10 v4.4
> Nexus 6 v6.0

### Environment ###
Windows 10x64
VS 2015 Pro
Cycle7 - Xamarin 4.1.0.313 (XA 6.1.0.37)
C6SR3 - Xamarin 4.0.3.214 (XA 6.0.3.5)

Note You need to log in before you can comment on or make changes to this bug.