Bug 4334 - Cannot deploy application using x86 to x86 emulator
Summary: Cannot deploy application using x86 to x86 emulator
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: 4.1.x
Hardware: Macintosh Mac OS
: --- blocker
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-04-08 09:04 UTC by Chris Hardy [MSFT]
Modified: 2014-03-31 04:16 UTC (History)
4 users (show)

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

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:

Description Chris Hardy [MSFT] 2012-04-08 09:04:02 UTC
When trying to deploy an application to the Intel x86 emulator with the x86 ABI selected, I get the following error:

D/AndroidRuntime( 1373): Shutting down VM
E/AndroidRuntime( 1373): FATAL EXCEPTION: main
E/AndroidRuntime( 1373): java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1311]:   803 cannot locate 'connect'...
E/AndroidRuntime( 1373): 
E/AndroidRuntime( 1373): 	at java.lang.Runtime.loadLibrary(Runtime.java:434)
E/AndroidRuntime( 1373): 	at java.lang.System.loadLibrary(System.java:554)
E/AndroidRuntime( 1373): 	at mono.MonoPackageManager.LoadApplication(MonoPackageManager.java:24)
E/AndroidRuntime( 1373): 	at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:25)
E/AndroidRuntime( 1373): 	at android.app.ActivityThread.installProvider(ActivityThread.java:3554)
E/AndroidRuntime( 1373): 	at android.app.ActivityThread.installContentProviders(ActivityThread.java:3309)
E/AndroidRuntime( 1373): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3265)
E/AndroidRuntime( 1373): 	at android.app.ActivityThread.access$2200(ActivityThread.java:117)
E/AndroidRuntime( 1373): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:969)
E/AndroidRuntime( 1373): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1373): 	at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 1373): 	at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime( 1373): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1373): 	at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 1373): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 1373): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 1373): 	at dalvik.system.NativeStart.main(Native Method)
I/Process ( 1373): Sending signal. PID: 1373 SIG: 9

This is both with MonoDevelop 2.9.4 (Alpha) and MonoDevelop (Stable).

MonoDevelop 2.9.4
Installation UUID: bfe4d389-101c-473e-bbcd-d2e0678bb8bb
	Mono 2.10.9 (tarball Tue Mar 20 15:31:37 EDT 2012)
	GTK 2.24.10
	GTK# (
Apple Developer Tools:
	 Xcode 4.3.2 (1177)
	 Build 4E2002
Mono for Android:
Monotouch: 5.3.2
Build information:
	Release ID: 20904000
	Git revision: 9b3ec72c3e75dcc7f37570f6aa75ad2531b3a296
	Build date: 2012-04-05 23:13:17+0000
	Xamarin addins: 49654bca12f1eee7d4bc037fbf8012edce667e5e
Operating System:
	Mac OS X 10.7.3
	Darwin Chris-MacBook-Air.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
Comment 1 PJ 2012-04-16 09:24:37 UTC
I think I had heard that this issue was supposed to be resolved on master, so I wanted to update.

This issue is still occurring on:

MD 2.9.5 (5ca9cd5e32ed66289eaa831b08996506a049fdd6)
MfA 4.1.1 (41c055cdfac19864f3f5178d1cc026f9ba2e8972)
Mono 2.10.9

Updated logs:
App output: https://gist.github.com/2398667
Logcat: https://gist.github.com/2398710
Comment 2 Andreia Gaita 2012-04-24 17:23:26 UTC
Which app is it? Is it in release mode or debug mode?
Comment 3 PJ 2012-04-25 06:28:29 UTC
I had the team re-test on RC5 and the issue was occurring still then. It's on Release and Debug and they tested it on at least Snake and Button. They're drawing up a full report but the gist of it is the same (the thrust of the report as well as the actual app output). I don't think anything has happened between yesterday and today on that front, but we'll check on RC6 as well.
Comment 4 PJ 2012-04-25 06:47:31 UTC
Exception displayed after run the application on x86 emulator

Steps to reproduce this issue:

1. Open Button Demo.

2. Build the application.
3. Debug/Run the application.

Actual Result:

Application does not deploy to device as throwing exception ‘java.lang.UnsatisfiedLinkError’.

Expected Result:

Application should run successfully on x86 emulator.

Supplemental information:

Environment Information:


Mac 10.6.8

Device info:

Emulator - x86 API-10
Version – 2.3

Additional Environments:
This is happening on both release and debug mode and both Windows and Mac.
Comment 5 Chris Hardy [MSFT] 2012-04-25 06:51:45 UTC
Can you double check that the project has the x86 ABI selected? http://screencast.com/t/nBNaWBloffUp
Comment 6 PJ 2012-04-25 07:07:42 UTC
Ok awesome, that was it. Guess I can mark this one as fixed?
Comment 7 Chris Hardy [MSFT] 2012-04-25 08:35:55 UTC
Yup, Marked as fixed is good, we will need to improve that error message though, so I filed a bug on that: https://bugzilla.xamarin.com/show_bug.cgi?id=4639
Comment 8 Nischal 2014-03-31 04:16:19 UTC
Now able to deploy application using x86 to x86 emulator. Checked with ButtonDemo.

Environment Info:
Xamarin Studio
Version 4.2.4 (build 266) 
Build Information
Git revision: 57fa6b7639703775ae1d5c46536e42ab424cb177
Xamarin addins: eee141c29724a19529e77b8e743086d95b29f5ba
Xamarin.Android 4.13.0-144 (MAC)