Cuda errors with Appimage on linux

Hi,

I am using kdenlive-26.08.1-x86_64.AppImage on Debian 13 with a Nvidia RTX graphic card (Driver Version: 595.91.07 and CUDA Version: 13.2).

I often experience some instabilities (crashes, etc.) and most of the time just by performing some basic actions (reloading clips, moving clips on the timeline, etc.).

When looking into the logs (see an extract below) I can see many errors related to Cuda.

My questions :

  • 1- Is Cuda natively supported by kdenlive?
  • 2- If yes, are there any specific settings to respect (cuda version…)?
  • 3- Concerning the errors bellow, any hint about how to fix them?
  • 4- Workaround: is there a way to completely deactivate cuda and run kdenlive from cpu only?

Thanks a lot for your inputs!

Logs:

Generating audio levels for stream 0 of “/tmp/kdenlive-YOPOUr.mlt” using MLT
[h264 @ 0x7fdd394c5080] Hardware is lacking required capabilities
[h264 @ 0x7fdd394c5080] Failed setup for format cuda: hwaccel initialisation returned error.
MLT: “[producer_xml] failed to load producer \“0.502327:/media/…/PANA4392-25fps.mp4\””
[CUDA @ 0x7fd60ee6f140] cu->cuCtxCreate(&hwctx->cuda_ctx, desired_flags, hwctx->internal->cuda_device) failed → CUDA_ERROR_OPERATING_SYSTEM: OS call failed or operatio
n not supported on this OS

…

yeah kdenlive pulls cuda through mlt/ffmpeg when it sees a nvidia card. the appimage often fights the host driver though, which is what that CUDA_ERROR_OPERATING_SYSTEM + hwaccel init fail usually means.

quickest check: open Settings → Playback and turn off gpu / hardware acceleration, or launch with:
export MLT_AVFORMAT_HWACCEL=none
./kdenlive-*.AppImage

flatpak or the distro package usually behaves better with system nvidia than the appimage. paste nvidia-smi and say if you already tried flatpak.

I’m not sure this is true. I use Arch, and the repo-provided Kdenlive currently no longer allows me to use the GPU rendering feature. It used to work, now it doesn’t.

However, I recently tested the AppImage and GPU rendering is working again. Of course, this is a YMMV situation, but based on my experience with Krita as well, I’d say that KDE specialist/creative apps seems to work better as AppImages.

Though, of course, this is not the case for the OP. Maybe they need to try an older version of the Kdenlive AppImage.

fair, on arch the repo build can miss cuda too depending on how mlt/ffmpeg were built. the appimage still fights the host nvidia stack though, which is what that CUDA_ERROR_OPERATING_SYSTEM usually is.

for OP: still start by turning hwaccel off and paste nvidia-smi. if flatpak dies the same way, then its the driver/cuda side.

Here are the results of additional tests:

  1. Kdenlive 26.4.3 from debian https://www.deb-multimedia.org → same cuda errors

  2. Kdenlive from debian stable repository → not tested, outdated version (24.12.3)

  3. export MLT_AVFORMAT_HWACCEL=none + ./AppImage.26.08.1 → same cuda errors

  4. Flatpak 26.08.1 → No cuda errors ! :slight_smile:

I will have to dig a little bit more into the configuration…

nvidia-smi
Thu Sep 24 18:12:22 2026
±----------------------------------------------------------------------------------------+
| NVIDIA-SMI 595.91.07 Driver Version: 595.91.07 CUDA Version: 13.2 |
±----------------------------------------±-----------------------±---------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+==========|
| 0 NVIDIA GeForce RTX 4090 On | 00000000:09:00.0 On | Off |
| 0% 44C P2 64W / 450W | 18397MiB / 24564MiB | 0% Default |
| | | N/A |
±----------------------------------------±-----------------------±---------------------+

±----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1330 G /usr/lib/xorg/Xorg 21MiB |
| 0 N/A N/A 1510 G /usr/bin/kwalletd6 6MiB |
| 0 N/A N/A 1541 G /usr/bin/kwin_wayland 83MiB |
| 0 N/A N/A 1598 G /usr/bin/Xwayland 9MiB |
| 0 N/A N/A 1628 G /usr/bin/ksmserver 6MiB |
| 0 N/A N/A 1632 G /usr/bin/kded6 6MiB |
| 0 N/A N/A 1665 G /usr/bin/plasmashell 131MiB |
| 0 N/A N/A 1694 G /usr/bin/kaccess 6MiB |
| 0 N/A N/A 1695 G …it-kde-authentication-agent-1 6MiB |
| 0 N/A N/A 1865 G /usr/bin/kdeconnectd 6MiB |
| 0 N/A N/A 1869 G /usr/bin/xwaylandvideobridge 6MiB |
| 0 N/A N/A 1898 G …-gnu/libexec/DiscoverNotifier 6MiB |
| 0 N/A N/A 1900 G /usr/bin/kalendarac 6MiB |
| 0 N/A N/A 1916 G /usr/lib/firefox-esr/firefox-esr 503MiB |
| 0 N/A N/A 1963 G …ibexec/xdg-desktop-portal-kde 6MiB |
| 0 N/A N/A 2027 G /usr/bin/dolphin 6MiB |
| 0 N/A N/A 2028 G /usr/bin/konsole 6MiB |
| 0 N/A N/A 2083 G /usr/bin/akonadi_control 6MiB |
| 0 N/A N/A 2186 G …bin/akonadi_archivemail_agent 6MiB |
| 0 N/A N/A 2187 G …in/akonadi_birthdays_resource 6MiB |
| 0 N/A N/A 2188 G …bin/akonadi_contacts_resource 6MiB |
| 0 N/A N/A 2189 G …konadi_followupreminder_agent 6MiB |
| 0 N/A N/A 2190 G /usr/bin/akonadi_ical_resource 6MiB |
| 0 N/A N/A 2191 G /usr/bin/akonadi_indexing_agent 6MiB |
| 0 N/A N/A 2192 G …/bin/akonadi_maildir_resource 6MiB |
| 0 N/A N/A 2193 G …/akonadi_maildispatcher_agent 6MiB |
| 0 N/A N/A 2205 G …/bin/akonadi_mailfilter_agent 6MiB |
| 0 N/A N/A 2206 G /usr/bin/akonadi_mailmerge_agent 6MiB |
| 0 N/A N/A 2207 G /usr/bin/akonadi_migration_agent 6MiB |
| 0 N/A N/A 2208 G …akonadi_newmailnotifier_agent 6MiB |
| 0 N/A N/A 2209 G /usr/bin/akonadi_sendlater_agent 6MiB |
| 0 N/A N/A 2210 G …/akonadi_unifiedmailbox_agent 6MiB |
| 0 N/A N/A 2329 G …4-linux-gnu/libexec/kf6/kiod6 6MiB |
| 0 N/A N/A 2643 G …asma-browser-integration-host 6MiB |
| 0 N/A N/A 2949 G …linux-gnu/libexec/baloorunner 6MiB |
| 0 N/A N/A 2974 G /usr/bin/plasma-discover 34MiB |
| 0 N/A N/A 29603 G /usr/bin/konsole 6MiB |
| 0 N/A N/A 29745 C+G …t_kdenliDkbAcM/AppRun.wrapped 16641MiB |
±----------------------------------------------------------------------------------------+

yeah flatpak clean while appimage + deb-multimedia both throw CUDA_ERROR_OPERATING_SYSTEM fits that host cuda 13.2 fight.

flatpak runs its own ffmpeg/mlt against the nvidia flatpak gl runtime, so it skips the host hwaccel path the appimage is hitting.

id just stay on flatpak for daily work. if you still wanna poke the appimage:

  1. Settings → Environment → Melting → turn off hardware acceleration / gpu decode
  2. launch with:
    MLT_AVFORMAT_HWACCEL=none LIBVA_DRIVER_NAME= ./kdenlive-*.AppImage

nvidia-smi already shows AppRun.wrapped on ~16GB so the card is fine. appimage just cant talk that driver clean.