Bug 6185 - Cannot debug the application on mobile phone
Summary: Cannot debug the application on mobile phone
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Android
Classification: Xamarin
Component: Debugger ()
Version: 4.2.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-07-19 00:26 UTC by Vasily Poteryaiko
Modified: 2013-05-21 13:09 UTC (History)
3 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 NOT_REPRODUCIBLE

Description Vasily Poteryaiko 2012-07-19 00:26:26 UTC
After trying debug app with MonoDevelop on mobile phone, get a bug on 'Application output':
--cut--
Setting debug property
Forwarding debugger port 8981
Forwarding console port 8982
Error trying to detect already running process
--cut--


adb logcat:
--cut--
D/AndroidRuntime( 1630):
D/AndroidRuntime( 1630): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
I/AndroidRuntime( 1630): Heap size: -Xmx48m
D/AndroidRuntime( 1630): CheckJNI is OFF
D/dalvikvm( 1630): creating instr width table
D/AndroidRuntime( 1630): Calling main entry com.android.commands.am.Am
I/ActivityManager(  240): Start proc Taxi.Taxi for broadcast Taxi.Taxi/mono.android.Seppuku: pid=1638 uid=10088 gids={3003, 1015}
D/szipinf ( 1638): Initializing inflate state
I/ActivityThread( 1638): Pub Taxi.Taxi.mono.MonoRuntimeProvider.__mono_init__: mono.MonoRuntimeProvider
D/dalvikvm( 1638): Trying to load lib /data/data/Taxi.Taxi/lib/libmonodroid.so 0x2afc0390
D/dalvikvm( 1638): Added shared lib /data/data/Taxi.Taxi/lib/libmonodroid.so 0x2afc0390
E/mono    ( 1638): WARNING: The runtime version supported by this application is unavailable.
E/mono    ( 1638): Using default runtime: v2.0.50727
W/monodroid-gc( 1638): GREF GC Threshold: 46800
D/AndroidRuntime( 1630): Shutting down VM
I/ActivityManager(  240): Process Taxi.Taxi (pid 1638) has died.
D/Zygote  (  157): Process 1638 exited cleanly (255)
D/dalvikvm( 1630): GC_CONCURRENT freed 102K, 69% free 325K/1024K, external 0K/0K, paused 0ms+1ms
I/AndroidRuntime( 1630): NOTE: attach of thread 'Binder Thread #3' failed
D/jdwp    ( 1630): adbd disconnected
D/AndroidRuntime( 1651):
D/AndroidRuntime( 1651): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
I/AndroidRuntime( 1651): Heap size: -Xmx48m
D/AndroidRuntime( 1651): CheckJNI is OFF
D/dalvikvm( 1651): creating instr width table
D/AndroidRuntime( 1651): Calling main entry com.android.commands.am.Am
I/ActivityManager(  240): Start proc Taxi.Taxi for broadcast Taxi.Taxi/mono.android.Seppuku: pid=1659 uid=10088 gids={3003, 1015}
D/szipinf ( 1659): Initializing inflate state
I/ActivityThread( 1659): Pub Taxi.Taxi.mono.MonoRuntimeProvider.__mono_init__: mono.MonoRuntimeProvider
D/dalvikvm( 1659): Trying to load lib /data/data/Taxi.Taxi/lib/libmonodroid.so 0x2afc0850
D/dalvikvm( 1659): Added shared lib /data/data/Taxi.Taxi/lib/libmonodroid.so 0x2afc0850
E/mono    ( 1659): WARNING: The runtime version supported by this application is unavailable.
E/mono    ( 1659): Using default runtime: v2.0.50727
W/monodroid-gc( 1659): GREF GC Threshold: 46800
I/ActivityManager(  240): Process Taxi.Taxi (pid 1659) has died.
D/AndroidRuntime( 1651): Shutting down VM
D/dalvikvm( 1651): GC_CONCURRENT freed 102K, 69% free 325K/1024K, external 0K/0K, paused 0ms+1ms
D/Zygote  (  157): Process 1659 exited cleanly (255)
I/AndroidRuntime( 1651): NOTE: attach of thread 'Binder Thread #3' failed
D/jdwp    ( 1651): adbd disconnected
--cut--

But debugging using vs2010 works successfully!


MonoDroid v4.2.4.167234518
MonoDevelop v3.0.3.4
Windows7 6.1.7601.65536 (64-bit)
Java JDK 1.6.0_32
Microsoft .NET 4.0.30319.269
GTK 2.16.6
GTK# (2.12.0.0)
Comment 1 Peter Collins 2013-05-21 13:09:12 UTC
I am unable to reproduce this issue on our current stable builds of Xamarin Studio(4.0.8 - 0a09117d), and Xamarin Android (4.6.6 - 6d7480e9). Please re-open this bug if you are still encountering this issue.