Connection failure due to issues loading shared library 'libgdk-3.so.0'

Dear ThinLinc Community,

I am no longer able to connect the ThinLinc client in my Ubuntu 22.04 workstation. The last log file has the following error messages, apparently related to a failure to load the shared library “libgdk-3.so.0”:

Blockquote

** (process:2559163): WARNING **: 14:43:40.558: Failed to load shared library ‘libgdk-3.so.0’ referenced by the typelib: /lib/x86_64-linux-gnu/libgdk-3.so.0: undefined symbol: wl_proxy_marshal_flags
Traceback (most recent call last):
File “/opt/thinlinc/libexec/tl-select-profile”, line 118, in
iI111iiIi11i ( )
File “/opt/thinlinc/libexec/tl-select-profile”, line 49, in iI111iiIi11i
IIii = tlgtk . init ( )
File “/opt/thinlinc/modules/thinlinc/tlgtk/init.py”, line 61, in init
from gi . repository import Gtk
File “”, line 1027, in _find_and_load
File “”, line 1006, in _find_and_load_unlocked
File “”, line 672, in _load_unlocked
File “”, line 632, in _load_backward_compatible
File “/usr/lib/python3/dist-packages/gi/importer.py”, line 149, in load_module
importlib.import_module(‘gi.repository.’ + dep.split(“-”)[0])
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1006, in _find_and_load_unlocked
File “”, line 672, in _load_unlocked
File “”, line 632, in _load_backward_compatible
File “/usr/lib/python3/dist-packages/gi/importer.py”, line 150, in load_module
dynamic_module = load_overrides(introspection_module)
File “/usr/lib/python3/dist-packages/gi/overrides/init.py”, line 118, in load_overrides
override_mod = importlib.import_module(override_package_name)
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “/usr/lib/python3/dist-packages/gi/overrides/Gdk.py”, line 83, in
Color = override(Color)
File “/usr/lib/python3/dist-packages/gi/overrides/init.py”, line 195, in override
assert g_type != TYPE_NONE
AssertionError
tl-xinit: client terminated and returned 0
tl-xinit: Terminating X server…
X connection to :11 broken (explicit kill or server shutdown).
X I/O error
Mon Feb 6 14:43:40 2023
VNCSConnST: closing 127.0.0.1::60410: Server shutdown
EncodeManager: Framebuffer updates: 2
EncodeManager: Tight:
EncodeManager: Solid: 4 rects, 786.102 kpixels
EncodeManager: 64 B (1:49132.1 ratio)
EncodeManager: Tight (JPEG):
EncodeManager: Full Colour: 2 rects, 660 pixels
EncodeManager: 2.38574 KiB (1:1.09046 ratio)
EncodeManager: Total: 6 rects, 786.762 kpixels
EncodeManager: 2.44824 KiB (1:1255.33 ratio)
ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:-nan ratio)
tl-xinit: X server has terminated
tl-xinit: deleting …/11.1675436937.ended
tl-xinit: Session terminated. Exiting.
Blockquote

Any suggestions on how to fix this will be very welcome.

Regards,

Alexandre

Hello @abonatto

I am not sure how you ended up with missing installation of GTK, since ThinLinc was previously working for you. A working installation of GTK is optional to have ThinLinc working, but is a requirement for presenting the Profile Selection.

You should be able to get GTK back in your system again by:

$ sudo apt install libgtk-3-0

Regards,
Martin

Hi @martin,

Thanks for your reply. I do not have a clear picture when/how this happened. We have been installing many distinct packages (some of them via anaconda, others manually). Among these, I do think there was a failure when trying to manually install qt5 (I will have to check this more carefully). I followed your suggestion (first, it returned that the package was already installed; then I forced pip to reinstall it), but the problem persists. I just checked that, for other users, ThinLinc is working properly (i.e., GTK is messed up for me only). I will keep looking for a way to solve the issue (in the meantime, if you have any additional suggestion, please let me know about it).

Cheers,
Alex

Hello @abonatto

Do you have Anaconda installed for your user?

/Martin

Hi @martin,

Yes, I use it to install the dependencies required for some applications I need to use.

Alex

I see.
Anaconda is a known to cause problems with libraries in the system, since it reconfigures your .bashrc to change the search order for important PATHs. Try to move away the anaconda configuration in your ~/.bashrc and try to log on with ThinLinc again.

/Martin