fails to start due to XML error

Bug #1033421 reported by Wichert Akkerman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
radiotray (Ubuntu)
New
Undecided
Unassigned

Bug Description

After a recent update of precise radiotray no longer starts. It now immediately exits with this error:

Traceback (most recent call last):
  File "/usr/bin/radiotray", line 15, in <module>
    radiotray.main(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/radiotray/radiotray.py", line 37, in main
    RadioTray()
  File "/usr/lib/python2.7/dist-packages/radiotray/RadioTray.py", line 58, in __init__
    self.cfg_provider.loadFromFile()
  File "/usr/lib/python2.7/dist-packages/radiotray/XmlConfigProvider.py", line 37, in loadFromFile
    self.root = etree.parse(self.filename).getroot()
  File "lxml.etree.pyx", line 2953, in lxml.etree.parse (src/lxml/lxml.etree.c:56204)
  File "parser.pxi", line 1533, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:82287)
  File "parser.pxi", line 1562, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:82580)
  File "parser.pxi", line 1462, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:81619)
  File "parser.pxi", line 1002, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:78528)
  File "parser.pxi", line 569, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:74472)
  File "parser.pxi", line 650, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:75363)
  File "parser.pxi", line 590, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:74696)
lxml.etree.XMLSyntaxError: Document is empty, line 1, column 1

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: radiotray 0.7.2-1ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-27.43-generic 3.2.21
Uname: Linux 3.2.0-27-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.0.1-0ubuntu11
Architecture: amd64
Date: Mon Aug 6 09:28:46 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
SourcePackage: radiotray
UpgradeStatus: Upgraded to precise on 2012-04-27 (101 days ago)

Revision history for this message
Wichert Akkerman (wichert) wrote :
Revision history for this message
Wichert Akkerman (wichert) wrote :

This appears to be caused by an empty ~/.local/share/radiotray/config.xml file: deleting that file makes radiotray start again.

Revision history for this message
Wichert Akkerman (wichert) wrote :

I figured out how you get an empty config.xml file. Just follow these steps:

1. login on your desktop
2. start radiotray
3. sudo shutdown -h now

Step 3 can probably be replaced with a kill -HUP or -TERM send to radiotray.

Revision history for this message
Oskar Wallgren (oskar.wallgren) wrote :
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.