Bug 11780 - On clean deploy, app is closed immediately after launching
Summary: On clean deploy, app is closed immediately after launching
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.8.x
Hardware: PC Mac OS
: --- normal
Target Milestone: 4.8 (async)
Assignee: Jonathan Pryor
URL:
: 11705 11753 ()
Depends on:
Blocks:
 
Reported: 2013-04-14 11:19 UTC by PJ
Modified: 2014-11-16 08:44 UTC (History)
10 users (show)

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


Attachments
Logs from Case #45103 (84.36 KB, application/zip)
2013-08-29 14:56 UTC, Allie Miller
Details
Test Case from Case #45103 (778.01 KB, application/zip)
2013-08-29 14:57 UTC, Allie Miller
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:
VERIFIED FIXED

Description PJ 2013-04-14 11:19:56 UTC
Steps to reproduce:

1. Create a new application (default template)
2. Ensure that you don't have a copy of this application on device (I am assuming you ignored step 1 :P)
3. Debug the application

Expected behavior:
Application should be launched on the device successfully.

Actual behavior:
Application launches briefly and then is closed, and is never fully launched (as in, this is not the normal fast-deploy flash and then kill.)


**Subsequent deploy/app launches succeed.**

I could not reproduce this with Fast Deploy enabled, so that's a clue.

Logcat:https://gist.github.com/pjbeaman/669ff19cd51efd5a07a8

Looks like the blame lies with the fast dev directory creation. We see:

F/MonoDroid( 4748): No assemblies available. Assuming this is part of Fast Deployment. Exiting... 

So.. it is treating the regular deploy as the fast deploy, which it assumes it should kill. Then later, we get:

I/ActivityManager(  377): Start proc AndroidApplication7.AndroidApplication7 for broadcast AndroidApplication7.AndroidApplication7/mono.android.Seppuku: pid=4784 uid=10036 gids={50036, 3003, 1015, 1028}

So now we seem to be trying to do the initialization Seppuku (for Fast Dev), but after the app has been killed. JonP, you'll have to let me know if I'm on base, but this seems like the issue to me.


I took a screencast of the process. It's long, but shows both the failed launch and then the subsequent successful launch. App finishes the first deploy around 1:00. http://screencast.com/t/l76svnCzO0

This is definitely a regression from a previous release, but the exact regression point is unknown at this point and will require further investigation when time and download speed are less scarce.

Filed against:
Android 4.6.4
Mono 3.0.10 ((no/a7ba26f)
XS 4.1 33f011263cd7ec136e1d42f2209ea5702a023db3
Comment 1 Jonathan Pryor 2013-04-14 12:32:01 UTC
I am confused.

You state:

> 1. Create a new application (default template)

Default template has Fast Deployment ENABLED.

Then you state:

> I could not reproduce this with Fast Deploy enabled, so that's a clue.

So it's the default template...yet fast deployment is DISABLED to cause the bug?

I am very confused. :-/

Or did you mean to write that you can't reproduce this with Fast Deployment DISABLED, i.e. the issue is in the fast deployment logic?

Regardless, I think we'll need to bring mhutch in; see below... :-/

> F/MonoDroid( 4748): No assemblies available. Assuming this is part of Fast Deployment. Exiting... 

This was added as part of fixing Bug #9572. If no assemblies are present, then instead of spamming logcat with a bunch of "Bad call to mono_mutex_lock result 11" messages, we just print the above message and exit the process.

This is also in 4.6.x and master: __FastDevLauncher is no longer used, and launching an Activity is no longer required; the IDE can just launch Seppuku for fast deployment.

https://trello.com/card/improve-fastdev-install-use-seppuku-not-activity/4fdf424c7eff48105a291928/107

What's happening is:

1. Xamarin Studio created and installed the .apk
2. Xamarin Studio sent the Seppuku task (the first Start proc call)
3. On process startup, libmonodroid.so said "there's no assemblies! Goodbye!"

What SHOULD next happen is:

e4. Xamarin Studio synchronizes assemblies
e5: Xamarin Studio launches Activity, debugger connects, you're happy.

What's ACTUALLY happening...is I don't know.

What we do know is that:

a4: Xamarin Studio is synchronizing assemblies (yay).

We know this is happening because we don't see the "F/MonoDroid No assemblies available" message. Therefore assemblies ARE present.

e5: Xamarin Studio launches Seppuku again.

WHAT? This makes no sense. The second Seppuku should in fact be the Activity launch.

I do not know why XS is launching Seppuku twice instead of launching Seppuku once then the Activity.

mhutch: Do you have any idea why XS would be sending a _second_ Seppuku launch instead of launching the Activity?

("Older" XS versions -- which still assume the __FastDevLauncher World Order -- would instead Launch an Activity, launch Seppuku, synchronize assemblies, then launch the Activity a second time. This isn't happening here -- the initial launch is Seppuku, not an Activity -- but even if it were the case we wouldn't see two Seppukus in a row. I am confused. :-/
Comment 2 PJ 2013-04-14 12:43:43 UTC
you're right on. I meant with fast dev DISABLED. So sorry. Steps still apply -sorry for the confusion.
Comment 3 Mikayla Hutchinson [MSFT] 2013-04-14 12:54:14 UTC
First seppuku is to create the fastdev directory. Second seppuku is to kill some detected running instance before launching the activity.
Comment 4 Mikayla Hutchinson [MSFT] 2013-04-14 13:21:23 UTC
AFAICT this is a race introduced by the change to use Seppuku instead of __FastDevLauncher.

What happens is:
1) deploy uses Seppuku to create the override directory
2) deploy issues a second Seppuku to kill the Activity that was previously used for (1). Since the process started for (1) has died, this starts the process again.
3) XS run checks whether the app is running
4) XS finds the app is running (the seppuku from 2)
5) XS issues another Seppuku to ensure that "run" will actually restart the the process
5) XS polls whether the app is running to detect whether (4) has completed
7) the app self-terminates because it was only launched for the seppuku from (2)
8) XS detects the app is not running, launches the real activity 
9) the seppuku from (5) self-terminates the app

So the problem is the superfluous Seppuku in (2).
Comment 5 narayanp 2013-04-15 11:02:38 UTC
*** Bug 11753 has been marked as a duplicate of this bug. ***
Comment 6 narayanp 2013-04-15 11:20:55 UTC
Same issue also appears with latest builds of Mac as well as Windows.

Build info:
For Mac:
MonoFramework-MDK-3.0.10.macos10.xamarin.x86 (2)
X.S 4.1.0 -33f011263cd7ec136e1d42f2209ea5702a023db3
mono-android-4.7.4-13(1)

For windows:
GTK 2.12.20
VS 2010/12
MFA 4.7.04013
Comment 7 narayanp 2013-04-16 07:58:21 UTC
With latest build of MFA 4.7.04014, we are getting same issue on Mac environment.

However, on windows we are getting different issue for which we have reported a new issue Bug 11803 for the same.
Comment 8 narayanp 2013-04-16 09:47:34 UTC
For Comment 7, here is the supplement info for Mac environment:

Android device log: https://gist.github.com/atin360/6c1f63b564d1e9eaa347
AndroidTool log: https://gist.github.com/atin360/361998192c9cb723e475
XS log:  https://gist.github.com/atin360/2a66465e256e5d921fde
Application output: https://gist.github.com/atin360/4f46ac833e74a4a0bc33

Build info:
MonoFramework-MDK-3.0.10.macos10.xamarin.x86 (2)
X.S 4.1.0 -33f011263cd7ec136e1d42f2209ea5702a023db3
MFA 4.7.04014
Comment 16 Mikayla Hutchinson [MSFT] 2013-04-29 11:27:07 UTC
Fixed androidtools and md-addins.
Comment 17 Jonathan Pryor 2013-04-30 17:41:05 UTC
*** Bug 11705 has been marked as a duplicate of this bug. ***
Comment 18 Saurabh 2013-05-06 07:46:47 UTC
We have checked this issue with following builds:

Mono 3.0.11
XS 4.0.5(Build 2)
MFA 4.7.4-14

This issue does not exist with above builds and application launches successfully on fresh device/emulator.

Can we close this issue w.r.t. these builds?
Comment 19 PJ 2013-05-06 11:27:54 UTC
Yes indeed, the build you have should indeed contain the fix. 4.0.5 was branched from master on May 2nd.
Comment 21 Allie Miller 2013-08-29 14:56:36 UTC
Created attachment 4748 [details]
Logs from Case #45103
Comment 22 Allie Miller 2013-08-29 14:57:02 UTC
Created attachment 4749 [details]
Test Case from Case #45103
Comment 23 Jonathan Pryor 2013-08-29 21:18:12 UTC
I'm unable to reproduce the "No assemblies found" bug.

The InvalidCastException issue is due to Bug #13480.

Unfortunately, stopping at the breakpoint doesn't work for me; it never stops on MainActivity.cs:19. :-(
Comment 24 Gerco Brandwijk 2013-08-30 02:14:00 UTC
I got the No assemblies found bug when I enable Fast Deployment. The InvalidCastException is with Fast Deployment disabled. I hope I can get it working with the InvalidCastException fix (where can I found that fix? On the bug page of that bug there is no download link or something?), so I can at least run the app again.

Tell me when you need more information from me so you can fix debugging soon :)
Comment 25 Christopher Svanefalk 2014-11-08 05:44:55 UTC
I can confirm that this has popped up again after my latest update. Running the app on Galaxy S3 with Fast Deploy on crashes immediately with the following output:

Error(11733)/monodroid: No assemblies found in '/data/data/Perinatal.Android/files/.__override__' or '/storage/emulated/0/Android/data/Perinatal.Android/files/.__override__'. Assuming this is part of Fast Deployment. Exiting...

Environment info:

=== Xamarin Studio ===

Version 5.5.3 (build 6)
Installation UUID: fb249e80-2b94-4e1a-bb82-1f0a76379e63
Runtime:
	Mono 3.10.0 ((detached/e204655)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000023

=== Xamarin.Android ===

Version: 4.18.0 (Business Edition)
Android SDK: /Users/csvanefalk/Library/Developer/android-sdk-osx
	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)
		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.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

=== Apple Developer Tools ===

Xcode 6.1 (6604)
Build 6A1052d

=== Xamarin.iOS ===

Version: 8.4.0.16 (Business Edition)
Hash: 80e9ff7
Branch: 
Build date: 2014-10-22 15:09:12-0400

=== Xamarin.Mac ===

Version:

=== Build Information ===

Release ID: 505030006
Git revision: fbe3e9453daf6a3bb9a9709ed22bec35f7c9056b
Build date: 2014-10-23 13:08:38-04
Xamarin addins: e44add2b39de4dd57c0742bb2e620dfad84c64c6

=== Operating System ===

Mac OS X 10.10.0
Darwin Christophers-MacBook-Pro.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 26 Jonathan Pryor 2014-11-08 11:11:36 UTC
@Christopher: Please provide the installation logs, found at $HOME/Library/Logs/XamarinStudio-5.0/AndroidTools*.log. (Filename contains timestamps; please provide the appropriate file.)

Please also try deploying outside the IDE, using `xbuild` within Terminal.app:

    # Within your Android Application project dir...
    $ xbuild /t:Install *.csproj
Comment 27 Christopher Svanefalk 2014-11-16 08:44:22 UTC
Pardon the delay, here is the relevant logfile. I reproduced the problem by turning Fast Deploy on, started the app, then stopped the app, turned it off, and started the app again.

[2014-11-16 14:08:19.9] INFO: Found Android SDK. API levels: 4, 7, 8, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21
[2014-11-16 14:08:20.0] INFO: Found Xamarin.Android 4.18.1
[2014-11-16 14:32:54.0] INFO: Tracking android devices started
[2014-11-16 14:32:54.1] DEBUG: TrackDeviceTask got: 42f7dc0b3fdfbf2f	device
[2014-11-16 14:32:54.1] INFO: Got new device list from adb with 1 devices
[2014-11-16 14:32:54.1] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f getprop
[2014-11-16 14:35:59.2] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f am broadcast -a mono.android.intent.action.PACKAGE_VERSIONS -e "packages" "Mono.Android.DebugRuntime,Mono.Android.Platform.ApiLevel_19,testdroid.testdroid" Mono.Android.DebugRuntime/com.xamarin.mono.android.PackageVersions
[2014-11-16 14:36:03.8] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f pm install "/data/local/tmp/testdroid.testdroid-Signed.apk"
[2014-11-16 14:36:07.3] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f rm "/data/local/tmp/testdroid.testdroid-Signed.apk"
[2014-11-16 14:36:07.3] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f "pm" "path" "testdroid.testdroid"
[2014-11-16 14:36:08.2] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f "echo" "-n" "${EXTERNAL_STORAGE}"
[2014-11-16 14:36:08.3] DEBUG: NotifyPhase: Enumerating remote files
[2014-11-16 14:36:08.3] DEBUG: NotifyPhase: Determining required operations
[2014-11-16 14:36:08.3] DEBUG: NotifyPhase: Creating directories
[2014-11-16 14:36:08.3] DEBUG: NotifySync: SkipCreateDirectory  /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__ 0
[2014-11-16 14:36:08.3] DEBUG: NotifyPhase: Uploading files
[2014-11-16 14:36:08.3] DEBUG: NotifySync: CopyFile /Users/csvanefalk/Projects/test-http/testdroid/bin/Debug/testdroid.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/testdroid.dll 5632
[2014-11-16 14:36:08.3] DEBUG: NotifySync: CopyFile /Users/csvanefalk/Projects/test-http/testdroid/bin/Debug/testdroid.dll.mdb /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/testdroid.dll.mdb 1288
[2014-11-16 14:36:08.3] DEBUG: NotifySync: CopyFile /Users/csvanefalk/Projects/test-http/packages/modernhttpclient.2.1.4/lib/MonoAndroid/ModernHttpClient.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/ModernHttpClient.dll 25600
[2014-11-16 14:36:08.3] DEBUG: NotifySync: CopyFile /Users/csvanefalk/Projects/test-http/packages/modernhttpclient.2.1.4/lib/MonoAndroid/ModernHttpClient.dll.mdb /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/ModernHttpClient.dll.mdb 5562
[2014-11-16 14:36:08.4] DEBUG: NotifySync: CopyFile /Users/csvanefalk/Projects/test-http/packages/modernhttpclient.2.1.4/lib/MonoAndroid/OkHttp.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/OkHttp.dll 422912
[2014-11-16 14:36:08.4] DEBUG: NotifySync: CopyFile /Users/csvanefalk/Projects/test-http/packages/Microsoft.Net.Http.2.2.28/lib/monoandroid/System.Net.Http.Primitives.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Net.Http.Primitives.dll 21720
[2014-11-16 14:36:08.4] DEBUG: NotifySync: CopyFile /Users/csvanefalk/Projects/test-http/packages/Microsoft.Net.Http.2.2.28/lib/monoandroid/System.Net.Http.Extensions.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Net.Http.Extensions.dll 22224
[2014-11-16 14:36:08.4] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Collections.Concurrent.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Collections.Concurrent.dll 5632
[2014-11-16 14:36:08.4] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Collections.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Collections.dll 5120
[2014-11-16 14:36:08.4] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ComponentModel.Annotations.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.ComponentModel.Annotations.dll 5632
[2014-11-16 14:36:08.4] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ComponentModel.EventBasedAsync.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.ComponentModel.EventBasedAsync.dll 4608
[2014-11-16 14:36:08.4] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ComponentModel.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.ComponentModel.dll 4096
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Diagnostics.Contracts.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Diagnostics.Contracts.dll 5120
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Diagnostics.Debug.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Diagnostics.Debug.dll 4096
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Diagnostics.Tools.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Diagnostics.Tools.dll 4096
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Dynamic.Runtime.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Dynamic.Runtime.dll 6144
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Globalization.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Globalization.dll 4608
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.IO.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.IO.dll 5120
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Linq.Expressions.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Linq.Expressions.dll 6656
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Linq.Parallel.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Linq.Parallel.dll 5120
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Linq.Queryable.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Linq.Queryable.dll 4096
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Linq.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Linq.dll 6144
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.NetworkInformation.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Net.NetworkInformation.dll 4608
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.Primitives.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Net.Primitives.dll 4608
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Net.Requests.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Net.Requests.dll 4608
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ObjectModel.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.ObjectModel.dll 4608
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Reflection.Emit.ILGeneration.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Reflection.Emit.ILGeneration.dll 4608
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Reflection.Emit.Lightweight.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Reflection.Emit.Lightweight.dll 4608
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Reflection.Emit.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Reflection.Emit.dll 4096
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Reflection.Extensions.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Reflection.Extensions.dll 4608
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Reflection.Primitives.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Reflection.Primitives.dll 5120
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Reflection.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Reflection.dll 5120
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Resources.ResourceManager.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Resources.ResourceManager.dll 4608
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.Extensions.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Runtime.Extensions.dll 4608
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.InteropServices.WindowsRuntime.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Runtime.InteropServices.WindowsRuntime.dll 5120
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.InteropServices.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Runtime.InteropServices.dll 6144
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.Numerics.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Runtime.Numerics.dll 4096
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.Serialization.Json.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Runtime.Serialization.Json.dll 4608
[2014-11-16 14:36:08.5] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.Serialization.Primitives.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Runtime.Serialization.Primitives.dll 5120
[2014-11-16 14:36:08.6] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.Serialization.Xml.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Runtime.Serialization.Xml.dll 5120
[2014-11-16 14:36:08.6] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Runtime.dll 12288
[2014-11-16 14:36:08.6] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Security.Principal.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Security.Principal.dll 4096
[2014-11-16 14:36:08.6] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ServiceModel.Http.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.ServiceModel.Http.dll 4608
[2014-11-16 14:36:08.6] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.ServiceModel.Primitives.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.ServiceModel.Primitives.dll 10240
[2014-11-16 14:36:08.6] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Text.Encoding.Extensions.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Text.Encoding.Extensions.dll 4608
[2014-11-16 14:36:08.6] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Text.Encoding.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Text.Encoding.dll 4096
[2014-11-16 14:36:08.6] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Text.RegularExpressions.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Text.RegularExpressions.dll 4608
[2014-11-16 14:36:08.6] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Threading.Tasks.Parallel.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Threading.Tasks.Parallel.dll 5632
[2014-11-16 14:36:08.6] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Threading.Tasks.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Threading.Tasks.dll 6144
[2014-11-16 14:36:08.6] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Threading.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Threading.dll 5120
[2014-11-16 14:36:08.6] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Xml.ReaderWriter.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Xml.ReaderWriter.dll 6656
[2014-11-16 14:36:08.6] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Xml.XDocument.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Xml.XDocument.dll 6144
[2014-11-16 14:36:08.6] DEBUG: NotifySync: CopyFile /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Xml.XmlSerializer.dll /storage/emulated/legacy/Android/data/testdroid.testdroid/files/.__override__/System.Xml.XmlSerializer.dll 5120
[2014-11-16 14:36:08.6] DEBUG: NotifyPhase: Upload completed
[2014-11-16 14:36:08.8] DEBUG: KillProcessIfRunningAndWaitForExit: Checking whether app testdroid.testdroid is running
[2014-11-16 14:36:08.8] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:36:08.9] DEBUG: KillProcessIfRunningAndWaitForExit: App was not running, skipping kill
[2014-11-16 14:36:08.9] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f date +%s
[2014-11-16 14:36:08.9] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f setprop "debug.mono.extra" "debug=127.0.0.1:8817,timeout=1416144999,loglevel=0,server=y"
[2014-11-16 14:36:08.9] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f am start -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -n testdroid.testdroid/testdroid.MainActivity
[2014-11-16 14:36:10.1] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:36:11.3] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:36:11.3] DEBUG: GetLogCat: logcat -v time "dalvikvm:S" "ActivityThread:S" "mkestner:S" "MonoDroid-Debugger:S"
[2014-11-16 14:36:11.3] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f logcat -v time "dalvikvm:S" "ActivityThread:S" "mkestner:S" "MonoDroid-Debugger:S"
[2014-11-16 14:36:12.3] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:36:12.4] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f setprop "debug.mono.extra" ""
[2014-11-16 14:36:12.4] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f am force-stop testdroid.testdroid
[2014-11-16 14:36:39.9] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f am broadcast -a mono.android.intent.action.PACKAGE_VERSIONS -e "packages" "Mono.Android.DebugRuntime,Mono.Android.Platform.ApiLevel_19,testdroid.testdroid" Mono.Android.DebugRuntime/com.xamarin.mono.android.PackageVersions
[2014-11-16 14:36:42.8] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f pm uninstall -k "testdroid.testdroid"
[2014-11-16 14:36:45.0] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f pm install "/data/local/tmp/testdroid.testdroid-Signed.apk"
[2014-11-16 14:36:51.6] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f rm "/data/local/tmp/testdroid.testdroid-Signed.apk"
[2014-11-16 14:36:51.7] DEBUG: KillProcessIfRunningAndWaitForExit: Checking whether app testdroid.testdroid is running
[2014-11-16 14:36:51.7] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:36:51.8] DEBUG: KillProcessIfRunningAndWaitForExit: App was not running, skipping kill
[2014-11-16 14:36:51.8] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f date +%s
[2014-11-16 14:36:51.8] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f setprop "debug.mono.extra" "debug=127.0.0.1:8818,timeout=1416145042,loglevel=0,server=y"
[2014-11-16 14:36:51.8] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f am start -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -n testdroid.testdroid/testdroid.MainActivity
[2014-11-16 14:36:52.9] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:36:53.0] DEBUG: GetLogCat: logcat -v time "dalvikvm:S" "ActivityThread:S" "mkestner:S" "MonoDroid-Debugger:S"
[2014-11-16 14:36:53.0] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f logcat -v time "dalvikvm:S" "ActivityThread:S" "mkestner:S" "MonoDroid-Debugger:S"
[2014-11-16 14:36:54.0] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:36:55.1] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:36:56.2] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:36:57.2] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:36:58.3] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:36:59.3] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:00.4] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:01.5] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:02.5] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:03.6] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:04.6] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:05.7] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:06.7] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:07.7] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:08.8] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:09.8] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:10.9] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:11.9] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:13.0] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:14.0] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:15.1] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:16.1] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:17.2] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:18.2] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:19.3] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:20.3] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:21.4] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:22.4] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:23.5] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:24.5] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:25.5] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:26.6] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:27.6] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:28.7] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:29.8] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:30.8] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:31.8] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:32.9] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:33.9] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:35.0] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:36.1] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:37.1] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:38.1] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:39.2] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:40.2] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:41.3] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:42.4] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:43.4] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:44.5] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:45.5] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:46.6] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:47.6] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:37:54.0] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:38:04.5] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:38:15.0] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:38:16.1] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:38:17.4] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:38:19.1] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:38:29.6] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:38:40.1] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:38:50.6] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:39:01.1] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:39:05.4] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:39:07.0] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:39:17.4] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:39:27.9] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:39:29.7] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:39:39.9] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:39:46.9] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:39:48.0] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:39:58.9] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:40:09.5] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:40:12.9] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:40:17.7] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:40:28.8] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:40:39.3] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:40:42.8] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:40:52.8] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:40:58.1] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps
[2014-11-16 14:41:08.6] DEBUG: RunShellCommand: 42f7dc0b3fdfbf2f ps