← Back to team overview

openshot.developers team mailing list archive

[Bug 488717] Re: Openshot doesn't start anymore

 

the included patch solves bug #488717
It was due to an unhandled exception in case of invalid or empty config.xml preferences file.
Now in the case the config.xml can't be correctly parsed (invalid, broken or empty)  file is re-created using default values

the bug is fixed in my branch too: 
lp:~francesco-hermanitosverdes/openshot/hv_francesco

** Attachment added: "invalid_config_file_handling.diff"
   http://launchpadlibrarian.net/37906572/invalid_config_file_handling.diff

** Changed in: openshot
       Status: New => Fix Committed

-- 
Openshot doesn't start anymore
https://bugs.launchpad.net/bugs/488717
You received this bug notification because you are a member of OpenShot
Developers, which is subscribed to OpenShot Video Editor.

Status in OpenShot Video Editor: Fix Committed

Bug description:
With the new ppa installation on Karmic Koala 6 bit Openshot worked great until  yesterday, today it doesn't start.
This is the output on the terminal:

giorgia@giorgia-desktop:~$ openshot
Added /usr/share/openshot to system path
--------------------------------
   OpenShot (version 0.9.54)
--------------------------------
/usr/share/openshot/windows/SimpleGladeApp.py:340: GtkWarning: gtk_toolbar_set_icon_size: assertion `icon_size != GTK_ICON_SIZE_INVALID' failed
  return gtk.glade.XML(self.glade_path, root, domain)
A new frmMain has been created
Traceback (most recent call last):
  File "/usr/bin/openshot", line 50, in <module>
    main()
  File "/usr/share/openshot/openshot.py", line 57, in main
    form1 = MainGTK.frmMain(project=current_project, version=info.SETUP['version'])
  File "/usr/share/openshot/windows/MainGTK.py", line 160, in __init__
    self.settings.load_settings_from_xml()
  File "/usr/share/openshot/windows/preferences.py", line 207, in load_settings_from_xml
    xmldoc = xml.parse(settings_path)
  File "/usr/lib/python2.6/xml/dom/minidom.py", line 1918, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.6/xml/dom/expatbuilder.py", line 925, in parse
    result = builder.parseFile(fp)
  File "/usr/lib/python2.6/xml/dom/expatbuilder.py", line 212, in parseFile
    parser.Parse("", True)
xml.parsers.expat.ExpatError: no element found: line 1, column 0





References