wicd-curses: Crash and raise IndexError, "No widget at position %s"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wicd |
Fix Committed
|
High
|
Unassigned |
Bug Description
Hi,
I'm running wicd on archlinux.
There is my version:
wicd-curses --version -I-
wicd-curses-uimod (using wicd 1.7.2.4)
The traceback:
ERROR:dbus.
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
return func(*args, **kargs)
File "/usr/share/
self.
File "/usr/lib/
self.
File "/usr/lib/
raise IndexError, "No widget at position %s" % (position,)
IndexError: No widget at position 2
I don't exactly known when it crashes. It seems it happens when a new connexion is set up.
Not reproducible each time, it occurs about Three times a week (my computer is running half a day).
Changed in wicd: | |
status: | New → Confirmed |
I also met this problem, the version is:
$ wicd-curses --version -I-
wicd-curses-uimod (using wicd 1.7.2.4)
It's easy to reproduce in a environment with many access points, continue refresh and move the focus to the access point at the bottom each time, when the numbers of access points scanned this time is less than last time, it can't focus on a non-exist access point, crash comes out.
I've view some code and get a solution, change
self. wlessLB. set_focus( self.focusloc[ 1]) wlessLB. set_focus( min(self. focusloc[ 1], len(self. wlessLB. body) -1))
into
self.
in line 703 of wicd-curses.py, it will focus on last access point when get less access points then last scan.