Nicotine crashed because of unknown options in configuration

Bug #254992 reported by Àlex Magaz
26
Affects Status Importance Assigned to Milestone
Nicotine Plus
Fix Released
Unknown
nicotine (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: nicotine

Nicotine GUI freezes after upgrade from Gutsy to Hardy. If I run it from a console, I can see it failing with a traceback. This is the output I get:

[...]
('Unknown config option', 'totalqueue', 'section', 'transfers')
('Unknown config option', 'totalqueuelimit', 'section', 'transfers')
Traceback (most recent call last):
  File "/usr/bin/nicotine", line 195, in <module>
    app = frame.MainApp(config, trayicon)
  File "/var/lib/python-support/python2.5/pynicotine/gtkgui/frame.py", line 2692, in __init__
    self.frame = NicotineFrame(config, trayicon)
  File "/var/lib/python-support/python2.5/pynicotine/gtkgui/frame.py", line 400, in __init__
    self.OnRescan()
  File "/var/lib/python-support/python2.5/pynicotine/gtkgui/frame.py", line 1480, in OnRescan
    self.logMessage(_("Rescanning started"))
  File "/var/lib/python-support/python2.5/pynicotine/gtkgui/frame.py", line 1131, in logMessage
    AppendLine(self.LogWindow, old_msg, self.tag_log)
  File "/var/lib/python-support/python2.5/pynicotine/gtkgui/utils.py", line 258, in AppendLine
    if line.startswith("* "):
AttributeError: 'tuple' object has no attribute 'startswith'

As can been seen in the output, it fails because of two unknown options in the configuration file (.nicotine/config).

Package version is 1.2.9+dfsg-1.

The attached patch fixes the problem.

Related branches

Revision history for this message
Àlex Magaz (rivaldi8) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

Attached is a debdiff that incorporates your patch.

Changed in nicotine (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Brian Murray (brian-murray) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

13:33 < bdmurray> Could I get an ack for bug 254992?
13:33 < ubottu> Launchpad bug 254992 in nicotine "Nicotine crashed
                because of unknown options in configuration"
                [Medium,Triaged] https://launchpad.net/bugs/254992
13:51 < slangasek> bdmurray: sure, looks like a straightforward
                   bugfix to me

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nicotine - 1.2.9+dfsg-3ubuntu1

---------------
nicotine (1.2.9+dfsg-3ubuntu1) jaunty; urgency=low

  * Add 15_no_crash_on_unknown_config.patch: resolve a hang with unknown
    config options. Thanks to Alex Magaz for the original patch.
    (LP: #254992)

 -- Brian Murray <email address hidden> Thu, 09 Apr 2009 13:02:41 -0700

Changed in nicotine (Ubuntu):
status: Triaged → Fix Released
Changed in nicotine:
status: Unknown → New
Changed in nicotine:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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