utah on phablet, USB not plugged in hangs for ever even when "device not found" error is reported

Bug #1192099 reported by Colin Ian King
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UTAH
New
Undecided
Unassigned

Bug Description

Invoking run_itah_phablet.py when the USB adb connection is not plugged it causes the script to hang indefinitely:

sudo PYTHONPATH=./touch ./touch/examples/run_utah_phablet.py --skip-install -l /home/phablet/utah_tests_pm/pm_idle.run --results-dir /home/king/nexus-power/utah/results -d /home/king/nexus-power/utah/touch/disconnected.sh
= setting up network...
Network file is /etc/NetworkManager/system-connections/GLMLINUX
Provisioning network file to device
error: device not found

Although this is indeed a mistake by the user, there is a "error: device not found" error that is reported, so perhaps this error can be detected and the script exits rather than waiting forever.

Tags: phablet
Andy Doan (doanac)
tags: added: phablet
summary: - utah on phablet, USB not plugged in hangs for ever even when "deivce not
+ utah on phablet, USB not plugged in hangs for ever even when "device not
found" error is reported
Revision history for this message
Colin Ian King (colin-king) wrote :

I re-tested against utah tip this morning:

sudo PYTHONPATH=./utah ./utah/examples/run_utah_phablet.py --skip-install
= setting up network...
error: device not found
Network file is /etc/NetworkManager/system-connections/GLMLINUX
Provisioning network file to device
error: device not found

Running it with strace show's where it blocks:

[pid 12054] getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
[pid 12054] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
[pid 12054] connect(3, {sa_family=AF_INET, sin_port=htons(5037), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid 12054] write(3, "000c", 4) = 4
[pid 12054] write(3, "host:version", 12) = 12
[pid 12054] read(3, "OKAY", 4) = 4
[pid 12054] read(3, "0004", 4) = 4
[pid 12054] read(3, "001f", 4) = 4
[pid 12054] close(3) = 0
[pid 12054] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
[pid 12054] connect(3, {sa_family=AF_INET, sin_port=htons(5037), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
[pid 12054] write(3, "0011", 4) = 4
[pid 12054] write(3, "host:wait-for-any", 17) = 17
[pid 12054] read(3, "OKAY", 4) = 4
[pid 12054] read(3,

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.