Bug 414815 - Automatic creating profile upon clip addition crashes the app
Summary: Automatic creating profile upon clip addition crashes the app
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (show other bugs)
Version: git-master
Platform: Debian stable Linux
: NOR crash
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-04 05:40 UTC by Ilia Lilov
Modified: 2021-03-06 16:22 UTC (History)
2 users (show)

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


Attachments
Video causing kdenlive crash (670.44 KB, video/mp4)
2019-12-04 05:40 UTC, Ilia Lilov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilia Lilov 2019-12-04 05:40:15 UTC
Created attachment 124303 [details]
Video causing kdenlive crash

Version of Kdenlive where bug is present (downloaded as Beta AppImage): 19.11.80 (it's not present in versions list for reporting, so I chosen "git-master" as the closest). The bug appeared not earlier than 19.04.2 at least.

To reproduce (100% repeatability):
- Create a project with "HD 1080p 25 fps" builtin profile.
- Add attached video file as clip to the project. Warning message will appear: "No profile found for your clip. Create and switch to new profile (1920x1080, 29.00fps)?".
- Press "Continue" button on the message (mandatory step; "Cancel" would not allow to reproduce).
- First frame of the video will be shown in Project Monitor for less than a second, and the app crashes after that.


Application output during the crash:

################### ProjectClip::setproducer
################### ClipController::updateProducer
################### ClipController::addmasterproducer
QPoint(0,1)
MUTEX LOCK!!!!!!!!!!!! setmodel
MUTEX UNLOCK!!!!!!!!!!!! setmodel
MUTEX LOCK!!!!!!!!!!!! loadEffects: 
/// GOT AUDIO TRACKS:  (2)
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2251, resource id: 11608789, major code: 40 (TranslateCoords), minor code: 0
################### JOB finished 1
QLibraryPrivate::unload succeeded on "/tmp/.mount_kdenlijMmsSG/usr/plugins/kf5/kio/file.so" (faked)
/tmp/.mount_kdenlijMmsSG/AppRun: line 26:  5741 Segmentation fault                   kdenlive --config kdenlive-appimagerc $@
Comment 1 emohr 2019-12-08 17:04:17 UTC
I tried with the daily build and it doesn't crash anymore. I think it was fixed with 19.11.90. Try with todays nighlty build. BTW: Your clip has 29.303fps?!
Comment 2 Ilia Lilov 2019-12-09 11:13:02 UTC
I just tried Kdenlive 20.03.70 appimage from here: https://binary-factory.kde.org/job/Kdenlive_Nightly_Appimage_Build/lastSuccessfulBuild/artifact/
No crash happens on the same video file now.

My clip has variable framerate, so framerate number shown by different software varies slightly depending on algorithm used by the software. 29.303FPS is my smartphone's answer on my "30FPS, please" request. If I understand correctly, the most part of smartphones nowadays film variable framerate only. I will have to compose a video from 2 smartphones and 1 normal fixed-FPS camera footages in few days, so I'll test how Kdenlive will be able to handle that.
Comment 3 emohr 2021-03-06 10:20:53 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.

Convert your variable bit rate file in project bin first.

Please try with the current Kdenlive AppImage version 20.12.2 https://download.kde.org/stable/kdenlive/20.12/linux/
Comment 4 Ilia Lilov 2021-03-06 15:40:21 UTC
I've tested on 20.12.2 just now, the bug is not reproducible anymore.
Comment 5 emohr 2021-03-06 16:22:39 UTC
Thank you for the feedback and contribution. Glad to hear it works.