Bug 482134 - Kdenlive crashes when making making a gradient on a title clip rectangle
Summary: Kdenlive crashes when making making a gradient on a title clip rectangle
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Effects & Transitions (show other bugs)
Version: 24.01.95
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-01 09:17 UTC by Roxane
Modified: 2024-03-01 11:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roxane 2024-03-01 09:17:54 UTC
SUMMARY
Hi! When trying to make a new gradient on a rectangle in a title clip, the software crashes instantly on W10.


STEPS TO REPRODUCE
1. Make a rectangle on a title clip
2. choose gradient as the color
3. Click on the pencil to modify the colors -> crash

OBSERVED RESULT
goodbye kdenlive

EXPECTED RESULT
changing the color

SOFTWARE/OS VERSIONS
Windows: 10


ADDITIONAL INFORMATION
Comment 1 Jean-Baptiste Mardelle 2024-03-01 09:35:46 UTC
I can reproduce thanks, working on it.
Comment 2 Jean-Baptiste Mardelle 2024-03-01 10:22:28 UTC
Seems to happen if you have an invalid gradient defined in the config file kdenliverc.
As a workaround, open the file in a text editor and look for:

[TitleGradients]
Gradient=#ffffffff;#ff000000;0;100;90
Gradient 1=

You should have a line with a gradient name like this: "Gradient 1=" with no value defined. Delete that line should solve the crash as a workaround. Not sure how this empty entry is created though. I anyways fixing the cause of the crash
Comment 3 Jean-Baptiste Mardelle 2024-03-01 10:24:40 UTC
Git commit e84a088193876adcdc7c6f4e69b274e530c67310 by Jean-Baptiste Mardelle.
Committed on 01/03/2024 at 10:24.
Pushed by mardelle into branch 'release/24.02'.

Fix crash on invalid gradient data.

M  +8    -2    src/titler/gradientwidget.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/e84a088193876adcdc7c6f4e69b274e530c67310
Comment 4 Roxane 2024-03-01 11:01:22 UTC
Thanks for the quick fix!