Application stops upon click on artwork in title bar (cache directory not created)
Environment
- Lollypop version: 0.9.504
- GTK+ version: 3.22.29
- Operating system: openSUSE Tumbleweed
Bug
Application stops upon click on artwork in title bar. It looks like ~/.local/share/lollypop/info
is not created and it makes the application stop when it tries to write something in it.
Steps to reproduce
- Fresh install (or remove cache
~/.local/share/lollypop
). - Start lollypop.
- Enable "Preferences > Behaviour > Network Access".
- Play a track.
- Click on the artwork in title bar.
- Pop-up with "Loading information" shows up then application stops.
Traces
~> LANG=C lollypop
/usr/lib64/python3.6/site-packages/gi/module.py:177: Warning: g_array_append_vals: assertion 'array' failed
g_type = info.get_g_type()
/usr/lib64/python3.6/site-packages/gi/module.py:177: Warning: g_hash_table_lookup: assertion 'hash_table != NULL' failed
g_type = info.get_g_type()
/usr/lib64/python3.6/site-packages/gi/module.py:177: Warning: g_hash_table_insert_internal: assertion 'hash_table != NULL' failed
g_type = info.get_g_type()
(lollypop:16655): Gtk-WARNING **: 22:02:12.578: Failed to register client: GDBus.Error:org.gnome.SessionManager.AlreadyRegistered: Unable to register client
(lollypop:16655): Gtk-WARNING **: 22:02:12.813: gtk_widget_size_allocate(): attempt to allocate widget with width -25 and height 34
(lollypop:16655): Gtk-WARNING **: 22:02:13.003: Allocating size to lollypop+window+Window 0x55cd442a02c0 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
(lollypop:16655): Gtk-WARNING **: 22:02:13.102: Allocating size to lollypop+window+Window 0x55cd442a02c0 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/lollypop/pop_information.py", line 147, in __set_bio_content
InformationStore.add_artist_bio(artist_name, content)
File "/usr/lib/python3.6/site-packages/lollypop/information_store.py", line 210, in add_artist_bio
Gio.FileCreateFlags.REPLACE_DESTINATION, None)
GLib.Error: g-io-error-quark: Error opening file “/home/antoine/.local/share/lollypop/info/Caribou.txt”: No such file or directory (1)
~>
Workaround
Manually create ~/.local/share/lollypop/info
.