GNOME Bugzilla – Bug 652397
Crash when naming a preset "Default"
Last modified: 2011-06-28 02:39:44 UTC
Original bug is at : https://bugzilla.redhat.com/show_bug.cgi?id=712700 How to reproduce this crash : - Try to add a preset named as "Default"
Indeed, wtf. Seems like configparser, for some reason, doesn't like "Default". Traceback (most recent call last):
+ Trace 227449
self.video_presets.save()
self._save(parser)
self.saveSection(parser, name)
parser.add_section(section)
raise ValueError, 'Invalid section name: %s' % section
I'm not sure why that is, but I guess we have to work around it...
https://github.com/aleb/pitivi/commit/cd27e9a0d9e3e09e268c951af1da893df7a12cc4 creates another traceback : Traceback (most recent call last):
+ Trace 227454
self._savePresetsToParser(parser)
self._savePreset(parser, section, values)
raise NotImplemented
Hicham, thanks for testing. Did you apply the patch(es) correctly? Try (on HEAD=d7a5c20f9053de448c02f46aeb24ba11114ea786) this, and tell us how it works: wget "https://github.com/aleb/pitivi/commit/3e884351a9a03b8a53d04cf4f3204b1cec64510b.diff" wget "https://github.com/aleb/pitivi/commit/6b77b82df12b12f31f3e56446f22bc543e70d9f6.diff" git apply 3e884351a9a03b8a53d04cf4f3204b1cec64510b.diff git apply 6b77b82df12b12f31f3e56446f22bc543e70d9f6.diff --include pitivi/ui/ bin/pitivi
Now it works after these two commits, thanks
commit 37f6325278d3fb20e000288b3fc8366da3940b7f Author: Alex Băluț <alexandru.balut@gmail.com> Date: Sun Jun 12 22:21:20 2011 +0200 Changed PresetManager to allow the user to have a preset called Default. Fixes bug 652397.