hwdb-gui hangs if there's no default network route.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hwdb-client (Ubuntu) |
Confirmed
|
Medium
|
Oliver Grawert |
Bug Description
/usr/bin/hwdb-gui's getroute() doesn't cope with
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
$
as my machine has. It changes the title to `Network test' but the `Is
your mouse working properly?' caption remains from the previous one.
The program then apparently hangs.
Starting it from the command line gives a trace-back.
$ hwdb-gui
cat: /proc/asound/
Traceback (most recent call last):
File "/tmp/hwdb-gui", line 126, in <lambda>
File "/tmp/hwdb-gui", line 563, in adv
File "/tmp/hwdb-gui", line 166, in test
netdevice = self.getroute(
File "/tmp/hwdb-gui", line 214, in getroute
return route
UnboundLoca
The problem is `route' has no value unless route(8)'s output has a
default route.
def getroute(self):
for line in os.popen('route -n'):
if line.startswith
return route
Also, note the unrelated error from cat(1) at the start of the output.
Sorry, I disagree this bug is a dupe of 18125. That bug is to do with the route command not being found in the user's PATH. This bug is about route being run correctly, but hwdb-gui not parsing the valid, correct, output of no routes being present.