After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 603209 - Stores blank properties
Stores blank properties
Status: RESOLVED FIXED
Product: pitivi
Classification: Other
Component: General
0.13.x
Other Linux
: Normal critical
: 0.15
Assigned To: Pitivi maintainers
Pitivi maintainers
Depends on: 603202
Blocks:
 
 
Reported: 2009-11-28 10:00 UTC by Edward Hervey
Modified: 2011-08-26 01:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Edward Hervey 2009-11-28 10:00:39 UTC
+++ This bug was initially created as a clone of Bug #603202 +++

Created an attachment (id=148636)
project file and debug info

Select XViD/mp3lame/AVI-muxer in the project settings' "export" dialog, and then load a clip in the timeline (it doesn't matter which), and then SAVE the project. Close down Pitivi. Now, try to reload that project file. It won't load anymore.

I am attaching here both the project file that doesn't work anymore, and the actual python errors.


For some reason... it stored a blank property (statsfile) from that encoder.
I've just committed a fix in the loader to not try to load empty properties...
but ideally we should figure out why it decided to store that empty property.
Comment 1 Jean-François Fortin Tam 2011-05-24 01:03:09 UTC
Edward, ping? Will this still be relevant with all the changes that have occured recently?
Comment 2 Akhil Laddha 2011-07-07 05:29:12 UTC
Edward, awaiting your response as per comment#1
Comment 3 Alex Băluț 2011-07-07 09:14:49 UTC
This can be reproduced by trying to render a project, setting the video encoder to XviD, clicking the Advanced... button for the video encoder, then set the Statistics Filename field to an empty field (the default value is xvid-stats.log), then click OK, Close, Ctrl+S.

Rendering works fine without it, I think it's a mistake that we ignore empty values, I'll make a fix.
Comment 4 Alex Băluț 2011-07-07 10:00:12 UTC
Pushed a fix to https://github.com/aleb/pitivi/commits/fix_603209
Comment 5 Akhil Laddha 2011-08-19 04:57:05 UTC
Can this bug be closed now ?
Comment 6 Alex Băluț 2011-08-19 09:51:34 UTC
Thanks for asking. Still waiting on Edward to review the fix.
Comment 7 Edward Hervey 2011-08-22 10:20:06 UTC
don't use "if not value" but instead check for the proper 'wrong' value (None, False, 0, "", ...).

otherwise looks good
Comment 8 Alex Băluț 2011-08-22 23:24:24 UTC
Thanks. Done. Ready to be merged then: https://github.com/aleb/pitivi/commits/fix_603209
Comment 9 Jean-François Fortin Tam 2011-08-24 17:24:17 UTC
The patch seems to cause no particular regressions, though I'm not sure I understand yet why we need this? Also, I noticed that if I click the reset/clear button in the advanced codec properties, those fields such as the Statistics Filename one are not reset to xvid-stats.log...
Comment 10 Alex Băluț 2011-08-25 00:31:06 UTC
(In reply to comment #9)
> The patch seems to cause no particular regressions, though I'm not sure I
> understand yet why we need this? 

We need this to allow the user to set a text property for an audio or video encoder to an empty string.

> Also, I noticed that if I click the
> reset/clear button in the advanced codec properties, those fields such as the
> Statistics Filename one are not reset to xvid-stats.log...

Indeed, from what I noticed it happens with the text properties. A different bug should be filed for this problem.
Comment 11 Jean-François Fortin Tam 2011-08-26 01:22:44 UTC
commit b6954312ba8246e32296adac67d14fcf897034bb
Author: Alex Băluț <alexandru.balut@gmail.com>
Date:   Thu Jul 7 11:18:42 2011 +0200

    Change ElementTreeFormatter to allow storing empty string values.
    Fixes bug 603209.



Note: opening bug 657393 for the problem found in comment #9.