Bug 494726 - Built-in LUTs has absolute paths causing load error after reopening project when using AppImage executable
Summary: Built-in LUTs has absolute paths causing load error after reopening project w...
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Project Bin & Import (other bugs)
Version First Reported In: 24.08.2
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-14 09:37 UTC by dnx2k
Modified: 2026-01-24 12:35 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dnx2k 2024-10-14 09:37:20 UTC
SUMMARY
Any default LUT (BLUE_TINT.cube, CINEMATIC.cube, GREEN_TINT.cube, TEAL_ORANGE.cube) applied to a clip is stored with it absolute path like `/snap/kdenlive/112/usr/share/kdenlive/luts/CINEMATIC.cube` in case of Snap package manager or path like `/tmp/.mount_kdenlirY0eGN/usr/share/kdenlive/luts/CINEMATIC.cube` for AppImage executable.

Upon saving and reopening the project, Kdenlive can no longer locate the LUTs because they are stored in a transient location. As a result, an error occurs, and the LUT effect is no longer applied.

Suggested solution: use environment variable to identify Kdenlive path while storing default preset files. E.g.:
`$KDENLIVE_PATH/luts/CINEMATIC.cube`

STEPS TO REPRODUCE
1. Download and run Kdenlive using the AppImage executable.
2. Import a video clip into the timeline.
3. Apply the "Apply LUT" effect to the clip.
4. Select any of default LUTs and apply it.
5. Save the project.
6. Close Kdenlive and reopen the same project.

OBSERVED RESULT
After reopening the project, the LUT files are no longer available, leading to the following error:
`[filter avfilter.lut3d] Cannot init scale filter: Invalid argument`

EXPECTED RESULT
The default LUT files should remain linked to the project, and the effect should be retained after reopening the project.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 24.04.1
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Comment 1 Jean-Baptiste Mardelle 2024-10-18 14:32:08 UTC
Git commit b18d5b71822f870454243df17d6edec146d84ee1 by Jean-Baptiste Mardelle.
Committed on 18/10/2024 at 14:31.
Pushed by mardelle into branch 'release/24.08'.

Fix missing build-in LUT files not correctly fixed on project open

M  +3    -1    src/doc/documentchecker.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/b18d5b71822f870454243df17d6edec146d84ee1
Comment 2 luzpaz 2026-01-24 12:35:10 UTC
Can't reproduce on:
Kdenlive: 25.12.1
Kdenlive
MLT: 7.36.1
FFmpeg
KDE Frameworks: 6.21.0
Qt: Using 6.10.1 and built against 6.10.1
Manjaro Linux (Wayland)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.6.119-1-MANJARO

This seems fixed. Closing. If reproducible, please notate this ticket.