wicd-curses crashes after successful connection

Bug #1126538 reported by Giulio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wicd
Fix Committed
Low
David Paleino

Bug Description

Version: wicd-curses-uimod (using wicd 1.7.0)
Linux distribution: Backtrack 5 R3 (Ubuntu 10.04.3 LTS - lucid)

---------------------------

FIX:

change line 156 (or in the newer version line 169) from:

"strength = misc.to_unicode(daemon.FormatSignalForPrinting(strength))"
to
"strength = misc.to_unicode(daemon.FormatSignalForPrinting(str(strength)))"

---------------------------------------

Details of the error:

After wicd-curses has successfully connected to a network it crashes giving:

DBus failure! This is most likely caused by the wicd daemon stopping while wicd-curses is running. Please restart the daemon, and then restart wicd-curses.

DBus failure! This is most likely caused by the wicd daemon stopping while wicd-curses is running. Please restart the daemon, and then restart wicd-curses.

DBus failure! This is most likely caused by the wicd daemon stopping while wicd-curses is running. Please restart the daemon, and then restart wicd-curses.
Traceback (most recent call last):
  File "/usr/share/wicd/curses/wicd-curses.py", line 1063, in <module>
    main()
  File "/usr/share/wicd/curses/wicd-curses.py", line 995, in main
    ui.run_wrapper(run)
  File "/usr/lib/pymodules/python2.6/urwid/raw_display.py", line 234, in run_wrapper
    return fn()
  File "/usr/share/wicd/curses/wicd-curses.py", line 88, in wrapper
    return func(*args, **kargs)
  File "/usr/share/wicd/curses/wicd-curses.py", line 1003, in run
    app = appGUI()
  File "/usr/share/wicd/curses/wicd-curses.py", line 591, in __init__
    self.update_status()
  File "/usr/share/wicd/curses/wicd-curses.py", line 88, in wrapper
    return func(*args, **kargs)
  File "/usr/share/wicd/curses/wicd-curses.py", line 734, in update_status
    self.set_status):
  File "/usr/share/wicd/curses/wicd-curses.py", line 88, in wrapper
    return func(*args, **kargs)
  File "/usr/share/wicd/curses/wicd-curses.py", line 156, in check_for_wireless
    strength = misc.to_unicode(daemon.FormatSignalForPrinting(strength))
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/share/wicd/daemon/wicd-daemon.py", line 320, in FormatSignalForPrinting
    return (signal + "%")
TypeError: unsupported operand type(s) for +: 'dbus.Int32' and 'str'

Revision history for this message
David Paleino (dpaleino) wrote :

Hello,

this was already fixed in another way, a while ago.

Please have a look at the code in bzr (which will be the next 1.7.3): FormatSignalForPrinting has been changed to return "%s%%" instead of using "+" to append strings.

Kindly,
David

Changed in wicd:
status: New → Fix Committed
milestone: none → 1.7.3
assignee: nobody → David Paleino (dpaleino)
importance: Undecided → Low
Changed in wicd:
status: Fix Committed → Fix Released
Changed in wicd:
status: Fix Released → Fix Committed
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.