Bug 488651 - Ktorrent fails to launch
Summary: Ktorrent fails to launch
Status: CONFIRMED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: 24.05.2
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-18 08:48 UTC by kdave
Modified: 2024-08-25 13:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kdave 2024-06-18 08:48:19 UTC
SUMMARY
Fail to launch on Fedora Kinoite with Nvidia non-free drivers Nvidia 1060m in Wayland
(I haven't tested with free nouvea drivers or on X11)


STEPS TO REPRODUCE
1. Launch KDE through the app drawer or flatpak run org.kde.ktorrent

OBSERVED RESULT
Visually, Ktorrent app logo appears and then disappears
on CLI:
```
flatpak run org.kde.ktorrent
F: Not sharing "/usr/share/gnome-shell/theme" with sandbox: Path "/usr" is reserved by Flatpak
F: Not sharing "/usr/share/themes" with sandbox: Path "/usr" is reserved by Flatpak
Couldn't start kglobalaccel from org.kde.kglobalaccel.service: QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "org.freedesktop.DBus.Error.ServiceUnknown")
QLayout: Attempting to add QLayout "" to kt::FileView "", which already has a layout
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: Phonon::createPath: Cannot connect  Phonon::MediaObject ( no objectName ) to  Phonon::AudioOutput ( no objectName ).
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
ASSERT: "hq->lowestSerial() == prevLowestSerial" in file /run/build-runtime/kio/src/core/scheduler.cpp, line 524
```

Backtrace: there are no instructions on your site for backtrace on Kinoite

EXPECTED RESULT
Launching

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION
I recently did a lot of tweaking to get Hardware acceleration working in Firefox and optimized in local video playback.
I installed https://github.com/elFarto/nvidia-vaapi-driver and did this:
```
rpm-ostree uninstall libva-vdpau-driver && rpm-ostree install libva-nvidia-driver gstreamer1-plugins-bad-free-extras gstreamer1-plugins-bad-freeworld gstreamer1-plugins-ugly gstreamer1-vaapi nvidia-vaapi-driver libavcodec-freeworld
```

Here is my current layered packages situation:

```
rpm-ostree status
State: idle
Deployments:
  fedora:fedora/40/x86_64/kinoite
                  Version: 40.20240615.0 (2024-06-15T01:19:47Z)
               BaseCommit: 71f894fa3bd57c27a771522559b09ce8beb19f9e6d32824105164853c4f0866c
             GPGSignature: Valid signature by 115DF9AEF857853EE8445D0A0727707EA15B79CC
                     Diff: 1 removed, 2 added
          LayeredPackages: akmod-nvidia akmods cockpit-composer cockpit-machines cockpit-networkmanager
                           cockpit-ostree cockpit-pcp cockpit-podman cockpit-selinux cockpit-storaged
                           cockpit-system egl-wayland gcc glibc-devel gnome-disk-utility
                           gnome-shell-extension-appindicator gnome-shell-theme-flat-remix.noarch
                           gnome-shell-theme-yaru.noarch gnome-tweak-tool gstreamer1-plugin-openh264
                           gstreamer1-plugins-bad-free-extras gstreamer1-plugins-bad-freeworld
                           gstreamer1-plugins-ugly gstreamer1-vaapi kmod-nvidia libavcodec-freeworld libgda
                           libgda-sqlite libguestfs-tools libnetfilter_queue libva-devel libva-intel-driver
                           libva-nvidia-driver libva-utils libvirt-daemon-config-network libvirt-daemon-kvm
                           meson mozilla-ublock-origin nv-codec-headers nvidia-kmod nvidia-vaapi-driver pcp
                           python3-distutils-extra python3-libguestfs qemu-kvm rpmfusion-free-release
                           rpmfusion-nonfree-release tlp vdpauinfo virt-install virt-manager virt-top
                           virt-viewer waydroid xorg-x11-drv-nvidia xorg-x11-drv-nvidia-cuda
                           xorg-x11-drv-nvidia-cuda-libs xorg-x11-drv-nvidia-power yt-dlp
            LocalPackages: veracrypt-1.26.7-1.x86_64 virtio-win-0.1.225-2.noarch
```
Comment 1 Nicolas Fella 2024-06-18 10:31:29 UTC
kglobalaccel is unrelated, the actual problem is 

> ASSERT: "hq->lowestSerial() == prevLowestSerial" in file /run/build-runtime/kio/src/core/scheduler.cpp, line 524
Comment 2 kdave 2024-06-18 12:44:25 UTC
/run/build-runtime/kio/src/core/ 

This directory doesn't exist according to dolphin FM...
Comment 3 Kenny D 2024-06-19 09:44:40 UTC
This also occurs with the package in neon user
Comment 4 kdave 2024-07-31 07:22:02 UTC
Problem is still persisting, I believe it is graphics card related as at one point ktorrent worked after a graphics driver change. 
Is it maybe due to my graphics tweaks, is there an advised way to backup my ktorrent, reinstall it  and restore? (I have put a lot of work into organising my torrents into groups)

Some new info:

$ ls /run/build-runtime/kio/src/core
ls: cannot access '/run/build-runtime/kio/src/core': No such file or directory

Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.9.11-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Nvidia 1060m on both proprietary and free drivers from rpm-fusion
Comment 5 kdave 2024-08-22 12:00:04 UTC
Update:
Still Not working.

Doesn't work regardless of what Nvidia driver I use
Same errors in CLI

Ktorrent has launched successfully a few times, when I have just restarted after PC updates. But if I close it during that session, it won't relaunch again. 

I tried removing and reinstalling from Discover

I have removed some layered packages, this is my new rpm-ostree status:

● fedora:fedora/40/x86_64/kinoite
                  Version: 40.20240821.0 (2024-08-21T01:01:38Z)
               BaseCommit: 319076423a90a3de2cd75e9e439359218f3a5bd056dc9bbca6e5d98b8001c679
             GPGSignature: Valid signature by 115DF9AEF857853EE8445D0A0727707EA15B79CC
          LayeredPackages: cockpit-composer cockpit-machines cockpit-networkmanager cockpit-ostree cockpit-pcp
                           cockpit-podman cockpit-selinux cockpit-storaged cockpit-system egl-wayland gcc
                           glibc-devel gnome-disk-utility gnome-tweak-tool gstreamer1-plugins-bad-free-extras
                           gstreamer1-plugins-bad-freeworld gstreamer1-plugins-ugly gstreamer1-vaapi
                           libguestfs-tools libva-devel libva-nvidia-driver libva-utils
                           libvirt-daemon-config-network libvirt-daemon-kvm meson mozilla-ublock-origin
                           nv-codec-headers nvidia-vaapi-driver pcp python3-distutils-extra python3-libguestfs
                           qemu-kvm rpmfusion-free-release rpmfusion-nonfree-release tlp vdpauinfo virt-install
                           virt-manager virt-top virt-viewer waydroid xorg-x11-drv-nvidia
                           xorg-x11-drv-nvidia-cuda xorg-x11-drv-nvidia-power yt-dlp
            LocalPackages: virtio-win-0.1.225-2.noarch

I could try layer the ktorrent package, any advice?
Comment 6 kdave 2024-08-23 08:06:09 UTC
I switched to Nouveau driver, rebooted and tried to launch again and got a slightly different error, it no longer has the line:
ASSERT: "hq->lowestSerial() == prevLowestSerial" in file /run/build-runtime/kio/src/core/scheduler.cpp, line 524

Here it is:
flatpak run org.kde.ktorrentF: Not sharing "/usr/share/themes" with sandbox: Path "/usr" is reserved by Flatpak
Couldn't start kglobalaccel from org.kde.kglobalaccel.service: QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "org.freedesktop.DBus.Error.ServiceUnknown")
QLayout: Attempting to add QLayout "" to kt::FileView "", which already has a layout
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: Phonon::createPath: Cannot connect  Phonon::MediaObject ( no objectName ) to  Phonon::AudioOutput ( no objectName ).
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
Comment 7 kdave 2024-08-23 08:08:19 UTC
Oh nevermind, on a second launch attempt the same output happens
ASSERT: "hq->lowestSerial() == prevLowestSerial" in file /run/build-runtime/kio/src/core/scheduler.cpp, line 524
is still present.

Let me know what other info I can provide
Comment 8 Nicolas Fella 2024-08-25 13:36:01 UTC
The problem has nothing to do with graphic drivers