adb version in ./tools/perf/run_benchmark

30 views
Skip to first unread message

Liviu Tinta

unread,
Jul 29, 2020, 5:28:35 PM7/29/20
to telemetry
Hi,

I am looking to run ./tools/perf/run_benchmark on my gLinux workstation using a rooted Pixel3, Pixel3 connected to my Mac and an SSH Tunnel between my Mac and my gLinux workstation (on port 5037).

I get an error like similar to this (see :
(CRITICAL) 2020-07-08 15:36:10,188 timeout_retry.Run:178  (TimeoutThread-1-for-MainThread) Exception on _RunAdbCmd(<class 'devil.android.sdk.adb_wrapper.AdbWrapper'>, ['devices'], retries=2, timeout=30), attempt 1 of 3: AdbCommandFailedError("adb devices: failed with exit status 1 and output:\n- cannot bind 'tcp:5037': Address already in use\n- ADB server didn't ACK\n- * failed to start daemon *\n- error: \n- error: \n- List of devices attached\n- adb server is out of date.  killing...\n",)

I checked the adb versions on:
- my Mac: adb version 1.0.41
- android sdk adb version: /third_party/android_sdk/public/platform-tools/adb version 1.0.41
- adb version used by ./tools/perf/run_benchmark: /third_party/catapult/devil/bin/deps/linux2/x86_64/bin/adb version 1.0.32 

Then I checked if these adb executables can see my Pixel3. 
- adb on Mac can see it
/third_party/android_sdk/public/platform-tools/adb can see it through the SSH tunnel
/third_party/catapult/devil/bin/deps/linux2/x86_64/bin/adb fails to see the device through the SSH Tunnel and gives "adb server out of date" error

This points to the different version of adb as a source of the problem.

Is there a way to configure a different adb executable for ./tools/perf/run_benchmark ? Maybe using the android sdk version /third_party/android_sdk/public/platform-tools/adb would make it work?

Regards,
Liviu
Reply all
Reply to author
Forward
0 new messages