Thunar Fails to Launch

I have a similar issue as Bardo reported 15 days ago here. Web searches have been fruitless, so I’m hoping someone here will be able to help me troubleshoot.

I am on the Unstable branch, using XFCE.

Thunar from the terminal:

$ thunar
Thunar :Failed to load plugin file `/usr/lib/thunarx-3/libgtkhash-properties-thunar.so': libmbedcrypto.so.7: cannot open shared object file: No such file or directory

(thunar:17347): thunarx-CRITICAL **: 14:01:50.124: thunarx_provider_module_list_types: assertion 'module->list_types != NULL' failed

(thunar:17347): GLib-ERROR **: 14:01:50.124: ../glib/glib/gmem.c:460: overflow allocating 18446744072515042307*16 bytes
Trace/breakpoint trap (core dumped)

journalctl -b -p 3 is Pastebinned here

System info:

$ inxi -Fx2cD
System:
  Host: manjaro-desktop Kernel: 6.3.4-1-MANJARO arch: x86_64 bits: 64
    compiler: gcc v: 12.2.1 Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 wm: xfwm
    dm: LightDM Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: LENOVO product: 4480B9U v: ThinkCentre M91p
    serial: <superuser required>
  Mobo: LENOVO model: N/A serial: <superuser required> UEFI: LENOVO
    v: 9HKT47AUS date: 01/10/2012
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless KeyboarWirele
    serial: 92-1e-e3-c5 charge: 4% status: not charging
CPU:
  Info: quad core model: Intel Core i5-2400 bits: 64 type: MCP
    arch: Sandy Bridge rev: 7 cache: L1: 256 KiB L2: 1024 KiB L3: 6 MiB
  Speed (MHz): avg: 1599 high: 1600 min/max: 1600/3400 cores: 1: 1600
    2: 1600 3: 1600 4: 1597 bogomips: 24760
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
    vendor: Lenovo driver: i915 v: kernel arch: Gen-6 ports: active: VGA-1
    empty: DP-1,HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:0102
  Device-2: Linux Foundation EEM Gadget driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 2-1.5:7
    chip-ID: 1d6b:0102
  Display: x11 server: X.Org v: 21.1.8 compositor: xfwm v: 4.18.0 driver: X:
    loaded: modesetting alternate: fbdev,vesa dri: crocus gpu: i915
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 monitors: <missing: xrandr>
  Monitor-1: VGA-1 model: Acer S271HL res: 1920x1080 dpi: 82
    diag: 686mm (27")
  API: OpenGL v: 3.3 Mesa 23.0.3 renderer: Mesa Intel HD Graphics 2000 (SNB
    GT1) direct-render: Yes
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio
    vendor: Lenovo 6 driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
    chip-ID: 8086:1c20
  Device-2: Pyle USB Microphone driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 1.1 speed: 12 Mb/s lanes: 1 bus-ID: 2-1.1:3
    chip-ID: 3212:1a01
  Device-3: Linux Foundation EEM Gadget driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 2-1.5:7
    chip-ID: 1d6b:0102
  API: ALSA v: k6.3.4-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 0.3.71 status: off
  Server-3: PulseAudio v: 16.1 status: active with: pulseaudio-alsa
    type: plugin
Network:
  Device-1: Intel 82579LM Gigabit Network vendor: Lenovo driver: e1000e
    v: kernel port: f080 bus-ID: 00:19.0 chip-ID: 8086:1502
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: 44:37:e6:98:f3:e5
Drives:
  Local Storage: total: 931.51 GiB used: 307.63 GiB (33.0%)
  ID-1: /dev/sda vendor: Samsung model: SSD 860 EVO 1TB size: 931.51 GiB
    speed: 6.0 Gb/s serial: S5B3NY0M939160B
Partition:
  ID-1: / size: 47.76 GiB used: 25.32 GiB (53.0%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 698.6 MiB used: 6.1 MiB (0.9%) fs: vfat
    dev: /dev/sda1
  ID-3: /home size: 594.9 GiB used: 282.3 GiB (47.5%) fs: ext4
    dev: /dev/sda3
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 6.5 MiB (0.3%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 49.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 224 Uptime: 3h 55m Memory: available: 15.45 GiB
  used: 3.72 GiB (24.1%) Init: systemd v: 253 default: graphical Compilers:
  gcc: 13.1.1 clang: 15.0.7 Packages: 1477 pm: pacman pkgs: 1445 pm: flatpak
  pkgs: 24 pm: snap pkgs: 8 Shell: Bash v: 5.1.16 running-in: xfce4-terminal
  inxi: 3.3.27

Is provided by mbedtls2 … do you have that installed ?
And/or a reason for thunar looking for it ? gtkhash I would guess ?

Seems to be about the same as this thread

1 Like
$ pamac search --files libmbedcrypto.so
/usr/lib/libmbedcrypto.so is owned by mbedtls
/usr/lib/libmbedcrypto.so.2.28.2 is owned by mbedtls
/usr/lib/libmbedcrypto.so.7 is owned by mbedtls
/usr/lib/julia/libmbedcrypto.so is owned by julia
$ mbn info mbedtls -q
Branch         : archlinux
Name           : mbedtls
Version        : 3.4.0-3
Repository     : extra
Build Date     : Fri 26 May 2023 20:56:56 
Packager       : Maxime Gauduin <alucryd@archlinux.org>
Branch         : unstable
Name           : mbedtls
Version        : 3.4.0-3
Repository     : extra
Build Date     : Fri 26 May 2023 20:56:56 
Packager       : Maxime Gauduin <alucryd@archlinux.org>
Branch         : testing
Name           : mbedtls
Version        : 2.28.2-1
Repository     : community
Build Date     : Sun 15 Jan 2023 11:00:49 
Packager       : Antonio Rojas <arojas@archlinux.org>
Branch         : stable
Name           : mbedtls
Version        : 2.28.2-1
Repository     : community
Build Date     : Sun 15 Jan 2023 11:00:49 
Packager       : Antonio Rojas <arojas@archlinux.org>
1 Like

The .7 version is only provided by mbedtls2.
(on Unstable, which @adreampuppet is using)

Thank you. I installed mbedtls2 and Thunar launched immediately.

Two responses within 5 minutes, problem solved.

Best Linux forum ever!

@Yochanan maybe rebuild gtkhash so it depends on mbedtls2 ?

I can point gtkhash to the different md.h C header location for mbedtls2, however mbedtls2 does not include the libmbedcrypto.a static library gtkhash is looking for whereas mbedtls does. Upstream has not adapted to mbedtls 3 and it fails to build against it.

Unfortunately, I may have to drop gtkhash completely. I dropped gtkhash-nautilus last year as upstream has not added support for Nautilus 43+.

Maybe just disable mbedtls support in gtkhash, worked in my test build. Mbedtls is not really needed. Every hash function can be replaced by some other library. Using only glib-checksums, linux-crypto and nettle is enough.

1 Like

Oh, right. Why didn’t I think of that? :man_facepalming: Turns out upstream disables it by default, anyway.

1 Like

Fixed with gtkhash 1.5-3 coming along shortly.

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.