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
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/
= setting up network...
Network file is /etc/NetworkMan
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: | 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 |
To post a comment you must log in.
I re-tested against utah tip this morning:
sudo PYTHONPATH=./utah ./utah/ examples/ run_utah_ phablet. py --skip-install ager/system- connections/ GLMLINUX
= setting up network...
error: device not found
Network file is /etc/NetworkMan
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 htons(5037) , sin_addr= inet_addr( "127.0. 0.1")}, 16) = 0 htons(5037) , sin_addr= inet_addr( "127.0. 0.1")}, 16) = 0 for-any" , 17) = 17
[pid 12054] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
[pid 12054] connect(3, {sa_family=AF_INET, sin_port=
[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=
[pid 12054] write(3, "0011", 4) = 4
[pid 12054] write(3, "host:wait-
[pid 12054] read(3, "OKAY", 4) = 4
[pid 12054] read(3,