Bug 23735 - App fails in debug, works in release
Summary: App fails in debug, works in release
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Debugger ()
Version: 4.18.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: dean.ellis
URL:
Depends on:
Blocks:
 
Reported: 2014-10-10 05:41 UTC by Paul Johnson
Modified: 2015-01-15 16:58 UTC (History)
4 users (show)

Tags:
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:
Status:
RESOLVED FIXED

Description Paul Johnson 2014-10-10 05:41:25 UTC
When I run my app in debug mode, I'm getting the following from the player

Forwarding debugger port 8866
Detecting existing process
[Trace] error opening trace file: No such file or directory (2)
[monodroid-debug] Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=127.0.0.1:8866,server=y,embedding=1
[Mono] Image addref mscorlib[0xb8e88b78] -> mscorlib.dll[0xb8ec8168]: 1
[Mono] AOT module 'mscorlib.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/ftrack2.ftrack2/lib/mscorlib.dll.so' not found
[Mono] Assembly mscorlib[0xb8e88b78] added to domain RootDomain, ref_count=1
[Mono] Image addref ftrack2[0xb8eb2fb0] -> ftrack2.dll[0xb8eb2670]: 1
[Mono] Assembly ftrack2[0xb8eb2fb0] added to domain RootDomain, ref_count=1
[Mono] AOT module 'ftrack2.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/ftrack2.ftrack2/lib/ftrack2.dll.so' not found
[Mono] Image addref Xamarin.Android.Support.v13[0xb8e843b0] -> Xamarin.Android.Support.v13.dll[0xb8e83ba0]: 1
[Mono] Assembly Xamarin.Android.Support.v13[0xb8e843b0] added to domain RootDomain, ref_count=1
[Mono] AOT module 'Xamarin.Android.Support.v13.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/ftrack2.ftrack2/lib/Xamarin.Android.Support.v13.dll.so' not found
[Mono] Image addref Xamarin.Android.Support.v7.MediaRouter[0xb8eb04a0] -> Xamarin.Android.Support.v7.MediaRouter.dll[0xb8e84680]: 1
[Mono] Assembly Xamarin.Android.Support.v7.MediaRouter[0xb8eb04a0] added to domain RootDomain, ref_count=1
[Mono] AOT module 'Xamarin.Android.Support.v7.MediaRouter.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/ftrack2.ftrack2/lib/Xamarin.Android.Support.v7.MediaRouter.dll.so' not found
[Mono] Image addref GooglePlayServicesLib[0xb8ea82f0] -> GooglePlayServicesLib.dll[0xb8eb07a0]: 1
[Mono] Assembly GooglePlayServicesLib[0xb8ea82f0] added to domain RootDomain, ref_count=1
[Mono] AOT module 'GooglePlayServicesLib.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/ftrack2.ftrack2/lib/GooglePlayServicesLib.dll.so' not found
[Mono] Image addref Xamarin.Android.Support.v7.AppCompat[0xb8ea9268] -> Xamarin.Android.Support.v7.AppCompat.dll[0xb8ea8608]: 1
[Mono] Assembly Xamarin.Android.Support.v7.AppCompat[0xb8ea9268] added to domain RootDomain, ref_count=1
[Mono] AOT module 'Xamarin.Android.Support.v7.AppCompat.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/ftrack2.ftrack2/lib/Xamarin.Android.Support.v7.AppCompat.dll.so' not found
[Mono] Image addref System.Net.Http.Extensions[0xb8ea91c0] -> System.Net.Http.Extensions.dll[0xb8ea95a0]: 1
[Mono] Assembly System.Net.Http.Extensions[0xb8ea91c0] added to domain RootDomain, ref_count=1
[Mono] AOT module 'System.Net.Http.Extensions.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/ftrack2.ftrack2/lib/System.Net.Http.Extensions.dll.so' not found
[Mono] Image addref Microsoft.WindowsAzure.Mobile[0xb8eb6110] -> Microsoft.WindowsAzure.Mobile.dll[0xb8eb54f0]: 1
[Mono] Assembly Microsoft.WindowsAzure.Mobile[0xb8eb6110] added to domain RootDomain, ref_count=1
[Mono] AOT module 'Microsoft.WindowsAzure.Mobile.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/ftrack2.ftrack2/lib/Microsoft.WindowsAzure.Mobile.dll.so' not found
[Mono] Image addref Newtonsoft.Json[0xb8eb6048] -> Newtonsoft.Json.dll[0xb8eb6430]: 1
[Mono] Assembly Newtonsoft.Json[0xb8eb6048] added to domain RootDomain, ref_count=1
[Mono] AOT module 'Newtonsoft.Json.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/ftrack2.ftrack2/lib/Newtonsoft.Json.dll.so' not found
[monodroid-gc] GREF GC Threshold: 46800
[Mono] Image addref Mono.Android[0xb8f10680] -> Mono.Android.dll[0xb8f0fa50]: 1
[Mono] Assembly Mono.Android[0xb8f10680] added to domain RootDomain, ref_count=1
[Mono] AOT module 'Mono.Android.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/ftrack2.ftrack2/lib/Mono.Android.dll.so' not found
[Mono] Assembly Ref addref Mono.Android[0xb8f10680] -> mscorlib[0xb8e88b78]: 2
Loaded assembly: ftrack2.dll
Loaded assembly: Xamarin.Android.Support.v13.dll [External]
Loaded assembly: Xamarin.Android.Support.v7.MediaRouter.dll [External]
Loaded assembly: GooglePlayServicesLib.dll [External]
Loaded assembly: Xamarin.Android.Support.v7.AppCompat.dll [External]
Loaded assembly: System.Net.Http.Extensions.dll [External]
Loaded assembly: Microsoft.WindowsAzure.Mobile.dll [External]
Loaded assembly: Newtonsoft.Json.dll [External]
Loaded assembly: Mono.Android.dll [External]
[Mono] Assembly Ref addref Xamarin.Android.Support.v13[0xb8e843b0] -> mscorlib[0xb8e88b78]: 3
[Mono] Assembly Ref addref Xamarin.Android.Support.v13[0xb8e843b0] -> Mono.Android[0xb8f10680]: 2
[Mono] Assembly Ref addref Xamarin.Android.Support.v7.MediaRouter[0xb8eb04a0] -> mscorlib[0xb8e88b78]: 4
[Mono] Assembly Ref addref Xamarin.Android.Support.v7.MediaRouter[0xb8eb04a0] -> Mono.Android[0xb8f10680]: 3
[Mono] Assembly Ref addref GooglePlayServicesLib[0xb8ea82f0] -> mscorlib[0xb8e88b78]: 5
[Mono] Assembly Ref addref GooglePlayServicesLib[0xb8ea82f0] -> Mono.Android[0xb8f10680]: 4
[Mono] Assembly Ref addref Xamarin.Android.Support.v7.AppCompat[0xb8ea9268] -> mscorlib[0xb8e88b78]: 6
[Mono] Assembly Ref addref Xamarin.Android.Support.v7.AppCompat[0xb8ea9268] -> Mono.Android[0xb8f10680]: 5
[Mono] Image addref System.Core[0xb8fd5ee8] -> System.Core.dll[0xb8fd5858]: 1
[Mono] Assembly System.Core[0xb8fd5ee8] added to domain RootDomain, ref_count=1
[Mono] AOT module 'System.Core.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/ftrack2.ftrack2/lib/System.Core.dll.so' not found
[Mono] Assembly Ref addref Mono.Android[0xb8f10680] -> System.Core[0xb8fd5ee8]: 2
[Mono] Assembly Ref addref System.Core[0xb8fd5ee8] -> mscorlib[0xb8e88b78]: 7
Loaded assembly: System.Core.dll [External]
[Mono] Assembly Ref addref ftrack2[0xb8eb2fb0] -> Mono.Android[0xb8f10680]: 6
[Mono] DllImport attempting to load: '__Internal'.
[Mono] DllImport loaded library '(null)'.
[Mono] DllImport searching in: '__Internal' ('(null)').
[Mono] Searching for '_monodroid_gc_wait_for_bridge_processing'.
[Mono] Probing '_monodroid_gc_wait_for_bridge_processing'.
[Mono] Found as '_monodroid_gc_wait_for_bridge_processing'.
[Mono] DllImport searching in: '__Internal' ('(null)').
[Mono] Searching for '_monodroid_get_identity_hash_code'.
[Mono] Probing '_monodroid_get_identity_hash_code'.
[Mono] Found as '_monodroid_get_identity_hash_code'.
Loaded assembly: MonoDroidConstructors [External]
[Mono] Assembly Ref addref ftrack2[0xb8eb2fb0] -> mscorlib[0xb8e88b78]: 8
[Mono] DllImport searching in: '__Internal' ('(null)').
[Mono] Searching for '_monodroid_gref_log_new'.
[Mono] Probing '_monodroid_gref_log_new'.
[Mono] Found as '_monodroid_gref_log_new'.
[Mono] Image addref System[0xb91a5f10] -> System.dll[0xb91a3ff8]: 1
[Mono] Assembly System[0xb91a5f10] added to domain RootDomain, ref_count=1
[Mono] AOT module 'System.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/ftrack2.ftrack2/lib/System.dll.so' not found
[Mono] Assembly Ref addref ftrack2[0xb8eb2fb0] -> System[0xb91a5f10]: 2
[Mono] Assembly Ref addref System[0xb91a5f10] -> mscorlib[0xb8e88b78]: 9
[Mono] Assembly Ref addref ftrack2[0xb8eb2fb0] -> Microsoft.WindowsAzure.Mobile[0xb8eb6110]: 2
[Mono] Assembly Ref addref Microsoft.WindowsAzure.Mobile[0xb8eb6110] -> mscorlib[0xb8e88b78]: 10
[Mono] Image addref System.Net.Http[0xb91b2490] -> System.Net.Http.dll[0xb91b1930]: 1
[Mono] Assembly System.Net.Http[0xb91b2490] added to domain RootDomain, ref_count=1
[Mono] AOT module 'System.Net.Http.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/ftrack2.ftrack2/lib/System.Net.Http.dll.so' not found
[Mono] Assembly Ref addref Microsoft.WindowsAzure.Mobile[0xb8eb6110] -> System.Net.Http[0xb91b2490]: 2
[Mono] Assembly Ref addref System.Net.Http[0xb91b2490] -> mscorlib[0xb8e88b78]: 11
Loaded assembly: System.dll [External]
[Mono] Assembly Ref addref Microsoft.WindowsAzure.Mobile[0xb8eb6110] -> System[0xb91a5f10]: 3
Loaded assembly: System.Net.Http.dll [External]
[Mono] Assembly Ref addref Microsoft.WindowsAzure.Mobile[0xb8eb6110] -> Newtonsoft.Json[0xb8eb6048]: 2
[Mono] Assembly Ref addref Newtonsoft.Json[0xb8eb6048] -> mscorlib[0xb8e88b78]: 12
[Mono] Assembly Ref addref Newtonsoft.Json[0xb8eb6048] -> System.Core[0xb8fd5ee8]: 3
[Mono] Assembly Ref addref Newtonsoft.Json[0xb8eb6048] -> System[0xb91a5f10]: 4
[Mono] Assembly Loader probing location: '/Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/3b7ef0a7/source/monodroid/builds/install/mono-x86/lib/mono/gac/Microsoft.WindowsAzure.Mobile.Ext/1.2.0.0__31bf3856ad364e35/Microsoft.WindowsAzure.Mobile.Ext.dll'.
[Mono] Assembly Loader probing location: '/Microsoft.WindowsAzure.Mobile.Ext.dll'.
[Mono] Assembly Loader probing location: '/Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/3b7ef0a7/source/monodroid/builds/install/mono-x86/lib/Microsoft.WindowsAzure.Mobile.Ext.dll'.
[Mono] Assembly Loader probing location: '/Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/3b7ef0a7/source/monodroid/builds/install/mono-x86/lib/mono/gac/Microsoft.WindowsAzure.Mobile.Ext/1.2.0.0__31bf3856ad364e35/Microsoft.WindowsAzure.Mobile.Ext.exe'.
[Mono] Assembly Loader probing location: '/Microsoft.WindowsAzure.Mobile.Ext.exe'.
[Mono] Assembly Loader probing location: '/Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/3b7ef0a7/source/monodroid/builds/install/mono-x86/lib/Microsoft.WindowsAzure.Mobile.Ext.exe'.

It seems that no trace file is being created and libraries aren't being created. This could also therefore be a monodroid issue

Using v1.0(1) of the player with the updated Nexus 4 emulation

=== Xamarin Studio ===

Version 5.6.1 (build 5)
Installation UUID: f3d1a29c-1ba2-4a83-a193-1087efe91a85
Runtime:
	Mono 3.10.0 ((detached/633e444)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000020

=== Apple Developer Tools ===

Xcode 6.1 (6539)
Build 6A1046a

=== Xamarin.iOS ===

Version: 8.2.0.193 (Business Edition)
Hash: 959c1e4
Branch: 
Build date: 2014-10-03 00:25:37-0400

=== Xamarin.Android ===

Version: 4.18.0 (Business Edition)
Android SDK: /Users/PFJ/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		1.6    (API level 4)
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.0    (API level 11)
		3.1    (API level 12)
		3.2    (API level 13)
		4.0    (API level 14)
		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)
		4.4.87 (API level 20)
		4.5    (API level 21)
Java SDK: /usr
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode)

=== Xamarin.Mac ===

Version: 1.11.0.1 (Business Edition)

=== Build Information ===

Release ID: 506010005
Git revision: 4a603dc77610b9eff2a41582146c56b69a81ceba
Build date: 2014-10-09 11:07:06-04

=== Operating System ===

Mac OS X 10.10.0
Darwin Pauls-iMac.local 14.0.0 Darwin Kernel Version 14.0.0
    Sat Sep 27 03:58:47 PDT 2014
    root:xnu-2782.1.97~11/RELEASE_X86_64 x86_64
Comment 1 Sunil Kumar 2014-12-15 07:10:09 UTC
I have tried to reproduce this issue but unable to reproduce this issue at my end.

Could you please provide us Sample/test steps? So that we can reproduce this issue at our end.

Also if possible could you please provide IDE log,AndroidTools log
For IDE log: XS->Help->Open Log Directory->IDE.log
For AndroidTools log: XS->Help->Open Log Directory->AndroidTools.log
Comment 2 Paul Johnson 2015-01-15 16:58:44 UTC
Seems to be fixed with the newer version of the player and Xam.Android