Bug 16073 - Having a hard time debugging on device
Summary: Having a hard time debugging on device
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: 1.8.x
Hardware: PC Mac OS
: --- blocker
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-11-09 02:28 UTC by James Clancey
Modified: 2016-05-10 17:01 UTC (History)
8 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 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 James Clancey 2013-11-09 02:28:22 UTC
I am using todays alphas, Sometimes the debugger will connect but more times then not it says its starting, VS keeps tying but if I check the output on the ipad I see the following:


Nov  8 23:25:19 Jamess-iPad installd[18] <Notice>: 0x100510000 MobileInstallationInstall_Server: Staging: 0.03s; Waiting: 0.00s; Installation: 0.28s; LS Sync: 0.00s; Overall: 0.31s
Nov  8 23:25:19 Jamess-iPad lsd[76] <Warning>: LaunchServices: Updating identifier store
Nov  8 23:25:20 Jamess-iPad SpringBoard[17] <Error>: libMobileGestalt MobileGestalt.c:835: any-telephony is static and will never generate a notification
Nov  8 23:25:20 Jamess-iPad SpringBoard[17] <Error>: libMobileGestalt MobileGestalt.c:837: front-facing-camera cannot generate notifications yet
Nov  8 23:25:20 Jamess-iPad SpringBoard[17] <Error>: libMobileGestalt MobileGestalt.c:835: still-camera is static and will never generate a notification
Nov  8 23:25:20 Jamess-iPad SpringBoard[17] <Error>: libMobileGestalt MobileGestalt.c:835: ipad is static and will never generate a notification
Nov  8 23:25:20 Jamess-iPad SpringBoard[17] <Error>: libMobileGestalt MobileGestalt.c:835: stand-alone-contacts is static and will never generate a notification
Nov  8 23:25:20 Jamess-iPad MobileStorageMounter[3074] <Error>: 0x1919c22a0 digest_disk_image: Could not open /var/run/mobile_image_mounter/ccobFp.dmg: No such file or directory
Nov  8 23:25:20 Jamess-iPad MobileStorageMounter[3074] <Error>: 0x1919c22a0 reload_mount_map: /Developer - could not create digest
Nov  8 23:25:20 Jamess-iPad mobile_storage_proxy[3073] <Error>: 0x1919c22a0 handle_lookup_image: Entry 3 of 4 did not have a digest
Nov  8 23:25:21 Jamess-iPad MobileStorageMounter[3074] <Error>: 0x1919c22a0 handle_mount_disk_image: A disk image of type Developer is already mounted
Nov  8 23:25:21 Jamess-iPad mobile_storage_proxy[3073] <Error>: MobileStorageMount:355 Could not extract mount path from response message
Nov  8 23:25:21 Jamess-iPad mobile_storage_proxy[3073] <Error>: 0x1919c22a0 handle_mount_image: Could not mount the disk image
Nov  8 23:25:21 Jamess-iPad mobile_storage_proxy[3073] <Error>: 0x1919c22a0 main: Could not mount the image
Nov  8 23:25:21 Jamess-iPad com.apple.debugserver-300.2[3075] <Warning>: debugserver-300.2 for arm64.
Nov  8 23:25:21 Jamess-iPad com.apple.debugserver-300.2[3075] <Warning>: Connecting to com.apple.debugserver service...
Nov  8 23:25:21 Jamess-iPad medialibraryd[221] <Warning>: {MediaLibrary} [MediaLibraryService] Cancelling any active or suspended import operations in progress for process assistant_servic (process ID = 3069)
Nov  8 23:25:21 Jamess-iPad medialibraryd[221] <Warning>: {MediaLibrary} [MLWriter] Cleaning up any remaining transactions for ended process assistant_servic (process ID = 3069)
Nov  8 23:25:22 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: debugserver-300.2 for arm64.
Nov  8 23:25:22 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: Connecting to com.apple.debugserver service...
Nov  8 23:25:22 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: Got a connection, waiting for process information for launching or attaching.
Nov  8 23:25:22 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: About to launch process for bundle ID: mycompanydemo.com.visitors
Nov  8 23:25:22 Jamess-iPad SpringBoard[17] <Warning>: LICreateIconForImage passed NULL CGImageRef image
Nov  8 23:25:22 Jamess-iPad kernel[0] <Debug>: launchd[3077] Container: /private/var/mobile/Applications/72965C49-4D0E-477C-A9E8-B0AB4B5D5F7A (sandbox)
Nov  8 23:25:22 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: In completion handler, got pid for bundle id, pid: 3077.
Nov  8 23:25:22 Jamess-iPad networkd[79] <Warning>: Analytics Engine: double ON for app: mycompanydemo.com.visitors
Nov  8 23:25:22 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 1 +0.000000 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:22 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 2 +0.212988 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:23 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 3 +0.315509 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:23 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 4 +0.212443 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:23 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 5 +0.140812 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:23 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 6 +0.139942 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:23 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 7 +0.139966 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:24 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 8 +0.139481 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:24 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 9 +0.139775 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:24 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 10 +0.139791 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:24 Jamess-iPad com.apple.debugserver-300.2[3076] <Error>: error: MachTask::StartExceptionThread (): task invalid, exception thread start failed.
Nov  8 23:25:24 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 11 +0.273612 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:24 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 12 +0.141747 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:24 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 13 +0.137615 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:24 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 14 +0.138492 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:25 Jamess-iPad com.apple.launchd[1] (UIKitApplication:mycompanydemo.com.visitors[0x80c4]) <Notice>: (UIKitApplication:mycompanydemo.com.visitors[0x80c4]) Throttling respawn: Will start in 2147483645 seconds
Nov  8 23:25:25 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 15 +0.011613 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:25 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 16 +0.011525 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:25 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 17 +0.012655 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:25 Jamess-iPad kernel[0] <Debug>: launchd[3079] Container: /private/var/mobile/Applications/72965C49-4D0E-477C-A9E8-B0AB4B5D5F7A (sandbox)
Nov  8 23:25:25 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 18 +0.018690 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:25 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 19 +0.010570 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:25 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 20 +0.011306 sec [0c04/060b]: error: ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0807, pid = 3077, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
Nov  8 23:25:25 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: Could not get task port for process, sending SIGKILL and exiting.
Nov  8 23:25:25 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 21 +0.012988 sec [0c04/060b]: RNBRunLoopLaunchInferior DNBProcessLaunch() returned error: 'failed to get the task for process 3077'
Nov  8 23:25:25 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: error: failed to launch process /Developer/usr/bin/debugserver: failed to get the task for process 3077
Nov  8 23:25:25 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: 22 +0.002248 sec [0c04/180b]: error: ::read ( -1, 0x10051ba38, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Nov  8 23:25:25 Jamess-iPad com.apple.debugserver-300.2[3076] <Warning>: Exiting.
Nov  8 23:25:25 Jamess-iPad com.apple.debugserver-300.2[3075] <Warning>: 1 +0.000000 sec [0c03/060b]: error: ::read ( 6, 0x16fd76ce8, 1024 ) => 0 err = Function not implemented (0x0000004e)
Nov  8 23:25:25 Jamess-iPad com.apple.debugserver-300.2[3075] <Warning>: Exiting.
Nov  8 23:25:25 Jamess-iPad mobile_installation_proxy[189] <Error>: 0x10039c000 handle_connection: Could not receive request from host.
Nov  8 23:25:25 Jamess-iPad mobile_installation_proxy[189] <Error>: 0x101de4000 handle_connection: Could not receive request from host.
Comment 1 Marek Habersack 2013-11-09 06:34:45 UTC
James, the errors you showed look like they are issues with/on the device not related to Xamarin.iOS?
Comment 2 James Clancey 2013-11-10 09:16:42 UTC
It works from XS, and not from VS. It has to be our issue.
Comment 3 Marek Habersack 2013-11-14 08:25:54 UTC
Can you try with the latest 1.8 builds? I was able to debug just fine. Make sure that you have the latest MT on your mac too.
Comment 4 Alan McGovern 2013-11-14 11:18:02 UTC
If you hit this bug again and you quit and restart the Xamarin.iOS Build Host. There are a few known deadlocks in it which you could be experiencing. If restarting the build host fixes the issue for you, let me know. I have a few patches in master which fix the common deadlocks and those could be backported to MonoTouch 7.0.4.
Comment 5 Enzo Heredia 2015-06-30 11:48:38 UTC
not reproducible in XMA 4.0.0.307