Application crashes if it window was resized to be smallest as possible on the last run
Environment
- Lollypop version: 0.9.401é (231e7529) (flatpak from Flathub)
- GTK+ version: using org.gnome.Platform/x86_64/3.26, host OS also runs 3.26
- Operating system: Fedora 27
Bug
I'm unable to start Lollypop, when running from the terminal, I get the output:
$ flatpak run org.gnome.Lollypop
/usr/lib/python3.5/site-packages/gi/module.py:176: Warning: g_array_append_vals: assertion 'array' failed
g_type = info.get_g_type()
/usr/lib/python3.5/site-packages/gi/module.py:176: Warning: g_hash_table_lookup: assertion 'hash_table != NULL' failed
g_type = info.get_g_type()
/usr/lib/python3.5/site-packages/gi/module.py:176: Warning: g_hash_table_insert_internal: assertion 'hash_table != NULL' failed
g_type = info.get_g_type()
Gtk-Message: Failed to load module "pk-gtk-module"
(lollypop:2): Gtk-WARNING **: Allocating size to lollypop+window+Window 0x31302a0 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Traceback (most recent call last):
File "/app/lib/python3.5/site-packages/lollypop/player.py", line 480, in _on_bus_error
RadioPlayer._on_bus_error(self, bus, message)
File "/app/lib/python3.5/site-packages/lollypop/player_radio.py", line 129, in _on_bus_error
if self._current_track.id < 0 and\
TypeError: unorderable types: NoneType() < int()
The window itself appears "normal" (something like 640x480 size) for a moment and then the application crashes. I did have it setup so it restores the last state of the program on the run. That worked correctly (my radio station played). I think that this has to do something with the crash, the application starts and then it tries to resize itself to a smallest window possible, to restore the last application state and an error happens.
Edited by Марко М. Костић (Marko M. Kostić)