Kdenlive Crashes on Start with GPU Acceleration, Ubuntu 23.04 with RTX3050

Any ideas what I can do to get GPU acceleration enabled on Ubuntu?
I tried Kdenlive AppImage and Flatpak, and they both crash on startup once I enable GPU processing.
I tried installing libmlt7 livmovit8 and librtaudio6 , but nothing changed. Kdenlive 22 doesn’t have the checkbox enabled. Kdenlive 23.x allows checking, but crashes on startup.
I have Nvidia drivers installed, tried multiple versions also.

./kdenlive-23.04.0-x86_64.AppImage
Loaded icon theme: “breeze”
Loaded icon theme: “breeze-dark”
Starting render server
profilePath from $MLT_PROFILES_PATH: “/tmp/.mount_kdenli23CcHJ/usr/share/mlt-7/profiles/”
meltPath from KdenliveSetting::rendererPath: “/tmp/.mount_kdenli23CcHJ/usr/bin/melt”
Empty metadata for “audiochannels”
Empty metadata for “audioconvert”
Empty metadata for “imageconvert”
Empty metadata for “glsl.manager”
Empty metadata for “telecide”
plugin not available: “avfilter.acompressor”
plugin not available: “avfilter.aecho”
plugin not available: “avfilter.agate”
plugin not available: “avfilter.atadenoise”
plugin not available: “avfilter.bs2b”
plugin not available: “avfilter.bwdif”
plugin not available: “avfilter.deblock”
plugin not available: “avfilter.dedot”
plugin not available: “avfilter.deflate”
plugin not available: “avfilter.derain”
plugin not available: “avfilter.doubleweave”
plugin not available: “avfilter.field”
plugin not available: “avfilter.framestep”
plugin not available: “avfilter.fspp”
plugin not available: “avfilter.graphmonitor”
plugin not available: “avfilter.hqdn3d”
plugin not available: “avfilter.inflate”
plugin not available: “avfilter.lagfun”
plugin not available: “avfilter.loudnorm”
plugin not available: “avfilter.mcdeint”
plugin not available: “avfilter.random”
plugin not available: “avfilter.removegrain”
plugin not available: “avfilter.separatefields”
plugin not available: “avfilter.shuffleplanes”
plugin not available: “avfilter.sofalizer”
plugin not available: “avfilter.sr”
plugin not available: “avfilter.tmix”
plugin not available: “avfilter.w3fdif”
plugin not available: “avfilter.weave”
plugin not available: “avfilter.yadif”
plugin not available: “frei0r.baltan”
plugin not available: “frei0r.bgsubtract0r”
plugin not available: “frei0r.delay0r”
plugin not available: “frei0r.delaygrab”
plugin not available: “frei0r.lightgraffiti”
plugin not available: “frei0r.lightgraffiti”
plugin not available: “frei0r.tehRoxx0r”
plugin not available: “ladspa”
plugin not available: “ladspa”
plugin not available: “ladspa”
plugin not available: “ladspa”
plugin not available: “ladspa”
plugin not available: “ladspa”
plugin not available: “ladspa”
plugin not available: “ladspa”
plugin not available: “ladspa”
plugin not available: “ladspa”
plugin not available: “ladspa”
plugin not available: “movit.unsharp_mask”
plugin not available: “timewarp”
plugin not available: “frei0r.sleid0r_push-down”
plugin not available: “frei0r.sleid0r_push-left”
plugin not available: “frei0r.sleid0r_push-right”
plugin not available: “frei0r.sleid0r_push-up”
plugin not available: “frei0r.sleid0r_slide-down”
plugin not available: “frei0r.sleid0r_slide-left”
plugin not available: “frei0r.sleid0r_slide-up”
plugin not available: “frei0r.sleid0r_slide-right”
plugin not available: “frei0r.sleid0r_wipe-barn-door-h”
plugin not available: “frei0r.sleid0r_wipe-barn-door-v”
plugin not available: “frei0r.sleid0r_wipe-circle”
plugin not available: “frei0r.sleid0r_wipe-down”
plugin not available: “frei0r.sleid0r_wipe-left”
plugin not available: “frei0r.sleid0r_wipe-rect”
plugin not available: “frei0r.sleid0r_wipe-right”
plugin not available: “frei0r.sleid0r_wipe-up”
plugin not available: “region”
=== /// CANNOT ACCESS SPEECH DICTIONARIES FOLDER
ALSA lib /home/appimage/Craft/BC/linux-64-gcc/build/libs/libasound2/work/alsa-lib-1.2.5.1/src/conf.c:4499:(snd_config_update_r) Cannot access file /home/appimage/Craft/BC/linux-64-gcc/share/alsa/alsa.conf
no alsa devices available
ALSA lib /home/appimage/Craft/BC/linux-64-gcc/build/libs/libasound2/work/alsa-lib-1.2.5.1/src/conf.c:4499:(snd_config_update_r) Cannot access file /home/appimage/Craft/BC/linux-64-gcc/share/alsa/alsa.conf
no alsa devices available
QQmlEngine::setContextForObject(): Object already has a QQmlContext
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: “org.freedesktop.DBus.Error.Disconnected”
“Not connected to D-Bus server”
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: “org.freedesktop.DBus.Error.Disconnected”
“Not connected to D-Bus server”
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: “org.freedesktop.DBus.Error.Disconnected”
“Not connected to D-Bus server”
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: “org.freedesktop.DBus.Error.Disconnected”
“Not connected to D-Bus server”
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: “org.freedesktop.DBus.Error.Disconnected”
“Not connected to D-Bus server”
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: “org.freedesktop.DBus.Error.Disconnected”
“Not connected to D-Bus server”
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: “org.freedesktop.DBus.Error.Disconnected”
“Not connected to D-Bus server”
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: “org.freedesktop.DBus.Error.Disconnected”
“Not connected to D-Bus server”
“applications.menu” not found in (“/etc/xdg/menus”)
kf.service.sycoca: Service type not found: “video/mlt-playlist”
QQmlEngine::setContextForObject(): Object already has a QQmlContext
QQmlEngine::setContextForObject(): Object already has a QQmlContext
QQmlEngine::setContextForObject(): Object already has a QQmlContext
:::: NOT FOUND DOCUMENT GUIDES !!!
!!!
QQmlEngine::setContextForObject(): Object already has a QQmlContext
qrc:/qml/timeline.qml:497: ReferenceError: proxy is not defined
qrc:/qml/timeline.qml:478: ReferenceError: proxy is not defined
==== NO PREVIOUS TIMELINE
==== CONNECT NEW TIMELINE, MODEL: 0
::::::::::: connecting timeline: QUuid(“{592f524b-7d5a-4a6a-a55b-7f644ab4d88f}”) , DUR: 0
root context get sub model new function
HHHHHHHHHHHH
INVALID BIN PLAYLIST…
=== OPENING FILE WITH TRACKS: 5
:::: FOUND TRACTOR WITH TRACKS: 2


/tmp/.mount_kdenli23CcHJ/usr/share/movit/texture1d.150.frag: No such file or directory
QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread
Segmentation fault (core dumped)

Yes, this is a known issue which is going to be addressed eventually. In the meantime GPU acceleration is not stable so refrain from using it atm.

1 Like

Umm… This has been a known issue for years. I’m finding user posts regarding this issue that date back 7 years. [kdenlive] [Bug 375713] New: Kdenlive crashes if GPU processing (Movit library) is enabled

Yes, there is so much a small team can do in their spare time. In the meantime help would be appreciated or at least patience…

Do you guys know the root cause of the crash?

I am available to test and compile versions to fix this issue.
I have several rigs and GPU accelerated VMs to help with testing.

All my systems are on Pop!OS

AMD GPUs, with MESA + ROCm stacks
RX 5700xt
RX 580 4GB
AMD Renoir eGPU

Nvidia GPUs with Pop!OS Nvidia proprietary preinstalled drivers
MX150 hybrid graphics
An old Nvidia Quadro but I can’t remember the model number

If you give me some instructions, I can test :slight_smile:

I have no issue spawning VMs with other OS configurations if needed

Also, I’ve seen conflicting information online…
Is it caused by the fact that movit is not compatible with the version of Qt that ships with KDEnlive ?

If so, here might be a way o re-package the Flatpak to include a compatible version, even if older.