Bug 492729 - Normalize (2 pass) causes Kdenlive to freeze-up
Summary: Normalize (2 pass) causes Kdenlive to freeze-up
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Video Effects & Transitions (show other bugs)
Version: 24.08.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2024-09-06 20:57 UTC by turtle.engr
Modified: 2025-02-14 09:58 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description turtle.engr 2024-09-06 20:57:42 UTC
SUMMARY
Using "Normalize (2 pass)" on any audio track causes kdenlive to "freeze," i.e. it is unrespoinsive. The close button doesn't work. I have to do a "kill -9" on the process to kill the program. Nothing seems to be lost after restarting, but Normalize (2 pass) always causes kdenlive to freeze.

Initially, it looks like it is working as the progress bar goes all the way across. But it then continues to say, "Abort processing." When clicking on "Abort processing," kdenlive does not respond to anything.

STEPS TO REPRODUCE
1. Put Normalize (2 pass) in an audio clip on the timeline
2. Click on Analyze
3. After the progress bar is full, and nothing happens for over a minute, press "Abort Processing."

OBSERVED RESULT
* kdenlive is now unresponsive and can't be killed with the GUI or window manager.
* kill -9 needs to be used to kill the application.
* When restarting, nothing is lost, but Normalize (2 pass) always fails when trying again.

EXPECTED RESULT
* Expected normalize to finish and for the application to not freeze.

SOFTWARE/OS VERSIONS
Kdenlive: 24.08.0
Package Type: Flatpak
MLT: 7.27.0
Qt: 6.7.2 (built against 6.7.2 x86_64-little_endian-lp64)
Frameworks: 6.5.0
System: KDE Flatpak runtime
Kernel: linux 5.3.0-7648-generic
CPU: x86_64
Windowing System: xcb
GPU: NVIDIA Corporation/GeForce GTX 670MX/PCIe/SSE2
Movit (GPU): disabled
Track Compositing: qtblend

ADDITIONAL INFORMATION
Using appimage Kdenlive: 23.04.3, Normalize (2 pass) works as expected.
This version works:
Kdenlive: 23.04.3
Package Type: appimage
MLT: 7.17.0
Qt: 5.15.10 (built against 5.15.10 x86_64-little_endian-lp64)
Frameworks: 5.108.0
System: Ubuntu 18.04.6 LTS
Kernel: linux 5.3.0-7648-generic
CPU: x86_64
Windowing System: xcb
Movit (GPU): disabled
Track Compositing: frei0r.cairoblend
Comment 1 turtle.engr 2024-11-06 22:42:15 UTC
The Status hasn't changed for a couple of months. Are there any plans to look at or fix this? Currently version 24.x is unusable for me. Until this is fixed, I'll continue using kdenlive 23.04.3.
Comment 2 emohr 2024-11-25 19:49:24 UTC
If you like to run Kdenlive with Qt6 (Kdenlive version 24.x) then you have to update Ubuntu to version 22.04.

Otherwise, you have to stay with Kdenlive version 23.08.5 (the last Qt5 version)
Comment 3 turtle.engr 2024-11-25 23:22:21 UTC
Yes, I understand Appimage 24.x Kdenlive will not work on Ubuntu 18.x.  It fails on startup.
However, Kdenlive 24.x FLATPAK does start and seems to work for everything I've tried so far, but Normalize crashes it.
Oh well, thanks for responding.
Comment 4 Jean-Baptiste Mardelle 2024-11-28 09:43:40 UTC
I just tested the latest stable FlatPak (24.08.3) and I can add the Normalize (2 pass) effect to an audio clip, click "Analyse", everything works. Can you confirm your flatpak version ?
Comment 5 turtle.engr 2024-12-04 00:01:24 UTC
I updated to Kdenlive: 24.08.3 flatpak. Same problem. The application freezes.

Kdenlive: 24.08.3
Package Type: Flatpak
MLT: 7.28.0
Qt: 6.7.3 (built against 6.7.3 x86_64-little_endian-lp64)
Frameworks: 6.8.0
System: KDE Flatpak runtime
Kernel: linux 5.3.0-7648-generic
CPU: x86_64
Windowing System: xcb
GPU: NVIDIA Corporation/GeForce GTX 670MX/PCIe/SSE2
Movit (GPU): disabled
Track Compositing: qtblend
Comment 6 Bug Janitor Service 2024-12-19 03:46:51 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Ron 2025-01-15 18:36:35 UTC
(In reply to turtle.engr from comment #3)
> Kdenlive will not work on Ubuntu 18.x. ...

Ubuntu 18.04 went EOL mid 2023 ...  is there some compelling reason you can't upgrade that?

I do recall Normalize (2 pass) was flaky in the very early years of me using Kdenlive, but I've
been using it in nearly every project for many years now without any trouble from the appimage
releases.  I'm not sure offhand what code that effect is using - but when kill -9 is the only way out
it's usually something system level ...
Comment 8 Bug Janitor Service 2025-01-30 03:47:28 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2025-02-14 03:46:53 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.
Comment 10 Jean-Baptiste Mardelle 2025-02-14 09:58:15 UTC
Git commit f80f40ca7634f50645cef9ccc2e9515c67e1b232 by Jean-Baptiste Mardelle.
Committed on 14/02/2025 at 09:57.
Pushed by mardelle into branch 'master'.

Fix effects with analysis step like loudness 2 pass and tracker broken on cut clips or on tracks
Related: bug 441451
Fixes #1789

M  +4    -4    src/assets/keyframes/model/keyframemodel.cpp
M  +6    -38   src/assets/keyframes/model/keyframemodellist.cpp
M  +4    -3    src/assets/model/assetparametermodel.cpp
M  +1    -2    src/assets/view/widgets/buttonparamwidget.cpp
M  +9    -4    src/bin/projectitemmodel.cpp
M  +1    -1    src/bin/projectitemmodel.h
M  +2    -2    src/core.cpp
M  +2    -2    src/core.h
M  +66   -40   src/jobs/filtertask.cpp
M  +7    -3    src/jobs/filtertask.h
M  +12   -3    src/project/projectmanager.cpp
M  +5    -1    src/project/projectmanager.h
M  +1    -1    src/pythoninterfaces/otioconvertions.cpp
M  +1    -1    src/render/renderrequest.cpp
M  +13   -0    src/timeline2/model/timelinemodel.cpp
M  +5    -0    src/timeline2/model/timelinemodel.hpp

https://invent.kde.org/multimedia/kdenlive/-/commit/f80f40ca7634f50645cef9ccc2e9515c67e1b232