Cannot launch gdbserver

I can’t debug app using Nsight Tegra Debugger in my VS2015. getting error “Cannot launch gdbserver: all options have failed”. my device is Sumsung note (GT-N7000) Android 4.0.3. internal version IML74K.ZSLPF.

some log from Nsight Tegra.log file is as following, any idea what cause the problem? thanks.

2016-10-20 22:05:09.8599|INFO|Nvidia.PentaK.Utilities.RedirProcess|393-stderr:

2016-10-20 22:05:09.8599|INFO|Nvidia.PentaK.Utilities.RedirProcess|393-exited: code 0, finished in 63 ms

2016-10-20 22:05:09.8599|INFO|Nvidia.PentaK.Utilities.RedirProcess|394-launch: C:\NVPACK\android-sdk-windows\platform-tools\adb.exe “-s 304D19BA74242C3F shell ps” [C:\NVPACK\android-sdk-windows\platform-tools]

2016-10-20 22:05:09.9559|INFO|Nvidia.PentaK.Utilities.RedirProcess|394-stderr:

2016-10-20 22:05:09.9559|INFO|Nvidia.PentaK.Utilities.RedirProcess|394-stdout:

USER PID PPID VSIZE RSS WCHAN PC NAME
root 1 0 476 328 ffffffff 00000000 S /init
root 2 0 0 0 ffffffff 00000000 S kthreadd
root 3 2 0 0 ffffffff 00000000 S ksoftirqd/0
root 4 2 0 0 ffffffff 00000000 S kworker/0:0
root 5 2 0 0 ffffffff 00000000 S kworker/u:0
root 6 2 0 0 ffffffff 00000000 S migration/0
root 7 2 0 0 ffffffff 00000000 S watchdog/0
root 12 2 0 0 ffffffff 00000000 S khelper
root 13 2 0 0 ffffffff 00000000 S kworker/u:1
root 19 2 0 0 ffffffff 00000000 S sync_system_wor
root 371 2 0 0 ffffffff 00000000 S sync_supers
root 373 2 0 0 ffffffff 00000000 S bdi-default
root 375 2 0 0 ffffffff 00000000 S kblockd
root 388 2 0 0 ffffffff 00000000 S khubd
root 428 2 0 0 ffffffff 00000000 S irq/359-max8997
root 482 2 0 0 ffffffff 00000000 S kworker/0:1
root 483 2 0 0 ffffffff 00000000 S cfg80211
root 587 2 0 0 ffffffff 00000000 S khungtaskd
root 588 2 0 0 ffffffff 00000000 S kswapd0
root 639 2 0 0 ffffffff 00000000 S fsnotify_mark
root 657 2 0 0 ffffffff 00000000 S ecryptfs-kthrea
root 661 2 0 0 ffffffff 00000000 S crypto
root 755 2 0 0 ffffffff 00000000 S sec_jack_wq
root 758 2 0 0 ffffffff 00000000 S irq/378-sec_hea
root 764 2 0 0 ffffffff 00000000 S irq/367-pn544
root 803 2 0 0 ffffffff 00000000 S file-storage
root 815 2 0 0 ffffffff 00000000 S irq/356-mxt540e
root 866 2 0 0 ffffffff 00000000 S mali_dvfs
root 869 2 0 0 ffffffff 00000000 S mali-pmm-wq
root 871 2 0 0 ffffffff 00000000 S sii9234_wq
root 872 2 0 0 ffffffff 00000000 S sii9234_msc_wq
root 875 2 0 0 ffffffff 00000000 S irq/413-sii9234
root 885 2 0 0 ffffffff 00000000 S irq/371-max1704
root 905 2 0 0 ffffffff 00000000 S kworker/u:2
root 909 2 0 0 ffffffff 00000000 S mmcqd/0
root 927 2 0 0 ffffffff 00000000 S irq/380-s3c-sdh
root 971 2 0 0 ffffffff 00000000 S binder
root 983 2 0 0 ffffffff 00000000 S bmp180_wq
root 988 2 0 0 ffffffff 00000000 S irq/354-proximi
root 991 2 0 0 ffffffff 00000000 S gp2a_wq
root 1000 2 0 0 ffffffff 00000000 S irq/353-k3g
root 1019 2 0 0 ffffffff 00000000 S mmcqd/1
root 1044 2 0 0 ffffffff 00000000 S krfcommd
root 1053 2 0 0 ffffffff 00000000 S s5p-tmu
root 1056 2 0 0 ffffffff 00000000 S xmm6260_evt_wq
root 1057 2 0 0 ffffffff 00000000 S usb_tx_wq
root 1059 2 0 0 ffffffff 00000000 S linkpmd
root 1088 2 0 0 ffffffff 00000000 S irq/405-sec_tou
root 1092 2 0 0 ffffffff 00000000 S irq/392-
root 1093 2 0 0 ffffffff 00000000 S irq/390-
root 1097 2 0 0 ffffffff 00000000 S fimc0_iqr_wq_na
root 1099 2 0 0 ffffffff 00000000 S fimc1_iqr_wq_na
root 1101 2 0 0 ffffffff 00000000 S fimc2_iqr_wq_na
root 1103 2 0 0 ffffffff 00000000 S fimc3_iqr_wq_na
root 1105 2 0 0 ffffffff 00000000 S hdcp work
root 1117 2 0 0 ffffffff 00000000 S tvout resume wo
root 1121 2 0 0 ffffffff 00000000 S kworker/0:2
root 1124 2 0 0 ffffffff 00000000 S sec-battery
root 1133 1 344 184 ffffffff 00000000 S /sbin/ueventd
root 1250 2 0 0 ffffffff 00000000 S Si4709_wq
root 1343 2 0 0 ffffffff 00000000 S jbd2/mmcblk0p9-
root 1345 2 0 0 ffffffff 00000000 S ext4-dio-unwrit
root 1682 2 0 0 ffffffff 00000000 S jbd2/mmcblk0p7-
root 1683 2 0 0 ffffffff 00000000 S ext4-dio-unwrit
root 1685 2 0 0 ffffffff 00000000 S jbd2/mmcblk0p1-
root 1686 2 0 0 ffffffff 00000000 S ext4-dio-unwrit
root 1693 2 0 0 ffffffff 00000000 S jbd2/mmcblk0p10
root 1694 2 0 0 ffffffff 00000000 S ext4-dio-unwrit
system 1697 1 876 272 ffffffff 00000000 S /system/bin/servicemanager
root 1698 1 16380 4676 ffffffff 00000000 S /system/bin/vold
root 1700 1 7516 1068 ffffffff 00000000 S /system/bin/netd
root 1701 1 1840 620 ffffffff 00000000 S /system/bin/debuggerd
radio 1702 1 10996 2708 ffffffff 00000000 S /system/bin/rild
system 1703 1 8584 1104 ffffffff 00000000 S /system/bin/drexe
system 1704 1 2036 652 ffffffff 00000000 S /system/bin/npsmobex
system 1705 1 78300 5916 ffffffff 00000000 S /system/bin/surfaceflinger
root 1706 1 445220 45096 ffffffff 00000000 S zygote
drm 1707 1 18840 6452 ffffffff 00000000 S /system/bin/drmserver
media 1708 1 48456 10236 ffffffff 00000000 S /system/bin/mediaserver
gps 1709 1 13348 3536 ffffffff 00000000 S /system/bin/gpsd
bluetooth 1710 1 1380 764 ffffffff 00000000 S /system/bin/dbus-daemon
root 1711 1 884 332 ffffffff 00000000 S /system/bin/installd
keystore 1712 1 1776 580 ffffffff 00000000 S /system/bin/keystore
system 1714 1 8996 2536 ffffffff 00000000 S /system/bin/bintvoutservice
shell 1715 1 808 384 ffffffff 00000000 S /system/bin/sh
shell 1717 1 4500 204 ffffffff 00000000 S /sbin/adbd
shell 1721 1 800 352 c03104c0 4009c52c S /system/bin/immvibed
shell 1737 1715 984 296 ffffffff 00000000 S sleep
root 1837 2 0 0 ffffffff 00000000 S flush-179:0
system 1866 1706 612712 88052 ffffffff 00000000 S system_server
system 1995 1706 497420 58484 ffffffff 00000000 S com.android.systemui
root 2031 2 0 0 ffffffff 00000000 S dhd_cfg80211_ev
root 2035 2 0 0 ffffffff 00000000 S dhd_watchdog
root 2038 2 0 0 ffffffff 00000000 S dhd_dpc
root 2039 2 0 0 ffffffff 00000000 S dhd_sysioc
wifi 2078 1 3008 1624 ffffffff 00000000 S /system/bin/wpa_supplicant
system 2096 1706 469580 41844 ffffffff 00000000 S com.samsung.inputmethod
dhcp 2111 1 968 468 ffffffff 00000000 S /system/bin/dhcpcd
radio 2114 1706 470276 45744 ffffffff 00000000 S com.android.phone
app_1 2130 1706 469620 67008 ffffffff 00000000 S com.sec.android.app.twlauncher
root 2195 2 0 0 ffffffff 00000000 S kworker/u:3
app_14 2215 1706 481580 44284 ffffffff 00000000 S com.google.process.gapps
app_21 2226 1706 462512 49860 ffffffff 00000000 S android.process.media
app_103 2244 1706 452524 34704 ffffffff 00000000 S com.android.smspush
app_2 2283 1706 464696 40996 ffffffff 00000000 S android.process.acore
system 2413 1706 452632 35088 ffffffff 00000000 S com.android.server.vpn.enterprise:remote
app_2 2526 1706 462756 39376 ffffffff 00000000 S com.android.contacts
app_18 2694 1706 454444 35724 ffffffff 00000000 S com.sec.android.widgetapp.digitalclock
app_82 2735 1706 454656 35060 ffffffff 00000000 S com.sec.phone
app_10 2767 1706 452700 35288 ffffffff 00000000 S com.samsung.map
app_48 2979 1706 457812 43044 ffffffff 00000000 S com.android.mms
system 3019 1706 472968 83536 ffffffff 00000000 S com.android.MtpApplication
app_69 3045 1706 460904 54296 ffffffff 00000000 S com.sec.android.widgetapp.diotek.smemo
app_79 3087 1706 459244 38588 ffffffff 00000000 S com.android.browser
app_91 3135 1706 455312 37536 ffffffff 00000000 S com.sec.android.app.sns
app_92 3153 1706 454844 37300 ffffffff 00000000 S com.sec.android.socialhub
app_92 3165 1706 455856 38056 ffffffff 00000000 S com.sec.android.socialhub:service
app_96 3225 1706 461036 38736 ffffffff 00000000 S com.google.android.talk
app_110 3259 1706 457256 39888 ffffffff 00000000 S com.vlingo.client.samsung
app_111 3272 1706 466204 40004 ffffffff 00000000 S com.noshufou.android.su
app_114 3286 1706 466152 45688 ffffffff 00000000 S com.efund.jqb
app_114 3301 3286 464744 35020 ffffffff 00000000 S com.efund.jqb
app_49 3306 1706 452544 34696 ffffffff 00000000 S com.sec.android.app.MmsProvision
app_73 3320 1706 453620 35356 ffffffff 00000000 S com.sec.android.widgetapp.apnews
app_75 3332 1706 454332 36196 ffffffff 00000000 S com.sec.android.widgetapp.stockclock
app_25 3344 1706 452540 34684 ffffffff 00000000 S com.sec.android.app.FileTransferManager
app_31 3356 1706 454748 38860 ffffffff 00000000 S com.cooliris.media
app_46 3370 1706 455656 36212 ffffffff 00000000 S com.google.android.apps.uploader
app_61 3385 1706 465624 41024 ffffffff 00000000 S com.google.android.apps.plus
app_30 3400 1706 462396 40740 ffffffff 00000000 S com.google.android.apps.maps:LocationFriendService
app_33 3417 1706 456876 37484 ffffffff 00000000 S com.google.android.gm
app_76 3432 1706 454412 36664 ffffffff 00000000 S com.sec.android.widgetapp.weatherclock
app_74 3445 1706 452536 34688 ffffffff 00000000 S com.sec.android.widgetapp.programmonitorwidget
system 3464 1706 453328 34924 ffffffff 00000000 S com.sec.android.app.factorytest
app_59 3476 1706 455612 35584 ffffffff 00000000 S com.sec.android.mimage.photoretouching
app_89 3489 1706 453168 35732 ffffffff 00000000 S com.sec.android.app.snsaccount
app_90 3501 1706 452572 35032 ffffffff 00000000 S com.sec.android.app.snsimagecache
app_81 3514 1706 453396 37244 ffffffff 00000000 S com.android.providers.calendar
root 3543 2 0 0 ffffffff 00000000 S flush-179:8
app_28 3558 1706 453672 35656 ffffffff 00000000 S com.sec.android.app.fm
system 3571 1706 453572 34684 ffffffff 00000000 S com.sec.android.app.twdvfs
app_41 3612 1706 452572 35040 ffffffff 00000000 S com.sec.android.app.controlpanel
root 3626 2 0 0 ffffffff 00000000 S migration/1
root 3627 2 0 0 ffffffff 00000000 S kworker/1:0
root 3628 2 0 0 ffffffff 00000000 S ksoftirqd/1
root 3629 2 0 0 ffffffff 00000000 S watchdog/1
root 3630 2 0 0 ffffffff 00000000 S kworker/1:1
app_115 3643 1706 452500 34544 ffffffff 00000000 S mytest.natapp1
shell 3673 1717 800 380 c0248490 4003bf84 S /system/bin/sh
shell 3675 3673 992 352 00000000 4005d568 R ps

2016-10-20 22:05:09.9559|INFO|Nvidia.PentaK.Utilities.RedirProcess|394-exited: code 0, finished in 93 ms

2016-10-20 22:05:09.9579|INFO|Nvidia.PentaK.Utilities.RedirProcess|395-launch: C:\NVPACK\android-sdk-windows\platform-tools\adb.exe “-s 304D19BA74242C3F shell su -c ls -laR /data/data/mytest.natapp1/lib/gdbserver” [C:\NVPACK\android-sdk-windows\platform-tools]

2016-10-20 22:05:10.0349|INFO|Nvidia.PentaK.Utilities.RedirProcess|395-stderr:

2016-10-20 22:05:10.0349|INFO|Nvidia.PentaK.Utilities.RedirProcess|395-stdout:

Usage: su [options] [LOGIN]

Options:
-c, --command COMMAND pass COMMAND to the invoked shell
-h, --help display this help message and exit
-, -l, --login make the shell a login shell
-s, --shell SHELL use SHELL instead of the default in passwd
-v, --version display version number and exit
-V display version code and exit. this is
used almost exclusively by Superuser.apk

2016-10-20 22:05:10.0349|INFO|Nvidia.PentaK.Utilities.RedirProcess|395-exited: code 0, finished in 78 ms

2016-10-20 22:05:10.0349|INFO|Nvidia.PentaK.Utilities.RedirProcess|396-launch: C:\NVPACK\android-sdk-windows\platform-tools\adb.exe “-s 304D19BA74242C3F shell su -c ls -laR /data/data/mytest.natapp1/gdbserver” [C:\NVPACK\android-sdk-windows\platform-tools]

2016-10-20 22:05:10.1139|INFO|Nvidia.PentaK.Utilities.RedirProcess|396-stdout:

Usage: su [options] [LOGIN]

Options:
-c, --command COMMAND pass COMMAND to the invoked shell
-h, --help display this help message and exit
-, -l, --login make the shell a login shell
-s, --shell SHELL use SHELL instead of the default in passwd
-v, --version display version number and exit
-V display version code and exit. this is
used almost exclusively by Superuser.apk

2016-10-20 22:05:10.1139|INFO|Nvidia.PentaK.Utilities.RedirProcess|396-stderr:

2016-10-20 22:05:10.1139|INFO|Nvidia.PentaK.Utilities.RedirProcess|396-exited: code 0, finished in 78 ms

2016-10-20 22:05:10.1139|INFO|Nvidia.PentaK.Utilities.RedirProcess|397-launch: C:\NVPACK\android-sdk-windows\platform-tools\adb.exe “-s 304D19BA74242C3F shell ls -laR /data/local/tmp/gdbserver” [C:\NVPACK\android-sdk-windows\platform-tools]

2016-10-20 22:05:10.1959|INFO|Nvidia.PentaK.Utilities.RedirProcess|397-stdout:

-rwxrwxrwx shell shell 772700 2016-08-11 12:43 gdbserver

2016-10-20 22:05:10.1959|INFO|Nvidia.PentaK.Utilities.RedirProcess|397-stderr:

2016-10-20 22:05:10.1959|INFO|Nvidia.PentaK.Utilities.RedirProcess|397-exited: code 0, finished in 78 ms

2016-10-20 22:05:10.1959|INFO|Nvidia.PentaK.Utilities.RedirProcess|398-launch: C:\NVPACK\android-sdk-windows\platform-tools\adb.exe “-s 304D19BA74242C3F shell chmod 777 /data/local/tmp/gdbserver” [C:\NVPACK\android-sdk-windows\platform-tools]

2016-10-20 22:05:10.2649|INFO|Nvidia.PentaK.Utilities.RedirProcess|398-stderr:

2016-10-20 22:05:10.2649|INFO|Nvidia.PentaK.Utilities.RedirProcess|398-stdout:

2016-10-20 22:05:10.2649|INFO|Nvidia.PentaK.Utilities.RedirProcess|398-exited: code 0, finished in 62 ms

2016-10-20 22:05:10.2649|INFO|Nvidia.PentaK.Target.Android.AndroidDebuggingStrategy|Trying /data/local/tmp/gdbserver

2016-10-20 22:05:10.3449|INFO|Nvidia.PentaK.Target.Android.Tools.GdbServer|[GDBSERVER] stdout: Usage: su [options] [LOGIN]

2016-10-20 22:05:10.3449|WARN|Nvidia.PentaK.Target.Android.AndroidDebuggingStrategy|Failed: Usage: su [options] [LOGIN]

2016-10-20 22:05:10.3449|INFO|Nvidia.PentaK.Utilities.RedirProcess|399-launch: C:\NVPACK\android-sdk-windows\platform-tools\adb.exe “-s 304D19BA74242C3F shell cat /data/local/tmp/gdbserver | run-as mytest.natapp1 sh -c ‘cat > /data/data/mytest.natapp1/gdbserver’” [C:\NVPACK\android-sdk-windows\platform-tools]

2016-10-20 22:05:10.4549|INFO|Nvidia.PentaK.Utilities.RedirProcess|399-stdout:

2016-10-20 22:05:10.4549|INFO|Nvidia.PentaK.Utilities.RedirProcess|399-stderr:

2016-10-20 22:05:10.4549|INFO|Nvidia.PentaK.Utilities.RedirProcess|399-exited: code 0, finished in 109 ms

2016-10-20 22:05:10.4549|INFO|Nvidia.PentaK.Utilities.RedirProcess|400-launch: C:\NVPACK\android-sdk-windows\platform-tools\adb.exe “-s 304D19BA74242C3F shell su -c chmod 777 /data/data/mytest.natapp1/gdbserver” [C:\NVPACK\android-sdk-windows\platform-tools]

2016-10-20 22:05:10.5339|INFO|Nvidia.PentaK.Utilities.RedirProcess|400-stderr:

2016-10-20 22:05:10.5339|INFO|Nvidia.PentaK.Utilities.RedirProcess|400-stdout:

Usage: su [options] [LOGIN]

Options:
-c, --command COMMAND pass COMMAND to the invoked shell
-h, --help display this help message and exit
-, -l, --login make the shell a login shell
-s, --shell SHELL use SHELL instead of the default in passwd
-v, --version display version number and exit
-V display version code and exit. this is
used almost exclusively by Superuser.apk

2016-10-20 22:05:10.5339|INFO|Nvidia.PentaK.Utilities.RedirProcess|400-exited: code 0, finished in 78 ms

2016-10-20 22:05:10.5339|INFO|Nvidia.PentaK.Target.Android.AndroidDebuggingStrategy|Trying /data/data/mytest.natapp1/gdbserver

2016-10-20 22:05:10.6099|INFO|Nvidia.PentaK.Target.Android.Tools.GdbServer|[GDBSERVER] stdout: Usage: su [options] [LOGIN]

2016-10-20 22:05:10.6099|WARN|Nvidia.PentaK.Target.Android.AndroidDebuggingStrategy|Failed: Usage: su [options] [LOGIN]

2016-10-20 22:05:10.6099|INFO|Nvidia.PentaK.Target.Android.AndroidDebuggingStrategy|Trying /data/data/mytest.natapp1/lib/gdbserver

2016-10-20 22:05:10.6839|INFO|Nvidia.PentaK.Target.Android.Tools.GdbServer|[GDBSERVER] stdout: Usage: su [options] [LOGIN]

2016-10-20 22:05:10.6839|WARN|Nvidia.PentaK.Target.Android.AndroidDebuggingStrategy|Failed: Usage: su [options] [LOGIN]

2016-10-20 22:05:10.6839|WARN|Nvidia.PentaK.Target.Android.AndroidDebuggingStrategy|All options have failed

2016-10-20 22:05:10.6839|INFO|Nvidia.PentaK.Utilities.RedirProcess|401-launch: C:\NVPACK\android-sdk-windows\platform-tools\adb.exe “-s 304D19BA74242C3F shell am force-stop mytest.natapp1” [C:\NVPACK\android-sdk-windows\platform-tools]

2016-10-20 22:05:10.6949|INFO|Nvidia.PentaK.PentaKPackage|[PentaKPackage] Mode changed to DBGMODE_Design

2016-10-20 22:05:11.3269|INFO|Nvidia.PentaK.Utilities.RedirProcess|401-stdout:

2016-10-20 22:05:11.3269|INFO|Nvidia.PentaK.Utilities.RedirProcess|401-stderr:

2016-10-20 22:05:11.3269|INFO|Nvidia.PentaK.Utilities.RedirProcess|401-exited: code 0, finished in 640 ms

hi miiikee,
I will try to reproduce your issue on our lab. please be patient to out investigating result

Thanks Frankie!

that’s all right, I suggest you flash the device with rooted firmware if you are blocked by this issue. that’s the workaround for a quick solution

Hello [b]miiikee[b] and thank you for using our tool!
Please check if previously released Nsight Tegra VSE 3.2 works with your device:
https://developer.nvidia.com/nsight-visual-studio-edition-3_2
At first, it makes sense to try it with a new sample project created from “Android Native Application” project template.