Bug 502246 - Project hangs during rendering at frame 3628
Summary: Project hangs during rendering at frame 3628
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: kdenlive
Classification: Applications
Component: Rendering & Export (show other bugs)
Version: 24.12.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2025-03-31 16:23 UTC by Stuart Langridge
Modified: 2025-04-15 21:26 UTC (History)
2 users (show)

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


Attachments
Project .kdenlive file which fails to render (150.15 KB, application/xml)
2025-03-31 16:23 UTC, Stuart Langridge
Details
A version of the .kdenlive file without the keyframed c-n-t, which renders successfully but slowly (146.96 KB, application/xml)
2025-03-31 17:25 UTC, Stuart Langridge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Langridge 2025-03-31 16:23:00 UTC
Created attachment 179887 [details]
Project .kdenlive file which fails to render

SUMMARY
The attached project renders (slowly) as mp4 until reaching frame 3628 and then rendering hangs there forever. This does not hang kdenlive itself; I can still abort the job and quit kdenlive.

I have verified this same result in both flatpak and appimage versions of stable (24.12.3), and the appimage daily build (master-9992).

After asking on the Telegram channel for support, they suggested I file a bug report, which is this.

I would guess that the problem is related to the composite-and-transform on one of the tracks on the image sequence, since that has quite a lot of manually-added keyframes in it and the project did successfully render in the past before I added that (so rendering as a whole is not broken), but I can't confirm that.

SOFTWARE/OS VERSIONS
Linux: Ubuntu 24.04
KDE Plasma/Frameworks Version: ? don't know how to find these out 
Qt Version: ? don't know how to find this out either
Comment 1 Stuart Langridge 2025-03-31 17:25:16 UTC
Created attachment 179889 [details]
A version of the .kdenlive file without the keyframed c-n-t, which renders successfully but slowly

I've added a second version of the .kdenlive file as an attachment, which does not have the heavily keyframed composite-and-transform in it. This renders successfully and does not hang, although it does take 40 minutes to render this 4 minute HD video, which seems a very long time.
Comment 2 Stuart Langridge 2025-03-31 17:28:39 UTC
Updating: the project contains an image sequence of about 40 images, each set to be 2s15f in length with a dissolve of 15f in the Project > Add Image Sequence dialogue which is how I imported it.
Comment 3 Stuart Langridge 2025-03-31 17:29:49 UTC
(Note also that the images in the image sequence don't dissolve/crossfade cleanly with one another; they seem to fade to a grey/black chequerboard pattern like that used to indicate transparency and then into the next image)
Comment 4 Jean-Baptiste Mardelle 2025-04-01 09:16:41 UTC
Thanks for your report. Can you give us more info about the images used in the image sequences ? What format and which size (width and height) are the images ? Also, if you try to render just a zone of the project around that problematic frame, like render from 3610 to 3640, does it also hang on the 3628 frame ?
Thanks in advance for the feedback
Comment 5 Stuart Langridge 2025-04-01 19:05:14 UTC
Good questions.

> Can you give us more info about the images used in the image sequences ? What format and which size (width and height) are the images ? 

They're all jpegs. They're mostly fairly high resolution: some are around 4000x3000, and smaller ones are around 768x1024 or similar.

> Also, if you try to render just a zone of the project around that problematic frame, like render from 3610 to 3640, does it also hang on the 3628 frame ?

No, it does not; it successfully rendered that zone to an mp4 without hanging.
Comment 6 Stuart Langridge 2025-04-01 19:21:22 UTC
(In reply to Stuart Langridge from comment #3)
> (Note also that the images in the image sequence don't dissolve/crossfade
> cleanly with one another; they seem to fade to a grey/black chequerboard
> pattern like that used to indicate transparency and then into the next image)

This, it turns out, is caused by applying effects to an image sequence; if I apply a Transform or Position and Zoom effect to the image sequence on the timeline, and the image sequence was given Dissolve when it was imported, then the images crossfade via the "chequerboard" background. Removing the effect removes the chequerboard. This doesn't seem to have anything to do with the render hang, though.
Comment 7 Jean-Baptiste Mardelle 2025-04-02 07:24:46 UTC
Thanks a lot for your feedback. I can confirm both issues (render hang) and checkerboard on image dissolve.
Regarding the render hang, I have identified the cause - incorrect scaling when combining Transform effect with Composite and Transform composition. It will take a few days to properly fix but working on it.

Regarding the checkerboard problem, no idea yet but unrelated to the Transform effect as it also appears with the Position and Zoom effect, so more likely an issue with the luma composition used in image sequences, I will investigate this issue after the first one is fixed.
Comment 9 Jean-Baptiste Mardelle 2025-04-10 08:38:07 UTC
Could you please confirm the rendering hang fix with the 25.04 RC appimage that can be downloaded from here:
https://files.kde.org/kdenlive/unstable/
Comment 10 farid 2025-04-15 17:50:18 UTC
Will mark on gitlab task as done until we have a reply
Comment 11 Stuart Langridge 2025-04-15 21:26:59 UTC
> Could you please confirm the rendering hang fix with the 25.04 RC appimage that can be downloaded from here:

I can confirm that rendering the video that hung with this newer version of kdenlive does not hang. It still takes a very long time to render (much of the rendering is at 1fps or slower, and the whole render took 30m) but it does not hang now, so it seems fixed.