Invalid or empty config.xml prevents OpenShot from Launching

Bug #488717 reported by Giorgia91
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
Fix Released
Medium
Unassigned

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

Tags: patch
Revision history for this message
Olivier Girard (eolinwen) wrote :

Hello Giorgia91
I have perhaps a solution. Try to do that on a console:
cd .openshot
rm pid.lock
and try again to launch Openshot.
I hope that will be a sucess.:)

Revision history for this message
Olivier Girard (eolinwen) wrote :

If it doesn't work , remove the .openshot and type in a terminal : openshot
and normaly it will work.

Revision history for this message
Giorgia91 (giorgiark) wrote :

thank you, I've removed the .openshot directory, now it work

Changed in openshot:
status: New → Fix Committed
status: Fix Committed → Incomplete
status: Incomplete → New
Revision history for this message
Olivier Girard (eolinwen) wrote : Re: [Openshot.developers] [Bug 488717] Re: Openshot doesn't start anymore

And the first solution doesn't work before ? only when you have remove the
secret folder ?

2009/11/26 Giorgia91 <email address hidden>

> thank you, I've removed the .openshot directory, now it work
>
> ** Changed in: openshot
> Status: New => Fix Committed
>
> ** Changed in: openshot
> Status: Fix Committed => Incomplete
>
> ** Changed in: openshot
> Status: Incomplete => New
>
> --
> 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: New
>
> 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
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> More help : https://help.launchpad.net/ListHelp
>

--
Cenwen un elfe sur la banquise/ an elve on the ice
Mon blog perso sur le multimédia, Ubuntu, Linux et OpenShot :
http://linuxevolution.wordpress.com/
http://openshotusers.com/
http://openshotusers.com/forum/index.php

Revision history for this message
Giorgia91 (giorgiark) wrote : Re: Openshot doesn't start anymore

no the first solution doesn't work

Revision history for this message
Andy Finch (fincha) wrote :

Looks like a problem reading the settings file (which is in the .openshot folder).

Revision history for this message
Giorgia91 (giorgiark) wrote :

only it works removing the .openshot folder

Revision history for this message
Olivier Girard (eolinwen) wrote :

Yes there is a lot of people which have this problem after an update to 0.9.53 at 0.9.54. Now we know where but not why, and we have an issue.

Revision history for this message
Jonathan Thomas (jonoomph) wrote : Re: [Openshot.developers] [Bug 488717] Re: Openshot doesn't start anymore

The next time someone has this problem, please attach the
~/.openshot/config.xml file to this bug. It looks like a bug in our XML
config file, that can no longer be parsed when OpenShot launches. Removing
the .openshot folder will just recreate the file, thus fixing the effects of
the bug. But there is probably some reason the config.xml got messed up in
the first place.

Thanks!
-Jonathan

On Fri, Nov 27, 2009 at 1:57 PM, cenwen <email address hidden> wrote:

> Yes there is a lot of people which have this problem after an update to
> 0.9.53 at 0.9.54. Now we know where but not why, and we have an issue.
>
> --
> 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: New
>
> 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
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
hva (francesco-hermanitosverdes) wrote : 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

Changed in openshot:
status: New → Fix Committed
Changed in openshot:
milestone: none → 1.1.0
summary: - Openshot doesn't start anymore
+ Invalid or empty config.xml prevents OpenShot from Launching
Revision history for this message
Olivier Girard (eolinwen) wrote : Re: [Openshot.developers] [Bug 488717] Re: Invalid or empty config.xml prevents OpenShot from Launching

Normaly hv-francesco have done a patch for this. Here :
http://openshotusers.com/forum/viewtopic.php?f=11&t=150

2010/1/20 Jonathan Thomas <email address hidden>

> ** Summary changed:
>
> - Openshot doesn't start anymore
> + Invalid or empty config.xml prevents OpenShot from Launching
>
> --
> Invalid or empty config.xml prevents OpenShot from Launching
> 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
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> More help : https://help.launchpad.net/ListHelp
>

--
Cenwen un elfe sur la banquise/ an elve on the ice
Mon blog perso sur le multimédia, Ubuntu, Linux et OpenShot :
http://linuxevolution.wordpress.com/
http://openshotusers.com/
http://openshotusers.com/forum/index.php

Changed in openshot:
importance: Undecided → Medium
milestone: 1.1.0 → none
milestone: none → 1.1.0
Revision history for this message
Olivier Girard (eolinwen) wrote :

Sorry i have done an error it's already explained above.

Revision history for this message
Jonathan Thomas (jonoomph) wrote :

This has been added to the trunk now. Thanks!

moimael (moimael)
Changed in openshot:
status: Fix Committed → Fix Released
tags: added: patch
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.