Btrfs-Assistant and meld do not work

Password request works but then

 ╭─sgs@sway in ~ as 🧙 
 ╰─λ btrfs-assistant
Authorization required, but no authorization protocol specified
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Same xcb-XY files installed like in i3wm. Reinstalling the application dos not fix this problem.


 ╭─sgs@sway in ~ as 🧙 
 ╰─λ sudo -H DIFFPROG=meld pacdiff
==> pacnew file found for /etc/locale.gen
:: (V)iew, (S)kip, (R)emove pacnew, (O)verwrite with pacnew, (Q)uit: [v/s/r/o/q] v
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
2022-02-25 22:25:11,268 CRITICAL Gtk: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
Traceback (most recent call last):
  File "/usr/bin/meld", line 384, in <module>
    setup_resources()
  File "/usr/bin/meld", line 236, in setup_resources
    Gtk.IconTheme.get_default().append_search_path(icon_dir)
AttributeError: 'NoneType' object has no attribute 'append_search_path'
garuda-inxi
 ╭─sgs@sway in ~ as 🧙 
 ╰─λ garuda-inxi
System:
  Kernel: 5.16.11-zen1-1-zen x86_64 bits: 64 compiler: gcc
    v: 11.2.0 parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=cc8c3427-2bdc-407e-ae93-4105b6795059 rw
    rootflags=subvol=@ quiet splash rd.udev.log_priority=3
    vt.global_cursor_default=0 loglevel=3
  Desktop: sway 1.7 info: waybar vt: 1 dm: greetd
    Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 82MS
    v: Yoga Slim 7 Pro 14ACH5 serial: <superuser required> Chassis:
    type: 10 v: Yoga Slim 7 Pro 14ACH5 serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0R32862WIN
    serial: <superuser required> UEFI: LENOVO v: GZCN23WW
    date: 10/11/2021
Battery:
  ID-1: BAT0 charge: 29.4 Wh (49.4%)
    condition: 59.5/61.0 Wh (97.5%) volts: 15.2 min: 15.4
    model: Sunwoda L19D4PH3 type: Li-poly serial: <filter>
    status: Discharging cycles: 50
CPU:
  Info: model: AMD Ryzen 9 5900HX with Radeon Graphics bits: 64
    type: MT MCP arch: Zen 3 family: 0x19 (25) model-id: 0x50 (80)
    stepping: 0 microcode: 0xA50000B
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled
    cache: L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB
    desc: 8x512 KiB L3: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 1309 high: 2652 min/max: 1200/4679
    boost: enabled scaling: driver: acpi-cpufreq governor: schedutil
    cores: 1: 2652 2: 1395 3: 1195 4: 1195 5: 1197 6: 1197 7: 1196
    8: 1196 9: 1196 10: 1195 11: 1197 12: 1197 13: 1196 14: 1197
    15: 1351 16: 1197 bogomips: 105400
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a
    ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and
    __user pointer sanitization
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB:
    conditional, IBRS_FW, STIBP: always-on, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel
    pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s ports: active: eDP-1 empty: DP-1,DP-2
    bus-ID: 03:00.0 chip-ID: 1002:1638 class-ID: 0300
  Device-2: IMC Networks Integrated Camera type: USB
    driver: uvcvideo bus-ID: 1-3:2 chip-ID: 13d3:5419 class-ID: fe01
    serial: <filter>
  Display: wayland server: Xwayland v: 22.1.0 compositor: sway
    v: 1.7 driver: gpu: amdgpu display-ID: 1
  Monitor-1: eDP-1 model:  0x1402 built: 2020 res: 2880x1800
    hz: 90 dpi: 242 gamma: 1.2 scale: 2 size: 302x188mm (11.9x7.4")
    diag: 356mm (14") ratio: 16:10 modes: max: 2880x1800
    min: 640x480
  Message: Wayland GBM/EGL data currently not available.
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s
    lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 03:00.1
    chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
    vendor: Lenovo driver: N/A alternate: snd_pci_acp3x,
    snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x
    pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s bus-ID: 03:00.5 chip-ID: 1022:15e2
    class-ID: 0480
  Device-3: AMD Family 17h HD Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s
    lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 03:00.6
    chip-ID: 1022:15e3 class-ID: 0403
  Sound Server-1: ALSA v: k5.16.11-zen1-1-zen running: yes
  Sound Server-2: sndio v: N/A running: no
  Sound Server-3: PulseAudio v: 15.0 running: no
  Sound Server-4: PipeWire v: 0.3.47 running: yes
Network:
  Device-1: Realtek RTL8852AE 802.11ax PCIe Wireless Network Adapter vendor: Lenovo driver: rtw89_pci v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: 2000 bus-ID: 01:00.0
    chip-ID: 10ec:8852 class-ID: 0280
  IF: wlp1s0 state: up mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 3-4:2 chip-ID: 0bda:4852 class-ID: e001 serial: <filter>
  Report: bt-adapter ID: hci0 rfk-id: 2 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
Drives:
  Local Storage: total: 953.87 GiB used: 9.67 GiB (1.0%)
  SMART Message: Required tool smartctl not installed. Check
  --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZVLB1T0HBLR-000L2 size: 953.87 GiB block-size:
    physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4
    type: SSD serial: <filter> rev: 3L1QEXF7 temp: 32.9 C
    scheme: GPT
Partition:
  ID-1: / raw-size: 351.51 GiB size: 351.51 GiB (100.00%)
    used: 9.64 GiB (2.7%) fs: btrfs dev: /dev/nvme0n1p6
    maj-min: 259:6
  ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
    used: 28.9 MiB (11.3%) fs: vfat dev: /dev/nvme0n1p1
    maj-min: 259:1
  ID-3: /home raw-size: 351.51 GiB size: 351.51 GiB (100.00%)
    used: 9.64 GiB (2.7%) fs: btrfs dev: /dev/nvme0n1p6
    maj-min: 259:6
  ID-4: /var/log raw-size: 351.51 GiB size: 351.51 GiB (100.00%)
    used: 9.64 GiB (2.7%) fs: btrfs dev: /dev/nvme0n1p6
    maj-min: 259:6
  ID-5: /var/tmp raw-size: 351.51 GiB size: 351.51 GiB (100.00%)
    used: 9.64 GiB (2.7%) fs: btrfs dev: /dev/nvme0n1p6
    maj-min: 259:6
Swap:
  Kernel: swappiness: 133 (default 60)
    cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 13.58 GiB used: 0 KiB (0.0%)
    priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 37.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 351 Uptime: 11m wakeups: 1 Memory: 13.58 GiB
  used: 2.42 GiB (17.8%) Init: systemd v: 250 tool: systemctl
  Compilers: gcc: 11.2.0 clang: 13.0.1 Packages: pacman: 1179
  lib: 306 Shell: fish v: 3.3.1 default: Bash v: 5.1.16
  running-in: xfce4-terminal inxi: 3.3.13
Garuda (2.5.5-1):
  System install date:     2022-02-18
  Last full system update: 2022-02-25
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       Probably (Run as root to verify)
  Snapshots:               Snapper
  Failed units:            

If necessary, I will split the post.

1 Like

What happens in the second command if you remove the custom -H DIFFPROG=meld and just use the default? IMO that's a problem with meld, not with pacdiff.

Have changed the heading.
I must confess that since I have been using Arch I have always used this type and not the default.
Meld alone works. But I can't save.
With sudo meld then comes the error.

su
meld 

works.
Pacdiff does not find the vim -d binary.

[root@sway sgs]# sudo -H DIFFPROG=meld pacdiff
==> pacnew file found for /etc/locale.gen
:: (V)iew, (S)kip, (R)emove pacnew, (O)verwrite with pacnew, (Q)uit: [v/s/r/o/q] v
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
2022-02-25 23:21:57,704 CRITICAL Gtk: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
Traceback (most recent call last):
  File "/usr/bin/meld", line 384, in <module>
    setup_resources()
  File "/usr/bin/meld", line 236, in setup_resources
    Gtk.IconTheme.get_default().append_search_path(icon_dir)
AttributeError: 'NoneType' object has no attribute 'append_search_path'
:: (V)iew, (S)kip, (R)em
ove pacnew, (O)verwrite with pacnew, (Q)uit: [v/s/r/o/q]
1 Like

may be

sudo -E btrfs-assistant
2 Likes

is vim present on the system? and anyway for pacdiff normal user usage is fine.. there is no need to use sudo

Meld doesn't need sudo, unless the file(s) themselves are in a place it IS needed to allow writing the changes. I use it with a form of su enabled for that reason.

2 Likes

It is needed,

Work OOTB in i3w, KDE … :slight_smile: all :slight_smile:

1 Like

Works :slight_smile:

sudo -E btrfs-assistant 
QStandardPaths: runtime directory '/run/user/1000' is not owned by UID 0, but a directory permissions 0700 owned by UID 1000 GID 1000
kf.windowsystem: Could not find any platform plugin

I am sure @dalto know to fix it :slight_smile:

sudo -EH DIFFPROG=meld pacdiff

work too.

1 Like

Most of the time I ignore these error messages if the program runs fine :sweat_smile:

You should be able to start a GUI "normally" and not only via the terminal :slight_smile:

1 Like

Yeah but this is a wayland problem as far as i know, not of the program.....
(may be i can be wrong...)

1 Like

I am new in the wayland world :slight_smile:

Wayland is itself very new....
You are not alone very new to it, i have just 2 or 3 months extra experience :sweat_smile:

Regarding the btrfs-assistant topic:

Authorization required, but no authorization protocol specified
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Having exactly the same issue since an update in the last day I searched for the package which after updating causes this problem and I’ve found out that it is related to

opencl-amd 21.50.50000.1376259-3

If I do not upgrade this package or downgrade again to

opencl-amd 21.40.1.1337803-1

then it works fine for me. Maybe you can also check if this is also causing the issue on your side.

To be honest, I don’t know why this influences the start of btrfs-assistant. Assuming a configuration topic somewhere in the AMD gpu stack - but so far I could not dig further into in…

EDIT:

First finding:

So looking into the files which changed in the packages I found at least out, that this new script

/etc/profile.d/opencl-amd.sh

changes the $PATH from

/usr/local/sbin /usr/local/bin /usr/bin /usr/lib/jvm/default/bin /usr/bin/site_perl /usr/bin/vendor_perl /usr/bin/core_perl

to

/usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/bin/site_perl /usr/bin/vendor_perl /usr/bin/core_perl /opt/rocm-5.0.0/bin /opt/rocm-5.0.0/hip/bin

After installing the new opencl-amd package AND reverting the $PATH back to the former $PATH btrfs-assistant is directly working again.

No opencl-amd on my laptop :frowning:

Did your check you current PATH to see if something else changed it? Could still be the source of the problem....

path
 /home/sgs/.local/bin
 /usr/local/sbin
 /usr/local/bin
 /usr/bin
 /usr/bin/site_perl
 /usr/bin/vendor_perl
 /usr/bin/core_perl

I can not judge :slight_smile: but does not look like it.