New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: atomic save #1042

Closed
lazka opened this Issue Mar 15, 2015 · 5 comments

Comments

Projects
None yet
1 participant
@lazka
Member

lazka commented Mar 15, 2015

Original issue 1042 created by usasystemic on 2012-10-17T15:19:13.000Z:

peter@computer:~$ quodlibet
Traceback (most recent call last):
File "/usr/bin/quodlibet", line 361, in <module>
main()
File "/usr/bin/quodlibet", line 28, in main
config.init(const.CONFIG)
File "/usr/lib/python2.7/dist-packages/quodlibet/config.py", line 197, in init
_config.read(rc_files)
File "/usr/lib/python2.7/ConfigParser.py", line 305, in read
self._read(fp, filename)
File "/usr/lib/python2.7/ConfigParser.py", line 512, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /home/pnovotnak/.quodlibet/config, line: 1
'\xf1=\xab\xac\x80\x98\xabV\xf5\xb8\xbd\xbf0\xb4<\x16jq\xf0uo\x9d\xeejV\xbf\xfc\xc5\x83\xf5\xf4\xb7\xf6\xab\xa2\xcdCG\xa5\x08\xfd\x8d\xbf\x82D3@?+\xe1\xd0X\xf6Mv\x19\xea\x98\x89\xf9P\x13\x0c\x06;\x0b"\xde\xb2\xce\x93\xf9\xa3\x9c)\xc1\xf5\xb7\xa4\xf2E\xcc\xd0\xd2oU\xce\x9b\x9cJ\x8b\x880y\x85c\xf6\xa7\xa8\xcdCG\xa5\x08\xfd\x8d\xbf\x82D3@?+\xe1\xd0X\xf6Mv\x19\xea\x98\x89\xf9P\x13\x0c\x06>s\xc4\x93+\xe7a\x1c\xaeI\x82\xf7\xc63F\xe4\xad\xea\x9c\xcc\xb4\x98\xf4\xba^\xf5[\x1c\xa5\xdaCt\xf6\xf6\x98\xf9CG\xa5\x08\xfd\x8d\xbf\x82D3@?+\xe1\xd0X\xf6Mv\x19\xea\x98\x89\xf9P\x13\x0c\x06\x84\x90,\xa7+\xbd\x14\n'

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #1 originally posted by usasystemic on 2012-10-17T15:24:12.000Z:

Yep. Moved ~/.quodlibet/config to config.old and everybody is happy again.

Any way to recover it? What all is stored there?

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #2 originally posted by reiter.christoph on 2012-10-18T06:37:59.000Z:

Related: https://bugs.launchpad.net/ubuntu/+source/quodlibet/+bug/1051532

Version?

No idea why this happened. We don't do atomic saving for the config. But in case that fails the file should be empty or contain at least some parts that are valid (right?). And we always save the config in the main loop, so no threading issues.

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #3 originally posted by usasystemic on 2012-10-18T14:21:11.000Z:

Yep, that's probably definitely related. X is being hella buggy, parts of gdm crash on me multiple times a day, and it's unable to resume from a suspend.

2.4.1, Sorry :S

Supported formats: mod, mp3, mp4, mpc, spc, trueaudio, wav, wavpack, wma, xiph
Audio device: gconfaudiosink profile=music
Mutagen: 1.20
GTK+: 2.24.10 / PyGTK: 2.24.0
GStreamer: 0.10.36.0 / PyGSt: 0.10.22

Some more infoz:

Lenovo Z575, AMD A4-3300M, 4GB, 500GB HDD/ 70% full.

Ubuntu 12.04 x64, Linux 3.2.0-32-generic, Gnome 3.4.0-32 (built from Ubuntu-server)

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #4 originally posted by reiter.christoph on 2012-10-18T15:37:47.000Z:

OK, thanks. On a second thought, there is no reason this couldn't happen if the kernel crashes.

regarding X crashes: I'd say try 12.10.

@lazka

This comment has been minimized.

Member

lazka commented Mar 15, 2015

Comment #5 originally posted by reiter.christoph on 2014-01-11T01:05:51.000Z:

This issue was closed by revision 732a2be.

@lazka lazka closed this Mar 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment