Windows: Converting the GError failed
GTK Version: 3.24.23
GLib Version: 2.66.2
PyGObject Version: 3.38.0
Pixbuf Version is 2.42.2
System: Windows 10
Env: MSYS2, new and with alle deps up to date
Hi,
Since a few months my code fails with Converting the GError failed
followed by another traceback
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbb in position 25: invalid start byte
yeah not very helpful, there is no stacktrace
i tried stepping through with pdb the most i see is this
> c:/msys64/home/philipp/gajim/gajim/gtk/util.py(734)load_pixbuf()
-> return GdkPixbuf.Pixbuf.new_from_file_at_scale(
(Pdb) s
> c:/msys64/home/philipp/gajim/gajim/gtk/util.py(735)load_pixbuf()
-> str(path), size, size, True)
(Pdb) s
--Call--
> c:/msys64/mingw64/lib/python3.8/pathlib.py(719)__str__()
-> def __str__(self):
(Pdb) s
> c:/msys64/mingw64/lib/python3.8/pathlib.py(722)__str__()
-> try:
(Pdb) s
> c:/msys64/mingw64/lib/python3.8/pathlib.py(723)__str__()
-> return self._str
(Pdb) s
--Return--
> c:/msys64/mingw64/lib/python3.8/pathlib.py(723)__str__()->'C:/Users/Phi...0350f648ee29e'
-> return self._str
(Pdb) s
> c:/msys64/home/philipp/gajim/gajim/gtk/util.py(734)load_pixbuf()
-> return GdkPixbuf.Pixbuf.new_from_file_at_scale(
(Pdb) s
--Call--
> c:/msys64/mingw64/lib/python3.8/encodings/utf_16_le.py(15)decode()
-> def decode(input, errors='strict'):
(Pdb) s
> c:/msys64/mingw64/lib/python3.8/encodings/utf_16_le.py(16)decode()
-> return codecs.utf_16_le_decode(input, errors, True)
(Pdb) s
--Return--
> c:/msys64/mingw64/lib/python3.8/encodings/utf_16_le.py(16)decode()->('C:/Users/Phi...0350f648ee29e', 174)
-> return codecs.utf_16_le_decode(input, errors, True)
(Pdb) s
--Call--
> c:/msys64/home/philipp/gajim/gajim/gtk/exception.py(58)_hook()
-> def _hook(type_, value, tb):
(Pdb)
The error happens in GdkPixbuf.Pixbuf.new_from_file_at_scale
because i want to load a webp file which is not supported by pixbuf with my current dependencys.
It seems the error string it generates throws a decoding error.
Weird thing is also i can't reproduce this in a simple example, it only happens in the context of my application.
I don't see this issue on any other Platform.
I request assistance in debugging this further, what should i install to get a better look at what happens here?
Thanks