Bug 5398 - Can't debug to ASUS Transformer Prime running Android 4.0.3
Summary: Can't debug to ASUS Transformer Prime running Android 4.0.3
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Debugger ()
Version: 4.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-05-29 14:22 UTC by Ian
Modified: 2012-05-29 17:40 UTC (History)
2 users (show)

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


Attachments
Screen shto (185.06 KB, image/png)
2012-05-29 14:31 UTC, Ian
Details
Spces (137.32 KB, image/png)
2012-05-29 14:34 UTC, Ian
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 FIXED

Description Ian 2012-05-29 14:22:43 UTC
When we try to deploy MonoDevelop was able to install the runtime, but it crashed the device. I rebooted the device and it appeared to be ok. Running a simple app in debug mode though doesn't work. I get to the app's splash screen then it dies. It works fine on an old HTC Android 2.2 phone.

Here's the log, the app is called com.wapol.locker:


I/Sensors (  194): **** No Motion ****
D/AndroidRuntime( 2948): 
D/AndroidRuntime( 2948): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 2948): CheckJNI is OFF
D/AndroidRuntime( 2948): Calling main entry com.android.commands.pm.Pm
W/ActivityManager(  194): No content provider found for permission revoke: file:///data/local/tmp/com.wapol.locker-Signed.apk
W/ActivityManager(  194): No content provider found for permission revoke: file:///data/local/tmp/com.wapol.locker-Signed.apk
I/PackageManager(  194): Removing non-system package:com.wapol.locker
I/ActivityManager(  194): Force stopping package com.wapol.locker uid=10089
D/dalvikvm(  194): GC_CONCURRENT freed 1191K, 27% free 12185K/16519K, paused 2ms+4ms
I/PackageManager(  194): Running dexopt on: com.wapol.locker
I/PackageManager(  194): Package com.wapol.locker codePath changed from /data/app/com.wapol.locker-1.apk to /data/app/com.wapol.locker-2.apk; Retaining data and using new
D/dalvikvm( 2959): DexOpt: load 74ms, verify+opt 108ms
I/ActivityManager(  194): Force stopping package com.wapol.locker uid=10089
W/PackageManager(  194): Code path for pkg : com.wapol.locker changing from /data/app/com.wapol.locker-1.apk to /data/app/com.wapol.locker-2.apk
W/PackageManager(  194): Resource path for pkg : com.wapol.locker changing from /data/app/com.wapol.locker-1.apk to /data/app/com.wapol.locker-2.apk
D/PackageManager(  194): New package installed in /data/app/com.wapol.locker-2.apk
I/ActivityManager(  194): Force stopping package com.wapol.locker uid=10089
D/dalvikvm(  534): GC_EXPLICIT freed 442K, 50% free 9485K/18823K, paused 3ms+6ms
D/dalvikvm(  613): GC_EXPLICIT freed 355K, 8% free 6840K/7367K, paused 60ms+3ms
D/dalvikvm(  194): GC_EXPLICIT freed 712K, 28% free 12022K/16519K, paused 2ms+6ms
D/PackageManager(  194): generateServicesMap(android.accounts.AccountAuthenticator): 4 services unchanged
D/PackageManager(  194): generateServicesMap(android.content.SyncAdapter): 14 services unchanged
D/PackageManager(  194): generateServicesMap(android.accounts.AccountAuthenticator): 4 services unchanged
D/PackageManager(  194): generateServicesMap(android.content.SyncAdapter): 14 services unchanged
D/BackupManagerService(  194): Received broadcast Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:com.wapol.locker flg=0x10000010 (has extras) }
D/BackupManagerService(  194): Received broadcast Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.wapol.locker flg=0x10000010 (has extras) }
V/BackupManagerService(  194): updatePackageParticipantsLocked: com.wapol.locker
D/AlarmManager(  194): Added alarm Alarm{416623c0 type 0 com.android.vending} type:RTC_WAKEUP when: At 5/29/12 11:16 AM
D/dalvikvm( 1896): GC_CONCURRENT freed 383K, 8% free 6612K/7175K, paused 1ms+1ms
D/BackupManagerService(  194): Received broadcast Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:com.wapol.locker flg=0x10000010 (has extras) }
V/BackupManagerService(  194): updatePackageParticipantsLocked: com.wapol.locker
D/AlarmManager(  194): Removed alarm Alarm{416623c0 type 0 com.android.vending} type:RTC_WAKEUP
D/AlarmManager(  194): Added alarm Alarm{416b9be8 type 0 com.android.vending} type:RTC_WAKEUP when: At 5/29/12 11:16 AM
D/AlarmManager(  194): Removed alarm Alarm{41660670 type 2 com.google.android.apps.maps} type:ELAPSED_REALTIME_WAKEUP
D/AlarmManager(  194): Added alarm Alarm{4155ab88 type 2 com.google.android.apps.maps} type:ELAPSED_REALTIME_WAKEUP when: After 0h:28m:40.0s repeatInterval: 0h:15m:0.0s
V/PicasaContentProvider( 1138): querySettings: defaults: {sync_on_wifi_only=1, auto_upload_account_type=null, sync_on_battery=1, sync_picasa_on_wifi_only=1, auto_upload_enabled=0, video_upload_wifi_only=1, sync_on_roaming=0, auto_upload_account_name=null}
D/PicasaSyncManager( 1138): reject MetadataSyncTask (*****************) because downsync is disabled
V/PicasaContentProvider( 1138): querySettings: defaults: {sync_on_wifi_only=1, auto_upload_account_type=null, sync_on_battery=1, sync_picasa_on_wifi_only=1, auto_upload_enabled=0, video_upload_wifi_only=1, sync_on_roaming=0, auto_upload_account_name=null}
D/PicasaSyncManager( 1138): reject MetadataSyncTask (*****************) because downsync is disabled
D/dalvikvm(  194): GC_EXPLICIT freed 1239K, 27% free 12091K/16519K, paused 4ms+5ms
D/AndroidRuntime( 2948): Shutting down VM
D/dalvikvm( 2948): GC_CONCURRENT freed 97K, 83% free 454K/2560K, paused 0ms+0ms
I/AndroidRuntime( 2948): NOTE: attach of thread 'Binder Thread #3' failed
D/AndroidRuntime( 2974): 
D/AndroidRuntime( 2974): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 2974): CheckJNI is OFF
D/AndroidRuntime( 2974): Calling main entry com.android.commands.am.Am
D/dalvikvm(  534): GC_CONCURRENT freed 714K, 49% free 9728K/18823K, paused 3ms+6ms
D/dalvikvm( 2985): Late-enabling CheckJNI
I/ActivityManager(  194): Start proc com.wapol.locker for broadcast com.wapol.locker/mono.android.Seppuku: pid=2985 uid=10089 gids={3003, 1015, 1006}
I/dalvikvm( 2985): Turning on JNI app bug workarounds for target SDK version 10...
I/ActivityThread( 2985): Pub com.wapol.locker.__mono_init__: mono.MonoRuntimeProvider
D/dalvikvm( 2985): Trying to load lib /data/data/com.wapol.locker/lib/libmonodroid.so 0x410bf2d0
D/dalvikvm( 2985): Added shared lib /data/data/com.wapol.locker/lib/libmonodroid.so 0x410bf2d0
E/mono    ( 2985): WARNING: The runtime version supported by this application is unavailable.
E/mono    ( 2985): Using default runtime: v2.0.50727
I/monodroid-gc( 2985): environment supports jni NewWeakGlobalRef
I/mono    ( 2985): Stacktrace:
I/mono    ( 2985): 
D/Zygote  (  108): Process 2985 terminated by signal (11)
D/AndroidRuntime( 2974): Shutting down VM
I/ActivityManager(  194): Process com.wapol.locker (pid 2985) has died.
D/dalvikvm( 2974): GC_CONCURRENT freed 99K, 81% free 486K/2560K, paused 0ms+1ms
D/AndroidRuntime( 3009): 
D/AndroidRuntime( 3009): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 3009): CheckJNI is OFF
D/AndroidRuntime( 3009): Calling main entry com.android.commands.am.Am
I/ActivityManager(  194): START {act=android.intent.action.MAIN flg=0x10000000 cmp=com.wapol.locker/police.locker.SplashScreen} from pid 3009
D/dalvikvm(  194): GC_FOR_ALLOC freed 156K, 28% free 11997K/16519K, paused 55ms
I/dalvikvm-heap(  194): Grow heap (frag case) to 13.239MB for 1536016-byte allocation
D/dalvikvm(  194): GC_FOR_ALLOC freed 4K, 19% free 13492K/16519K, paused 56ms
D/dalvikvm(  194): GC_CONCURRENT freed 5K, 18% free 13616K/16519K, paused 3ms+6ms
D/AndroidRuntime( 3009): Shutting down VM
I/AndroidRuntime( 3009): NOTE: attach of thread 'Binder Thread #3' failed
D/dalvikvm( 3023): Late-enabling CheckJNI
I/ActivityManager(  194): Start proc com.wapol.locker for activity com.wapol.locker/police.locker.SplashScreen: pid=3023 uid=10089 gids={3003, 1015, 1006}
I/dalvikvm( 3023): Turning on JNI app bug workarounds for target SDK version 10...
D/dalvikvm( 3009): GC_CONCURRENT freed 98K, 82% free 485K/2560K, paused 1ms+1ms
D/WindowManager(  194): adjustConfigurationLw, config:{1.0 0mcc0mnc (no locale) layoutdir=0 sw800dp w800dp h1232dp xlrg port ?uimode ?night finger -keyb/v/h -nav/v} mLidOpen:-1 mHasDockFeature:true mHasHallSensorFeature:true config.hardKeyboardHidden:2
D/OpenGLRenderer(  534): Flushing caches (mode 1)
I/ActivityThread( 3023): Pub com.wapol.locker.__mono_init__: mono.MonoRuntimeProvider
D/dalvikvm( 3023): Trying to load lib /data/data/com.wapol.locker/lib/libmonodroid.so 0x410c02c8
D/dalvikvm( 3023): Added shared lib /data/data/com.wapol.locker/lib/libmonodroid.so 0x410c02c8
D/OpenGLRenderer(  534): Flushing caches (mode 0)
E/mono    ( 3023): WARNING: The runtime version supported by this application is unavailable.
E/mono    ( 3023): Using default runtime: v2.0.50727
I/monodroid-gc( 3023): environment supports jni NewWeakGlobalRef
I/mono    ( 3023): Stacktrace:
I/mono    ( 3023): 
D/Zygote  (  108): Process 3023 terminated by signal (11)
I/ActivityManager(  194): Process com.wapol.locker (pid 3023) has died.
W/ActivityManager(  194): Force removing ActivityRecord{41319cd0 com.wapol.locker/police.locker.SplashScreen}: app died, no saved state
D/WindowManager(  194): adjustConfigurationLw, config:{1.0 0mcc0mnc (no locale) layoutdir=0 sw800dp w800dp h1232dp xlrg port ?uimode ?night finger -keyb/v/h -nav/v} mLidOpen:-1 mHasDockFeature:true mHasHallSensorFeature:true config.hardKeyboardHidden:2
W/InputManagerService(  194): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@413a8688
D/AndroidRuntime( 3091): 
D/AndroidRuntime( 3091): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 3091): CheckJNI is OFF
D/AndroidRuntime( 3091): Calling main entry com.android.commands.am.Am
D/dalvikvm( 3101): Late-enabling CheckJNI
I/ActivityManager(  194): Start proc com.wapol.locker for broadcast com.wapol.locker/mono.android.Seppuku: pid=3101 uid=10089 gids={3003, 1015, 1006}
I/dalvikvm( 3101): Turning on JNI app bug workarounds for target SDK version 10...
I/ActivityThread( 3101): Pub com.wapol.locker.__mono_init__: mono.MonoRuntimeProvider
D/dalvikvm( 3101): Trying to load lib /data/data/com.wapol.locker/lib/libmonodroid.so 0x410c1388
D/dalvikvm( 3101): Added shared lib /data/data/com.wapol.locker/lib/libmonodroid.so 0x410c1388
E/mono    ( 3101): WARNING: The runtime version supported by this application is unavailable.
E/mono    ( 3101): Using default runtime: v2.0.50727
I/monodroid-gc( 3101): environment supports jni NewWeakGlobalRef
I/mono    ( 3101): Stacktrace:
I/mono    ( 3101): 
D/AndroidRuntime( 3091): Shutting down VM
I/ActivityManager(  194): Process com.wapol.locker (pid 3101) has died.
D/dalvikvm( 3091): GC_CONCURRENT freed 99K, 81% free 486K/2560K, paused 1ms+0ms
D/Zygote  (  108): Process 3101 terminated by signal (11)
I/AndroidRuntime( 3091): NOTE: attach of thread 'Binder Thread #3' failed
D/AlarmManager(  194): Triggered Alarm 416b9be8 RTC_WAKEUP IntentSender{411f4a98: PendingIntentRecord{41551830 com.android.vending startService}}
D/dalvikvm( 1936): GC_CONCURRENT freed 481K, 8% free 7164K/7751K, paused 2ms+4ms
D/Finsky  ( 1936): [1] 5.onFinished: Installation state replication succeeded.
I/Sensors (  194): **** Motion ****
I/Sensors (  194): **** No Motion ****
D/AlarmManager(  194): Removed alarm Alarm{416035a8 type 0 com.android.exchange} type:RTC_WAKEUP
I/qtaguid (  874): Failed write_ctrl(u 39) res=-1 errno=22
I/qtaguid (  874): Untagging socket 39 failed errno=-22
W/NetworkManagementSocketTagger(  874): untagSocket(39) failed with errno -22
D/AlarmManager(  194): Added alarm Alarm{41700bb8 type 0 com.android.exchange} type:RTC_WAKEUP when: At 5/29/12 11:34 AM
D/AlarmManager(  194): Triggered Alarm 41726f90 ELAPSED_REALTIME_WAKEUP IntentSender{415a5aa8: PendingIntentRecord{416cd668 com.google.android.gsf broadcastIntent}}
D/AlarmManager(  194): Added alarm Alarm{41693e50 type 2 com.google.android.gsf} type:ELAPSED_REALTIME_WAKEUP when: After 0h:0m:59.0s
D/AlarmManager(  194): Removed alarm Alarm{41693e50 type 2 com.google.android.gsf} type:ELAPSED_REALTIME_WAKEUP
D/AlarmManager(  194): Added alarm Alarm{4159c800 type 2 com.google.android.gsf} type:ELAPSED_REALTIME_WAKEUP when: After 0h:15m:0.0s
Comment 1 Ian 2012-05-29 14:31:22 UTC
Created attachment 1982 [details]
Screen shto
Comment 2 Ian 2012-05-29 14:31:59 UTC
If I deploy the app to the App Store, then install from there, it works fine. So it appears to be debugger related.

As the app does flash its splash screen, it is mostly working, but it crashes 100% of the time.

I have tried the Xamarin MWC demo app and get the same behaviour.

Attached is a screenshot of the Settings on the device. The two apps, with "Baha'i" in their title are from the Ap store made with this version of MonoDevelop.

I am able to debug from Eclipse just fine.
Comment 3 Ian 2012-05-29 14:34:13 UTC
I have attached the specs of the Android 4.0.3 device as a screenshot as well
Comment 4 Ian 2012-05-29 14:34:31 UTC
Created attachment 1983 [details]
Spces
Comment 5 Ian 2012-05-29 14:49:16 UTC
I tested the app via Zubhium.com ( a service similar to TestFlightApp.com for Android) and it works fine.

So it appears, that the problem is with deploying the app via MonoDevelop to the Android 4.0.3 device in debug via USB.
Comment 6 Ian 2012-05-29 14:53:32 UTC
Here's the configuration of my dev IDE. I run the Release channel.


MonoDevelop 3.0.2
Installation UUID: 438ac2b5-07c9-45e7-a8ce-eac5ad86371d
Runtime:
	Mono 2.10.9 (tarball Mon May  7 20:25:51 EDT 2012)
	GTK 2.24.10
	GTK# (2.12.0.0)
	Package version: 210090011
Apple Developer Tools:
	 Xcode 4.3.2 (1177)
	 Build 4E2002
Monotouch: 5.2.12
Mono for Android: 4.2.2.134493563
Android SDK: /Users/vink/Library/Developer/Xamarin/android-sdk-mac_x86
Supported Android versions:
	Version: 1.6	ApiLevel: 4
	Version: 2.1	ApiLevel: 7
	Version: 2.2	ApiLevel: 8
	Version: 2.3	ApiLevel: 10
	Version: 3.1	ApiLevel: 12
	Version: 4.0	ApiLevel: 14
	Version: 4.0.3	ApiLevel: 15
Java SDK: /usr/bin

Build information:
	Release ID: 30002000
	Git revision: 046db1bb0d9d438aa4d3468d66c6f963bc44c51a-dirty
	Build date: 2012-05-23 21:39:54+0000
	Xamarin addins: d99a1741642a336943d5607bdc1a09efa2ac3b86
Operating System:
	Mac OS X 10.7.4
	Darwin mac.local 11.4.0 Darwin Kernel Version 11.4.0
	    Mon Apr  9 19:32:15 PDT 2012
	    root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64
Comment 7 Jonathan Pobst 2012-05-29 16:49:16 UTC
Try turning off Fast Deployment in your project properties and see if that helps.
Comment 8 Ian 2012-05-29 17:40:36 UTC
That fixed it.