Bug 447854 - CONSISTENT RENDER CRASH - 100% of the time - right at the end of rendering
Summary: CONSISTENT RENDER CRASH - 100% of the time - right at the end of rendering
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (other bugs)
Version First Reported In: 23.04.3
Platform: Manjaro Linux
: HI critical
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
: 435127 447857 448351 451132 451508 456288 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-01-02 19:36 UTC by KaydanLive_Newbie
Modified: 2023-09-23 21:12 UTC (History)
18 users (show)

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


Attachments
example project (12.40 KB, application/xml)
2022-09-01 18:47 UTC, candide
Details
PXL_20230717_125929115.jpg (2.11 MB, image/jpeg)
2023-07-17 13:01 UTC, Deekshith R Prabhu
Details
PXL_20230717_130706040.jpg (1.77 MB, image/jpeg)
2023-07-17 13:08 UTC, Deekshith R Prabhu
Details
attachment-3185750-0.html (1.06 KB, text/html)
2023-07-17 14:01 UTC, Deekshith R Prabhu
Details
attachment-3264456-0.html (1.21 KB, text/html)
2023-07-18 14:47 UTC, Deekshith R Prabhu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description KaydanLive_Newbie 2022-01-02 19:36:20 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Install 21.12.0 over 21.08.3
2. Load any video clip
3. Render
4. Get this message 100% of the time, no matter what clip is loaded and a render effort and right at the very end of the render attempt

Rendering of D:/ms202/Videos/test13.mp4 crashed

[mp4 @ 0000000002a8e000] Timestamps are unset in a packet for stream 1. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly [mp4 @ 0000000002a8e000] Encoder did not produce proper pts, making some up. [mp4 @ 0000000002a8e000] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 21563392 >= 21563392

OBSERVED RESULT

Rendering of D:/ms202/Videos/test13.mp4 crashed

[mp4 @ 0000000002a8e000] Timestamps are unset in a packet for stream 1. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly [mp4 @ 0000000002a8e000] Encoder did not produce proper pts, making some up. [mp4 @ 0000000002a8e000] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 21563392 >= 21563392

EXPECTED RESULT

Rendered video

SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: ???
KDE Frameworks Version: ???
Qt Version: ???

ADDITIONAL INFORMATION

I went back to version 21.08.3 and everything is working once again!
Comment 1 emohr 2022-01-04 13:18:32 UTC
There are some issues with project loading in 21.12.0 which can lead to render crash. In the meantime we have fixed some project loading issue. 

Make a copy of your project file and please try with the nightly build to see if your render crash is fixed. https://binary-factory.kde.org/job/Kdenlive_Nightly_mingw64/lastSuccessfulBuild/artifact/
Comment 2 KaydanLive_Newbie 2022-01-04 13:23:40 UTC
(In reply to emohr from comment #1)
> There are some issues with project loading in 21.12.0 which can lead to
> render crash. In the meantime we have fixed some project loading issue. 
> 
> Make a copy of your project file and please try with the nightly build to
> see if your render crash is fixed.
> https://binary-factory.kde.org/job/Kdenlive_Nightly_mingw64/
> lastSuccessfulBuild/artifact/

Thank you!  Will do, stay tuned!
Comment 3 Peter 2022-01-14 16:30:54 UTC
I had the same problem. Windows 10, Kdenlive 21.12.0 or 21.12.1 installed over 21.08 or older. Also the last daily build has after installation over the same problem.

Provisional solution: It is necessary at first to uninstall previous version of Kdenlive. This unstalation has to be really complete. Please do not use "Windows uninstallation", but something better. I used IOBitUninstaller. After them you can install Kdenlive 21.12.1 and it will work OK: No crash by rendering.

Conclusion: The problem is somewhere between new clear instalation, and instalation over the old version. Any residue of old version by instalation "over" causes the crash by renderings end. What is it? - It is a question for authors.

I hope this comment can help.
Peter
Comment 4 emohr 2022-01-14 17:07:04 UTC
Thank you for your feedback. I guess the file dbus-daemon.exe is the problem. The uninstall routine seems didn't delete the whole Kdenlive folder.
Comment 5 KaydanLive_Newbie 2022-01-14 17:11:35 UTC
Not being very computer savvy, I think I'll keep the working previous version and wait till the install routine is fixed so that it takes care of the file that is causing the problem.
Comment 6 ahiijny 2022-05-20 06:02:02 UTC
Hello, I tried upgrading from 20.12.2 to 21.12.3 and I'm experiencing the same issue.

The rendering progresses, but it crashes right after reaching 100%.

Rendering of D:/UserName/Videos/Tests/2204020306 - Sudden - 2205200155.mp4 crashed

[mp4 @ 0000000005fe6980] Timestamps are unset in a packet for stream 1. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly [mp4 @ 0000000005fe6980] Encoder did not produce proper pts, making some up. [mp4 @ 0000000005fe6980] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 668672 >= 668672

Windows 10 Version 21H2 (OS Build 19044.1706)
Comment 7 Daniele Scasciafratte 2022-05-26 17:40:59 UTC
I am getting the same issue on linux.
I am trying with melt using the file generated in /tmp/ outside kdenlive, so maybe the bug is on the file generated by kdenlive 22.04.1 and melt 7.6.0.
Comment 8 ahiijny 2022-08-01 21:25:15 UTC
I upgraded to Kdenlive 22.04.3, tried rendering an exiting project, got the same rendering errors.

[mp4 @ 000001748372cec0] Timestamps are unset in a packet for stream 1. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly [mp4 @ 000001748372cec0] Encoder did not produce proper pts, making some up.Rendering of D:/Username/Videos/Clips/render test.mp4 aborted, resulting video will probably be corrupted.
Frame: 674

Saw the Reddit thread: https://www.reddit.com/r/kdenlive/comments/swda9v/rendering_crashed_after_updating_fixed/

Parallel processing was already unchecked. But I tried changing Threads from "Auto" to "1". Tried rendering to mp4. Still failed.

[mp4 @ 000001fa710eea80] Timestamps are unset in a packet for stream 1. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly [mp4 @ 000001fa710eea80] Encoder did not produce proper pts, making some up.Rendering of D:/Username/Videos/Clips/render test 2.mp4 aborted, resulting video will probably be corrupted.
Frame: 696

Tried Rendering to webm. Still failed.

[libvorbis @ 0000011e67334dc0] 36 frames left in the queue on closingRendering of D:/Username/Videos/Clips/render test 2.webm aborted, resulting video will probably be corrupted.
Frame: 702

I tried starting a completely new project, dragged in a random video clip, and tried rendering a small part of it using the "selected zone" option instead of "full project" (I was impatient :3) It succeeded???

I tried opening the existing project that was failing before and then rendered it to mp4 again. It succeeded??? And to webm succeeded as well.

I am very confused ^_^;;
Comment 9 Andrey 2022-08-16 06:14:12 UTC
Having the same issue with the 22.04.3 and the nightly as well. Flatpak builds are the most troublesome, the AppImage seems more stable but I had one such crash there also. Starting the render again right after the crash without touching anything seems to help in some cases. The input clips are all H264 4K, the project is also 4K 23.96 fps. I am using proxies on all clips and lots of effects (Bezier Curves, Vignette, Deband, Video noise generator, LUT to name a few) on clips and tracks but none on the Master. By the way, Vignette (not Vignette Effect) often behaves abnormally on the beginning of a clip - first couple of frames contain no effect, then it appears but shrunk (i.e. the frame is almost black except for the center) for one frame, and after that it is normal.
Comment 10 Andrey 2022-08-16 06:19:38 UTC
More info: I am rendering using the standard MP4-H264/AAC template but changing it to WebM or anything else or creating a custom one does not help. Parallel Processing is on, 16 threads (CPU is Ryzen with 8 cores). I suspect that turning Parallel Processing off may help (or not?), I can't test it properly because rendering becomes impossibly slow because of the sheer amount of effects I am using on the 4K video.
Comment 11 Andrey 2022-08-16 10:58:38 UTC
Correction: AppImage 22.04.3 version does not crash, unless you hit "Abort Job". Then it crashes with the same errors:

[mp3 @ 0x298af80] Estimating duration from bitrate, this may be inaccurate
[mp3 @ 0x298c380] Estimating duration from bitrate, this may be inaccurate
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3aff440] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3aff440] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3aff440] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3b01c00] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3b01c00] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3b01c00] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3d4e440] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3d4e440] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3d4e440] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3d8e900] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3d8e900] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3d8e900] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x410d140] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x410d140] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x410d140] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3da9480] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3da9480] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3da9480] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x6264500] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x6264500] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x6264500] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x86126c0] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x86126c0] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x86126c0] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5203040] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5203040] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5203040] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x628fe40] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x628fe40] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x628fe40] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x6242200] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x6242200] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x6242200] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x62567c0] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x62567c0] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x62567c0] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x645cdc0] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x645cdc0] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x645cdc0] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x51b5f40] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x51b5f40] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x51b5f40] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x4d02e80] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x4d02e80] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x4d02e80] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3b83740] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3b83740] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3b83740] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3b5e280] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3b5e280] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3b5e280] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5201bc0] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5201bc0] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5201bc0] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3bcc640] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3bcc640] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3bcc640] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x51b30c0] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x51b30c0] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x51b30c0] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x4ff8980] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x4ff8980] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x4ff8980] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5159d40] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5159d40] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5159d40] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x621e400] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x621e400] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x621e400] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x63abc40] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x63abc40] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x63abc40] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5179380] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5179380] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5179380] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x63aac80] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x63aac80] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x63aac80] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x517bbc0] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x517bbc0] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x517bbc0] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f498400acc0] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f498400acc0] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f498400acc0] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f498403f900] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f498403f900] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f498403f900] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4964262180] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4964262180] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4964262180] Referenced QT chapter track not found
[out @ 0x7f49642e5700] Removing channel layout 0x3, redundant with 2 channels
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4964df9d40] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4964df9d40] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4964df9d40] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4985721240] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4985721240] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4985721240] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f49641e3f40] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f49641e3f40] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f49641e3f40] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f496430bbc0]
st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f496430bbc0]
st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f496430bbc0] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4964761540] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4964761540] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4964761540] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f49647282c0] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f49647282c0] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f49647282c0] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4986706000] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4986706000] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4986706000] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f49840a3ec0] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f49840a3ec0] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f49840a3ec0] Referenced QT chapter track not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f496463d200] st: 0 edit list: 1 Missing key frame while searching for timestamp: 15015 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f496463d200] st: 0 edit list 1 Cannot find an index entry before timestamp: 15015.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f496463d200] Referenced QT chapter track not found
Comment 12 emohr 2022-08-16 15:37:36 UTC
Try again with parallel processing switched off as some effects are not parallel save and Kdenlive will crash. Even the rendering takes ages.
Comment 13 Andrey 2022-08-17 14:58:07 UTC
Tried without Parallel Processing and it did not crash (rendering took 1h45m instead of 36m with PP on). I started rendering right after loading the project, without doing any editing whatsoever, so that's not a strictly clean experiment. I'll try it once again a bit later in a normal way, i.e. do some editing then render. Anyway AppImage version does NOT crash even with PP on, except for the case when I intentionally abort the rendering process, only the Flatpak versions do crash.
Comment 14 Daniele Scasciafratte 2022-08-17 15:05:41 UTC
Just adding some info from my last comment.

In my tests it was something on KDElive with melt. As the melt file generated was crashing melt after a while also if executed without kdenlive.
So I remember that I did some changes to the projects as usual and the crash didn't happened again.

I wasn't able to replicate and give more information but my guess is a bug in melt with some settings generated by kdenlive.

My suggestion to others is to check if there is a mlt file in `/tmp` folder that is generated during the rendering process in Kdenlive, do a backup and execute melt with that file. If it is crashing also in that way is something in melt so this can help in the debugging.
Comment 15 Andrey 2022-08-18 14:14:58 UTC
Confirmed: that is the problem with MLT, or to be precise with the obscure not-yet-released MLT v7.9 used in the Flatpak version. Wherever they got it it's certainly not stable. Rendering the project externally using melt v7.8 does not cause any crash, despite the same warning messages.
Comment 16 Daniele Scasciafratte 2022-08-18 14:23:09 UTC
On Debian Sid I have melt 7.8 and it was crashing.

Maybe this require some further investigation and a project file that crashes melt.
Comment 17 Andrey 2022-08-18 14:48:55 UTC
2 Daniele Scasciafratte: which version of Kdenlive you're using? Binary from the distro repos, Ubuntu PPA, AppImage or Flatpak?
Comment 18 Daniele Scasciafratte 2022-08-18 15:19:02 UTC
I use Debian Sid packages from official repositories no flatpak/appimag/whatever.
Comment 19 Andrey 2022-08-18 18:31:21 UTC
travier has just made a build of the latest flatpak release with mlt v7.8, and it still crashes. So what I can tell for sure now:

1. At least for me, calling the melt CLI tool (at least the version 7.8) manually with the .mlt file taken from the /tmp dir renders it successfully in 100% cases.
2. In Kdenlive, starting the render once again right after it has crashed, without touching anything in the interface, increases the number of successfully rendered frames.
3. Rendering with Parallel Processing turned off (seemingly) remedies the problem completely.

Memory leak in some effect? Melt run from Terminal Emulator is somehow more resilient to memory leaks? Anyway, tomorrow I'll try to gradually strip off different effects in a hope to identify the one which causes trouble. Of course, if it's not a memory leak in the parallel processing code itself, irrespective of particular effects used.
Comment 20 farid 2022-08-26 14:37:35 UTC
(In reply to Andrey from comment #19)
> travier has just made a build of the latest flatpak release with mlt v7.8,
> and it still crashes. So what I can tell for sure now:
> 
> 1. At least for me, calling the melt CLI tool (at least the version 7.8)
> manually with the .mlt file taken from the /tmp dir renders it successfully
> in 100% cases.
> 2. In Kdenlive, starting the render once again right after it has crashed,
> without touching anything in the interface, increases the number of
> successfully rendered frames.
> 3. Rendering with Parallel Processing turned off (seemingly) remedies the
> problem completely.
> 
> Memory leak in some effect? Melt run from Terminal Emulator is somehow more
> resilient to memory leaks? Anyway, tomorrow I'll try to gradually strip off
> different effects in a hope to identify the one which causes trouble. Of
> course, if it's not a memory leak in the parallel processing code itself,
> irrespective of particular effects used.

That for helping debug this!
Comment 21 farid 2022-08-26 14:54:11 UTC
(In reply to farid from comment #20)
> (In reply to Andrey from comment #19)
> > travier has just made a build of the latest flatpak release with mlt v7.8,
> > and it still crashes. So what I can tell for sure now:
> > 
> > 1. At least for me, calling the melt CLI tool (at least the version 7.8)
> > manually with the .mlt file taken from the /tmp dir renders it successfully
> > in 100% cases.
> > 2. In Kdenlive, starting the render once again right after it has crashed,
> > without touching anything in the interface, increases the number of
> > successfully rendered frames.
> > 3. Rendering with Parallel Processing turned off (seemingly) remedies the
> > problem completely.
> > 
> > Memory leak in some effect? Melt run from Terminal Emulator is somehow more
> > resilient to memory leaks? Anyway, tomorrow I'll try to gradually strip off
> > different effects in a hope to identify the one which causes trouble. Of
> > course, if it's not a memory leak in the parallel processing code itself,
> > irrespective of particular effects used.
> 
> That for helping debug this!

meant to say thanks
Comment 22 Andrey 2022-08-26 14:56:51 UTC
Although there were lots of problems I have completed my project (that was a music video), but in my spare time I am still trying to figure out what exactly causes these crashes. If I remove all the track effects there are no crashes whatsoever, that's for sure. If I put only one any effect of the three that I use (Video Noise Generator, Deband and LUT) there are also no crashes. If I put all the three it crashes. Another strangeness is that sometimes the project gets into the state when one or more of these effects become not applied, i.e. they are in the list and active but there is no effect. The only way to fix this is to remove them and re-add again, but the latter problem has not appeared again since I started experimenting more systematically, making copies of the project on each stage. So I continue investigating.
Comment 23 farid 2022-08-26 15:11:36 UTC
(In reply to Andrey from comment #22)
> Although there were lots of problems I have completed my project (that was a
> music video),

Cool, share your work with us and check this out: https://kdenlive.org/en/2022/08/do-you-use-kdenlive-share-your-project-and-behind-the-scenes-footage-and-stills/

> exactly causes these crashes. If I remove all the track effects there are no
> crashes whatsoever, that's for sure. If I put only one any effect of the
> three that I use (Video Noise Generator, Deband and LUT) there are also no
> crashes. If I put all the three it crashes. Another strangeness is that
> sometimes the project gets into the state when one or more of these effects
> become not applied, i.e. they are in the list and active but there is no
> effect. The only way to fix this is to remove them and re-add again, but the
> latter problem has not appeared again since I started experimenting more
> systematically, making copies of the project on each stage. So I continue
> investigating.

If you could eventually manage to reproduce this on a small project and upload it I could try to help debug.
Comment 24 farid 2022-08-26 19:09:00 UTC
*** Bug 435127 has been marked as a duplicate of this bug. ***
Comment 25 farid 2022-08-26 19:11:05 UTC
*** Bug 447857 has been marked as a duplicate of this bug. ***
Comment 26 farid 2022-08-26 19:11:33 UTC
*** Bug 448351 has been marked as a duplicate of this bug. ***
Comment 27 farid 2022-08-26 19:11:50 UTC
*** Bug 451132 has been marked as a duplicate of this bug. ***
Comment 28 farid 2022-08-26 19:14:09 UTC
*** Bug 451508 has been marked as a duplicate of this bug. ***
Comment 29 farid 2022-08-26 19:17:55 UTC
*** Bug 456288 has been marked as a duplicate of this bug. ***
Comment 30 farid 2022-08-26 19:18:59 UTC
*** Bug 456598 has been marked as a duplicate of this bug. ***
Comment 31 farid 2022-08-26 19:20:26 UTC
*** Bug 458252 has been marked as a duplicate of this bug. ***
Comment 32 farid 2022-08-26 19:25:34 UTC
*** Bug 439932 has been marked as a duplicate of this bug. ***
Comment 33 Andrey 2022-08-29 12:34:40 UTC
Okay, here is the minimalistic project which I think exposes the same problem which I was struggling with when working on my music video: https://disk.yandex.ru/d/aqkbAfXXJv83aA

There are 4 versions of the project (crash_test.kdenlive, crash_test2.kdenlive, etc.), from the most stable to the (probably) most unstable.

Summarizing the test conditions: the system configuration is Debian 10 (stable), GNOME with Wayland, AMD Ryzen 7 2700 8-Core CPU, 32 GB of RAM, MSI Radeon RX 5600 XT video card, HiDPI 4K monitor. Kdenlive is the Flatpak version, installed from Flathub into user space (not Super User/system-wide). QT backend is set to "xcb" via QT_QPA_PLATFORM=xcb added to org.kde.kdenlive env overrides.

Rendering is done with Parallel Processing set to 15, setting it to 1 seemingly eliminates the problem. Crashes are starting to happen when I add several of Vignette and/or Cairo Gradient effects alongside with other complex effects (Video Noise Generator, Deband, LUT). When rendering crash_test3.kdenlive the crash can be provoked by dragging the timeline cursor back and forth and over the end of the project in the background while rendering the job.
Comment 34 Andrey 2022-08-29 12:39:56 UTC
The last assertion is incorrect: dragging the cursor does not provoke anything, at least not consistently.
Comment 35 candide 2022-08-29 15:11:15 UTC
Hi, I'm still having this issue. See: https://bugs.kde.org/show_bug.cgi?id=458252
Comment 36 Andrey 2022-09-01 13:30:21 UTC
(In reply to candideu from comment #35)
> Hi, I'm still having this issue. See:
> https://bugs.kde.org/show_bug.cgi?id=458252

Please provide more info, the output log alone is not enough. The best thing would be a specially created small project which definitely provokes the crash and which you can share publicly in full.
Comment 37 candide 2022-09-01 18:47:57 UTC
Created attachment 151771 [details]
example project
Comment 38 candide 2022-09-01 18:48:39 UTC
(In reply to Andrey from comment #36)
> (In reply to candideu from comment #35)
> > Hi, I'm still having this issue. See:
> > https://bugs.kde.org/show_bug.cgi?id=458252
> 
> Please provide more info, the output log alone is not enough. The best thing
> would be a specially created small project which definitely provokes the
> crash and which you can share publicly in full.

Attachment has been added
Comment 40 Deekshith R Prabhu 2023-07-17 09:51:55 UTC
I downloaded kdenlive packages in manjaro and it seems to be crashing every 2-3mins once
Making my life tougher.
Will wait for a day more and then shift to some other software even though kdenlive is so far the best one.
Comment 41 Andrey 2023-07-17 10:45:26 UTC
(In reply to Deekshith R Prabhu from comment #40)
> I downloaded kdenlive packages in manjaro and it seems to be crashing every
> 2-3mins once
> Making my life tougher.
> Will wait for a day more and then shift to some other software even though
> kdenlive is so far the best one.

The Manjaro package comes from ArchLinux: https://archlinux.org/packages/extra/x86_64/kdenlive
The version there is 23.04.3-1, there was no official 23.04.3 release yet (at least there is nothing in the news on kdenlive.org). Also it was packed on 2023-07-06, that's 10 days old. I suggest you to wait or contact the package maintainer (Antonio Rojas) and ask for update.
Comment 42 Andrey 2023-07-17 10:47:26 UTC
(In reply to Deekshith R Prabhu from comment #40)
> I downloaded kdenlive packages in manjaro and it seems to be crashing every
> 2-3mins once
> Making my life tougher.
> Will wait for a day more and then shift to some other software even though
> kdenlive is so far the best one.

The Manjaro package comes from ArchLinux: https://archlinux.org/packages/extra/x86_64/kdenlive
The version there is 23.04.3-1, there was no official 23.04.3 release yet (at least there is nothing in the news on kdenlive.org). Also it was packed on 2023-07-06, that's 10 days old. I suggest you to wait or contact the package maintainer (Antonio Rojas) and ask for update.

In the meanwhile you can try the Flatpak version, it's been updated several hours ago.
Comment 43 Deekshith R Prabhu 2023-07-17 13:01:21 UTC
Created attachment 160329 [details]
PXL_20230717_125929115.jpg

Installed flatpak version after suggested by you.
Still facing the same issues.
Kindly help me resolve.
PFA.
Thanks & Regards,
Deekshith

On Mon, 17 Jul, 2023, 4:17 pm Andrey, <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=447854
>
> --- Comment #42 from Andrey <megester@efenstor.net> ---
> (In reply to Deekshith R Prabhu from comment #40)
> > I downloaded kdenlive packages in manjaro and it seems to be crashing
> every
> > 2-3mins once
> > Making my life tougher.
> > Will wait for a day more and then shift to some other software even
> though
> > kdenlive is so far the best one.
>
> The Manjaro package comes from ArchLinux:
> https://archlinux.org/packages/extra/x86_64/kdenlive
> The version there is 23.04.3-1, there was no official 23.04.3 release yet
> (at
> least there is nothing in the news on kdenlive.org). Also it was packed on
> 2023-07-06, that's 10 days old. I suggest you to wait or contact the
> package
> maintainer (Antonio Rojas) and ask for update.
>
> In the meanwhile you can try the Flatpak version, it's been updated several
> hours ago.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
Comment 44 Deekshith R Prabhu 2023-07-17 13:08:23 UTC
Created attachment 160330 [details]
PXL_20230717_130706040.jpg

Below attached the crashing report.

On Mon, 17 Jul, 2023, 6:30 pm Deekshith Prabhu, <prabhudeekshith11@gmail.com>
wrote:

> Installed flatpak version after suggested by you.
> Still facing the same issues.
> Kindly help me resolve.
> PFA.
> Thanks & Regards,
> Deekshith
>
> On Mon, 17 Jul, 2023, 4:17 pm Andrey, <bugzilla_noreply@kde.org> wrote:
>
>> https://bugs.kde.org/show_bug.cgi?id=447854
>>
>> --- Comment #42 from Andrey <megester@efenstor.net> ---
>> (In reply to Deekshith R Prabhu from comment #40)
>> > I downloaded kdenlive packages in manjaro and it seems to be crashing
>> every
>> > 2-3mins once
>> > Making my life tougher.
>> > Will wait for a day more and then shift to some other software even
>> though
>> > kdenlive is so far the best one.
>>
>> The Manjaro package comes from ArchLinux:
>> https://archlinux.org/packages/extra/x86_64/kdenlive
>> The version there is 23.04.3-1, there was no official 23.04.3 release yet
>> (at
>> least there is nothing in the news on kdenlive.org). Also it was packed
>> on
>> 2023-07-06, that's 10 days old. I suggest you to wait or contact the
>> package
>> maintainer (Antonio Rojas) and ask for update.
>>
>> In the meanwhile you can try the Flatpak version, it's been updated
>> several
>> hours ago.
>>
>> --
>> You are receiving this mail because:
>> You are on the CC list for the bug.
>
>
Comment 45 Andrey 2023-07-17 13:55:03 UTC
"Out of memory" messages suggest there is a memory leak somewhere. It's unlikely in the Kdenlive itself, more likely in some effect or the MLT framework. Which effects are you using?
Comment 46 Deekshith R Prabhu 2023-07-17 14:01:58 UTC
Created attachment 160333 [details]
attachment-3185750-0.html

 "I'm not sure what the mlt framework is, I'm using the following built in
effects

- Wipe
-Composite Composition

"

On Mon, 17 Jul 2023 at 19:25, Andrey <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=447854
>
> --- Comment #45 from Andrey <megester@efenstor.net> ---
> "Out of memory" messages suggest there is a memory leak somewhere. It's
> unlikely in the Kdenlive itself, more likely in some effect or the MLT
> framework. Which effects are you using?
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
Comment 47 Andrey 2023-07-17 14:29:50 UTC
MLT is the core thing behind Kdenlive, it does all the rendering (https://archlinux.org/packages/extra/x86_64/mlt), it is developed by different people.

Anyway more info would be helpful. Run:
flatpak run org.kde.kdenlive --mlt-log debug

And report the debug info.
Comment 48 Deekshith R Prabhu 2023-07-18 14:47:30 UTC
Created attachment 160364 [details]
attachment-3264456-0.html

I did a swap and now it seemed to work fine.
Not sure why it was not an issue when I was using windows


On Mon, 17 Jul 2023 at 19:59, Andrey <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=447854
>
> --- Comment #47 from Andrey <megester@efenstor.net> ---
> MLT is the core thing behind Kdenlive, it does all the rendering
> (https://archlinux.org/packages/extra/x86_64/mlt), it is developed by
> different
> people.
>
> Anyway more info would be helpful. Run:
> flatpak run org.kde.kdenlive --mlt-log debug
>
> And report the debug info.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
Comment 49 Andrey 2023-07-18 17:35:28 UTC
That's interesting. It seems that either 8 GB is not enough or swap is compulsory, just for rendering HD video of any length. But it seems so. Anyway I also have no problems with rendering even very complex 4K videos with lots of effects, but I have 32 GB.
Comment 50 farid 2023-09-23 21:12:34 UTC
FYI: there have been several fixes since in both Kdenlive and MLT with the last one being this: https://invent.kde.org/multimedia/kdenlive/-/commit/d479d8819f8ce97d437ee076d0abd951c3cd4180

Will be available in next release.