Bug 391427 - Kdenlive crashes after rendering throwing an error: Missing reference picture
Summary: Kdenlive crashes after rendering throwing an error: Missing reference picture
Status: REOPENED
Alias: None
Product: kdenlive
Classification: Applications
Component: Video Display & Export (show other bugs)
Version: 23.08.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-05 12:47 UTC by Paulo Correia
Modified: 2023-10-17 20:56 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
fritzibaby: timeline_corruption+


Attachments
Error image (22.26 KB, image/png)
2018-03-05 12:47 UTC, Paulo Correia
Details
Bug when Hardware accelerated (NVENC) (977.18 KB, image/jpeg)
2023-08-31 19:11 UTC, ArnaudSVT
Details
log file from render crash kdenlive 23.08.2 (16.96 KB, text/plain)
2023-10-17 20:50 UTC, Jim Henderson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paulo Correia 2018-03-05 12:47:44 UTC
Created attachment 111198 [details]
Error image

I'm using Kdenlive to render an unique video that is the result of joining 9 files in format ".mts". I tried multiple times following the sequence: 
- Project > Add Clip > Selection of the clip inside an external HD.
- Repeated this operation 9 times as of our registration required. 
- Dragged the thumbnail of the videos to the video channel 3.
- Project > Add clip > Selection of an image as a "front page" of my video. 
- Render for hours (10h or so)


and after various frustrating attempts it crashes throwing this error: Missing reference picture.
Comment 1 emohr 2018-12-29 12:38:52 UTC
Just a guess: To make sure the project is according your footage/clips hit CTR+SHIT+, (comma) and tick under Misc “Check if first added clip matches project profile”. It seems you have a profile issue.
Comment 2 Bug Janitor Service 2019-01-13 04:33:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 emohr 2019-01-13 10:35:52 UTC
What type and size of image do you use as "front page"?
Comment 4 emohr 2021-02-28 15:46:46 UTC
As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

Please try with the current Kdenlive AppImage version 20.12.2  https://download.kde.org/stable/kdenlive/20.12/linux/
Comment 5 Bug Janitor Service 2021-03-15 04:33:37 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2021-03-30 04:33:41 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 7 Ben 2021-05-14 11:38:45 UTC
Hello,

I get the exact same error when rendering my video. 

I tried using the appimage in LMDE and Debian Buster as well as the PPA in LM 19.3
I always get:
[h264 @ 0x7fdb504a6880] reference picture missing during reorder [h264 @ 0x7fdb504a6880] Missing reference picture, default is 2147483647.

“Check if first added clip matches project profile” is active. 

Here is my full log:
Rendern von /home/ben/ntfs/Videos_FES/Chapelbits/Folge_5/klein/Chapel_klein_Folge_5.mp4 abgestürzt

Qt: Session management error: None of the authentication protocols specified are supported
[mp3 @ 0x55a619f22c80] Estimating duration from bitrate, this may be inaccurate
[mp3 @ 0x55a619f2aec0] Estimating duration from bitrate, this may be inaccurate
[out @ 0x7fdb50ab2140] Removing channel layout 0x3, redundant with 2 channels
[mp4 @ 0x7fdb50000f40] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. [mp4 @ 0x7fdb50000f40] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[out @ 0x7fdb51bac080] Removing channel layout 0x3, redundant with 2 channels
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb516b7580] st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb516b7580] st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb5172c480] st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb5172c480] st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb515cc780] st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb515cc780] st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb50f01740] st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb50f01740] st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb5120b400] st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb5120b400] st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb5144d240] st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb5144d240] st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb5133c580]
st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb5133c580] st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb507a0940] st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb507a0940] st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb5119e4c0] st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fdb5119e4c0] st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
[mp3 @ 0x7fdb51c6a200] Estimating duration from bitrate, this may be inaccurate
[mp3 @ 0x7fdb50d7db80]
Estimating duration from bitrate, this may be inaccurate
[h264 @ 0x7fdb50549e80] reference picture missing during reorder [h264 @ 0x7fdb50549e80] Missing reference picture, default is 2147483647
[h264 @ 0x7fdb504a6880] reference picture missing during reorder [h264 @ 0x7fdb504a6880] Missing reference picture, default is 2147483647
Comment 8 emohr 2021-08-05 15:31:03 UTC
We fixed some issue with clips have inaccurate bitrate. Please test with the actual daily build to check if the crash still happens: https://binary-factory.kde.org/job/Kdenlive_Nightly_Appimage_Build/lastSuccessfulBuild/artifact/
Comment 9 Bug Janitor Service 2021-08-20 04:36:28 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Bug Janitor Service 2021-09-04 04:35:52 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 11 Ben 2021-09-04 08:13:08 UTC
Sorry for replying late.

I just tried to test the new build, but merely loading the project in question crashed kdenlive completely.

It did however work when I started it from the commandline(?).

I could then load the project, but I have since deleted three short clips that were part of the project.

It did begin to render but crashed again with the following error output:

Rendering of /home/ben/ntfs/Videos_FES/Chapelbits/Folge_5/klein/Chapel_klein_Folge_5-test.mp4 crashed

[mp3 @ 0x1173400] Estimating duration from bitrate, this may be inaccurate
[mp3 @ 0x118fcc0] Estimating duration from bitrate, this may be inaccurate
[mp3 @ 0x1187540] Estimating duration from bitrate, this may be inaccurate
[mp3 @ 0x11b0c80] Estimating duration from bitrate, this may be inaccurate
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f6175c1c0] st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f6175c1c0] st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f61776880] st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f61776880] st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f6258abc0] st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f6258abc0] st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f60feb540] st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f60feb540] st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f613a4a00] st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f613a4a00] st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f60740a80] st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f60740a80] st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f610843c0]
st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f610843c0]
st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f61497580] st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f61497580] st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f60a07c80] st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f60a07c80] st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
Comment 12 Ben 2021-09-04 09:21:37 UTC
(In reply to Ben from comment #11)
> Sorry for replying late.
> 
> I just tried to test the new build, but merely loading the project in
> question crashed kdenlive completely.
> 
> It did however work when I started it from the commandline(?).
> 
> I could then load the project, but I have since deleted three short clips
> that were part of the project.
> 
> It did begin to render but crashed again with the following error output:
> 
> Rendering of
> /home/ben/ntfs/Videos_FES/Chapelbits/Folge_5/klein/Chapel_klein_Folge_5-test.
> mp4 crashed
> 
> [mp3 @ 0x1173400] Estimating duration from bitrate, this may be inaccurate
> [mp3 @ 0x118fcc0] Estimating duration from bitrate, this may be inaccurate
> [mp3 @ 0x1187540] Estimating duration from bitrate, this may be inaccurate
> [mp3 @ 0x11b0c80] Estimating duration from bitrate, this may be inaccurate
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f6175c1c0] st: 1 edit list: 1 Missing key
> frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @
> 0x7f4f6175c1c0] st: 1 edit list 1 Cannot find an index entry before
> timestamp: 3600.
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f61776880] st: 1 edit list: 1 Missing key
> frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @
> 0x7f4f61776880] st: 1 edit list 1 Cannot find an index entry before
> timestamp: 3600.
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f6258abc0] st: 1 edit list: 1 Missing key
> frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @
> 0x7f4f6258abc0] st: 1 edit list 1 Cannot find an index entry before
> timestamp: 3600.
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f60feb540] st: 1 edit list: 1 Missing key
> frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @
> 0x7f4f60feb540] st: 1 edit list 1 Cannot find an index entry before
> timestamp: 3600.
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f613a4a00] st: 1 edit list: 1 Missing key
> frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @
> 0x7f4f613a4a00] st: 1 edit list 1 Cannot find an index entry before
> timestamp: 3600.
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f60740a80] st: 1 edit list: 1 Missing key
> frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @
> 0x7f4f60740a80] st: 1 edit list 1 Cannot find an index entry before
> timestamp: 3600.
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f610843c0]
> st: 1 edit list: 1 Missing key frame while searching for timestamp: 3600
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f610843c0]
> st: 1 edit list 1 Cannot find an index entry before timestamp: 3600.
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f61497580] st: 1 edit list: 1 Missing key
> frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @
> 0x7f4f61497580] st: 1 edit list 1 Cannot find an index entry before
> timestamp: 3600.
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f4f60a07c80] st: 1 edit list: 1 Missing key
> frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @
> 0x7f4f60a07c80] st: 1 edit list 1 Cannot find an index entry before
> timestamp: 3600.

I can also confirm that rendering the same project without parallel processing doesn't crash.
Comment 13 emohr 2021-09-05 09:37:59 UTC
If you have some frei0r effects in the timeline rendering with parallel processing could fail as the frei0r effects are not thread save. If rendering is working without parallel processing then it is exactly this case.
Comment 14 ArnaudSVT 2023-08-31 19:11:23 UTC
Created attachment 161313 [details]
Bug when Hardware accelerated (NVENC)

I have the same error with NVENC Hardware Accelerated

[code]Le rendu de C:/Users/abrev/Videos/La face cachée de la lune et autres sketchs de Philippe Mercier, par la troupe Didascalies 27_05_23_NVENC_AV1_VBR.mp4 a été interrompu par une erreur fatale

[mov,mp4,m4a,3gp,3g2,mj2 @ 000001dd622ac440] st: 0 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 000001dd622ac440] st: 0 edit list 1 Cannot find an index entry before timestamp: 3600. timestamp: 3600. [mov,mp4,m4a,3gp,3g2,mj2 @ 000001dd66c90580] st: 0 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 000001dd66c90580] st: 0 edit list 1 Cannot find an index entry before timestamp: 3600. [mov,mp4,m4a,3gp,3g2,mj2 @ 000001dd66c90840] st: 0 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 000001dd66c90840] st: 0 edit list 1 Cannot find an index entry before timestamp: 3600. 


...

Le rendu de C:/Users/abrev/Videos/La face cachée de la lune et autres sketchs de Philippe Mercier, par la troupe Didascalies 27_05_23_NVENC_H264_ABR.mp4 a été interrompu par une erreur fatale
...

Le rendu de C:/Users/abrev/Videos/La face cachée de la lune et autres sketchs de Philippe Mercier, par la troupe Didascalies 27_05_23_NVENC_H265_ABR.mp4 a été interrompu par une erreur fatale

...[mov,mp4,m4a,3gp,3g2,mj2 @ 0000023e41da11c0] st: 0 edit list: 1 Missing key frame while searching for timestamp: 3600 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000023e41da11c0] st: 0 edit list 1 Cannot find an index entry before timestamp: 3600.
[mp3 @ 0000023e41da1a00] Estimating duration from bitrate, this may be inaccurate [mp3 @ 0000023e41da0400] Estimating duration from bitrate, this may be inaccurate Current Frame: 1, percentage: 0
[hevc_nvenc @ 0000023e389f0a80] Interlaced encoding is not supported. Supported level: 0
[hevc_nvenc @ 0000023e389f0a80] No capable devices found[/code]
Comment 15 Jim Henderson 2023-10-17 20:50:16 UTC
Created attachment 162386 [details]
log file from render crash kdenlive 23.08.2

See my comment in the thread about this render crash.
Comment 16 Jim Henderson 2023-10-17 20:56:40 UTC
kdenlive 23.08.2 on macos Ventura (13.5.2) crashed in rendering. The display in the error dialog contains "missing reference picture" like this bug report, so I have added an attachment "log file from render crash kdenlive 23.08.2". The brief display is:
Rendering of /Users/jim . . . meeting.mp4 crashed

QObject::startTimer: Timers can only be used with threads started with QThread
[h264 @ 0x7fb00089e640] Missing reference picture, default is 2147483647 [h264 @ 0x7fb0008a32c0]
reference picture missing during reorder [h264 @ 0x7fb0008a32c0] Missing reference picture, default is
2147483647