Bug 505014 - Crash when creating a new gradient in the title editor
Summary: Crash when creating a new gradient in the title editor
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Title Clips & Subtitles (other bugs)
Version First Reported In: 25.04.1
Platform: Pop!_OS Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-30 13:49 UTC by Bernd
Modified: 2025-06-01 16:14 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2025-05-30 13:49:27 UTC
SUMMARY
Creating a new gradient crashes Kdenlive.

STEPS TO REPRODUCE
1. Add a title clip, click on Edit Gradient
2. Create a new gradient (select colors and click on the + icon
3. Click on OK

OBSERVED RESULT
Kdenlive closes the Edit Gradient window but is otherwise unresponsive. Shortly afterwards an error appears saying that Kdenlive is not responding and you can either force quit or wait.

EXPECTED RESULT
No crashing and gradient is created and can be used. 

SOFTWARE/OS VERSIONS (copied from Help > Components)
Kdenlive: 25.04.1
MLT: 7.32.0
FFmpeg
KDE Frameworks: 6.13.0
Qt: Using 6.9.0 and built against 6.9.0
KDE Flatpak runtime (Xcb)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.12.10-76061203-generic
Comment 1 Jean-Baptiste Mardelle 2025-05-30 14:04:14 UTC
I cannot reproduce. Could you open the kdenlive config file in a text editor :
$HOME/.config/kdenliverc

And paste here the [TitleGradients] section ? It should look something like this:

[TitleGradients]
Gradient=#ffffffff;#ff000000;0;100;90
Gradient 1=#ffffffff;#ff000000;0;100;90
Comment 2 Bernd 2025-05-30 16:43:55 UTC
(In reply to Jean-Baptiste Mardelle from comment #1)
> $HOME/.config/kdenliverc
I don't have that file in that location or in $HOME/.local/share/flatpak/app/org.kde.kdenlive/current/active/files/share/kdenlive/
Comment 3 Jean-Baptiste Mardelle 2025-06-01 05:31:09 UTC
Ok, for Flatpak, the config file is here:

$HOME/.var/app/org.kde.kdenlive/config/kdenlive-flatpakrc
Comment 4 Bernd 2025-06-01 15:32:25 UTC
(In reply to Jean-Baptiste Mardelle from comment #3)
> Ok, for Flatpak, the config file is here:
> 
> $HOME/.var/app/org.kde.kdenlive/config/kdenlive-flatpakrc

[TitleGradients]
Gradient 1=

[TitleWidget]

Looks like something is missing ...
Comment 5 Jean-Baptiste Mardelle 2025-06-01 16:14:08 UTC
Git commit 1d60e53a3f980cb6bedf0bc516285e39799448b7 by Jean-Baptiste Mardelle.
Committed on 01/06/2025 at 16:13.
Pushed by mardelle into branch 'release/25.04'.

Fix empty gradient in config causes crash
FIXED-IN: 25.04.2

M  +3    -0    src/titler/gradientwidget.cpp
M  +8    -3    src/titler/titlewidget.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/1d60e53a3f980cb6bedf0bc516285e39799448b7