Bug 432016 - Setting frame rate numerator to 0 breaks Kdenlive forever
Summary: Setting frame rate numerator to 0 breaks Kdenlive forever
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Setup & Installation (show other bugs)
Version: 20.12.1
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Vincent PINON
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-24 00:20 UTC by ByteEater
Modified: 2021-02-25 19:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
fritzibaby: Brainstorm+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ByteEater 2021-01-24 00:20:49 UTC
I wanted to make some videos with still images for uploading podcast episodes to YouTube. I set the frame rate numerator to 0 in a new profile to see if this gives the desired outcome (otherwise I'd settle for 1 and the maximal possible denominator: 10000). This caused Kdenlive to break completely. The UI became unusable. When I tried to restart it, it dumped core and in the messages (to get them I ran it from the terminal) it complained about negative (0 (sic) or -1) sizes being invalid for UI controls. I deleted the profile files in the kdenlive's subdirectory underneath my home. This resulted in Kdenlive asking to set the default profile when run. But when I choose one, it just quits. I even tried reinstalling Kdenlive and restarting the computer but the bug is still there, apparently preventing me from using Kdenlive ever again on this system (I wonder where it keeps the offending setting, which it sets but cannot handle, even when uninstalled and its configuration directory deleted.)

My system is Linux 5.10.7-3-MANJARO #1 SMP PREEMPT.
Comment 1 emohr 2021-01-28 18:36:47 UTC
I confirm the crash setting the frame rate to zero.
Comment 2 Julius Künzel 2021-02-25 19:34:34 UTC
Just to make sure you deleted the right director, this is the right one:

Profiles, Effects,…: 
~/.local/share/kdenlive

Config files:
~/.cache/kdenliverc 
~/.cache/kdenlive-appimagerc

If you try to reopen your broken project you need to open it with a text edtior first and edit the line similar that looks like this:

<profile frame_rate_num="25" sample_aspect_num="1" display_aspect_den="9" colorspace="709" progressive="1" description="HD 1080p 25 fps" display_aspect_num="16" frame_rate_den="1" width="1920" height="1080" sample_aspect_den="1"/>
Comment 3 Julius Künzel 2021-02-25 19:52:22 UTC
Git commit 6dc1c6f7a62025909051c588676d74c408d17518 by Julius Künzel.
Committed on 25/02/2021 at 19:39.
Pushed by jlskuz into branch 'master'.

Do not allow zero for values of a project profile (framrate, framesize,…)

M  +24   -0    src/ui/profiledialog_ui.ui

https://invent.kde.org/multimedia/kdenlive/commit/6dc1c6f7a62025909051c588676d74c408d17518
Comment 4 Julius Künzel 2021-02-25 19:54:57 UTC
Git commit 303c2471de0ff0eb463bd3edfce30680b307801b by Julius Künzel.
Committed on 25/02/2021 at 19:54.
Pushed by jlskuz into branch 'release/20.12'.

Do not allow zero for values of a project profile (framrate, framesize,…)
(cherry picked from commit 6dc1c6f7a62025909051c588676d74c408d17518)

M  +24   -0    src/ui/profiledialog_ui.ui

https://invent.kde.org/multimedia/kdenlive/commit/303c2471de0ff0eb463bd3edfce30680b307801b