Bug 429997 - Inserting Zones into the project bin causes a crash when selecting zone or clip
Summary: Inserting Zones into the project bin causes a crash when selecting zone or clip
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (other bugs)
Version First Reported In: 20.08.3
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-04 01:59 UTC by Eric Mesa
Modified: 2021-01-03 18:27 UTC (History)
1 user (show)

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


Attachments
HD 1080p 30 fps - Kdenlive.png (1020.19 KB, image/png)
2020-12-17 17:20 UTC, emohr
Details
kdenlive file causing issues (14.69 KB, application/x-kdenlive)
2020-12-20 19:05 UTC, Eric Mesa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Mesa 2020-12-04 01:59:52 UTC
SUMMARY
I'd been using this for nearly a year now and loving it, but in both 20.08.3 and the previous version, I take a clip and, while in "Logging window" I set a start and end and then ctrl-I to make clips. Then I got to the "Editing window". When I click on either the zone or the clip to import it, the whole thing crashes. Problem persists in Kdenlive nightly that I downloaded on 2020-12-02.

STEPS TO REPRODUCE
1. Import a clip
2. Set start and end times
3. Hit ctl-I to make zones
4. Click on the zone clip or the parent clip
5. Kdenlive crashes

OBSERVED RESULT
Kdenlive crashes

EXPECTED RESULT
Kdenlive does not crash

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Using Flatpak version 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
With the nightly Appimage - here's what it dumped to the terminal:

Invalid metadata for "avcolour_space"
Failed to parse "avcolour_space"
Invalid metadata for "avcolor_space"
Failed to parse "avcolor_space"
Invalid metadata for "avdeinterlace"
Failed to parse "avdeinterlace"
Invalid metadata for "swscale"
Failed to parse "swscale"
Invalid metadata for "swresample"
Failed to parse "swresample"
Invalid metadata for "audiochannels"
Failed to parse "audiochannels"
Invalid metadata for "audioconvert"
Failed to parse "audioconvert"
Invalid metadata for "data_feed"
Failed to parse "data_feed"
Invalid metadata for "imageconvert"
Failed to parse "imageconvert"
Invalid title/identifier for "crop_detect"
Failed to parse "crop_detect"
Invalid metadata for "telecide"
Failed to parse "telecide"
Invalid metadata for "deinterlace"
Failed to parse "deinterlace"
Unknown asset "avfilter.acompressor"
Unknown asset "avfilter.aecho"
Unknown asset "avfilter.agate"
Unknown asset "avfilter.atadenoise"
Unknown asset "avfilter.bwdif"
Unknown asset "avfilter.chromashift"
Unknown asset "avfilter.colorhold"
Unknown asset "avfilter.deblock"
Unknown asset "avfilter.dedot"
Unknown asset "avfilter.deflate"
Unknown asset "avfilter.derain"
Unknown asset "avfilter.doubleweave"
Unknown asset "avfilter.field"
Unknown asset "avfilter.framestep"
Unknown asset "avfilter.fspp"
Unknown asset "avfilter.graphmonitor"
Unknown asset "avfilter.hqdn3d"
Unknown asset "avfilter.inflate"
Unknown asset "avfilter.lagfun"
Unknown asset "avfilter.random"
Unknown asset "avfilter.removegrain"
Unknown asset "avfilter.rgbashift"
Unknown asset "avfilter.separatefields"
Unknown asset "avfilter.shuffleplanes"
Unknown asset "avfilter.sr"
Unknown asset "avfilter.tmix"
Unknown asset "avfilter.w3fdif"
Unknown asset "avfilter.weave"
Unknown asset "avfilter.yadif"
Unknown asset "frei0r.baltan"
Unknown asset "frei0r.bgsubtract0r"
Unknown asset "frei0r.bigsh0t_eq_mask"
Unknown asset "frei0r.bigsh0t_eq_to_rect"
Unknown asset "frei0r.bigsh0t_hemi_to_eq"
Unknown asset "frei0r.bigsh0t_rect_to_eq"
Unknown asset "frei0r.bigsh0t_stabilize_360"
Unknown asset "frei0r.bigsh0t_transform_360"
Unknown asset "frei0r.delay0r"
Unknown asset "frei0r.delaygrab"
Unknown asset "frei0r.facebl0r"
Unknown asset "frei0r.facedetect"
Unknown asset "frei0r.lightgraffiti"
Unknown asset "frei0r.lightgraffiti"
Unknown asset "movit.blur"
Unknown asset "movit.sharpen"
Unknown asset "movit.diffusion"
Unknown asset "movit.flip"
Unknown asset "movit.glow"
Unknown asset "movit.lift_gamma_gain"
Unknown asset "movit.mirror"
Unknown asset "movit.opacity"
Unknown asset "movit.rect"
Unknown asset "movit.saturation"
Unknown asset "movit.unsharp_mask"
Unknown asset "movit.vignette"
Unknown asset "movit.white_balance"
Unknown asset "region"
Unknown asset "timewarp"
Unknown asset "avfilter.subtitles"
Unknown asset "opencv.tracker"
Unknown asset "opencv.tracker"
evdev ioctl: Inappropriate ioctl for device
QWidget::setMinimumSize: (effect_list/QDockWidget) Negative sizes (0,-1) are not possible
QWidget::setMinimumSize: (transition_list/QDockWidget) Negative sizes (0,-1) are not possible
QWidget::setMinimumSize: (effect_list/QDockWidget) Negative sizes (0,-1) are not possible
QWidget::setMinimumSize: (transition_list/QDockWidget) Negative sizes (0,-1) are not possible
LOCALE: Document uses  "."  as decimal point and  "C"  as locale
Searching for locale: Found  QLocale(Warlpiri, Latin, Australia)  with match type  1
Model size of -3 is less than 0
=== LOADING SUBCLIP WITH RATING:  0 , TAGS:  ""
=== LOADING SUBCLIP WITH RATING:  0 , TAGS:  ""
=== LOADING SUBCLIP WITH RATING:  0 , TAGS:  ""
=== LOADING SUBCLIP WITH RATING:  0 , TAGS:  ""
=== LOADING SUBCLIP WITH RATING:  0 , TAGS:  ""
=== LOADING SUBCLIP WITH RATING:  0 , TAGS:  ""
=== LOADING SUBCLIP WITH RATING:  0 , TAGS:  ""
################### JOB finished:  0
################### JOB finished:  2
################### JOB finished:  3
################### JOB finished:  4
################### JOB finished:  5
################### JOB finished:  6
################### JOB finished:  7
################### JOB finished:  8
QWidget::setMinimumSize: (transition_list/QDockWidget) Negative sizes (0,-1) are not possible
QWidget::setMinimumSize: (effect_list/QDockWidget) Negative sizes (0,-1) are not possible
QWidget::setMinimumSize: (effect_list/QDockWidget) Negative sizes (0,-1) are not possible
QWidget::setMinimumSize: (transition_list/QDockWidget) Negative sizes (0,-1) are not possible
################### JOB finished:  1
MUTEX LOCK!!!!!!!!!!!! setmodel
MUTEX UNLOCK!!!!!!!!!!!! setmodel
MUTEX LOCK!!!!!!!!!!!! loadEffects COUNT:  0
/tmp/.mount_kdenliBOhzMx/AppRun: line 27: 639422 Segmentation fault      (core dumped) kdenlive --config kdenlive-appimagerc $@
Comment 1 emohr 2020-12-13 16:18:43 UTC
Seems to be a similar to bug 430262 (which should be fixed). A clip without a defined length. 

Please try with tomorrows Kdenlive_Nightly_Appimage
https://binary-factory.kde.org/job/Kdenlive_Nightly_Appimage_Build/lastSuccessfulBuild/artifact/
Comment 2 Eric Mesa 2020-12-15 19:51:40 UTC
Tried yesterday's nightly. Same issue.
Comment 3 emohr 2020-12-15 20:17:32 UTC
Could you upload here a short clip which causes the issue so we can test?
Comment 4 Eric Mesa 2020-12-15 21:38:28 UTC
I couldn't find any short clips where it didn't work. So here is a dropbox link with one of the files confirmed to be giving me trouble: https://www.dropbox.com/s/r3qhexl5r3avsuz/%23ExtraLife%20Eric%20Plays%20Super%20Mario%20Strikers%20Ep%2001%20-%20Relearning%20the%20Game.mkv?dl=0
Comment 5 emohr 2020-12-17 17:20:45 UTC
Created attachment 134150 [details]
HD 1080p 30 fps - Kdenlive.png

Your test video is a 1080p 30fps clip with 4 audio tracks. Either Kdenlive asks you to create the needed audio tracks or you create 2 additional tracks. Then you can insert the clip into the timeline without crash. Use the official PPA or AppImage to make sure you have no packaging issue.
Comment 6 Eric Mesa 2020-12-20 18:10:33 UTC
Yes, the problem is no adding the clip. THe problem is making clips and then trying to add it in. I can make a video if I'm badly describing what's going on here.
Comment 7 emohr 2020-12-20 18:46:52 UTC
Yes a video would help, showing your Kdenlive version as well.
Comment 8 Eric Mesa 2020-12-20 19:05:40 UTC
Created attachment 134237 [details]
kdenlive file causing issues

this is the file I open in the video I will link to in the next comment
Comment 9 Eric Mesa 2020-12-20 19:07:39 UTC
Here is the youtube link to the crash and how it happens:

https://youtu.be/9vujOeLkVwM

Attached is the file I open. I attach the file because it looks like if I do it from scratch, it appears to work in the nightly. But still crashes when opening old file, even if doing a save-as to try and get it into the new format.
Comment 10 Jean-Baptiste Mardelle 2020-12-21 08:47:28 UTC
I was able to reproduce the crash using your project and video clip, thanks. Will work on it and give you some feedback soon.
Comment 11 Jean-Baptiste Mardelle 2020-12-21 09:21:07 UTC
Git commit e05c154a3e061156ae331f592c1dce3199daaeb1 by Jean-Baptiste Mardelle.
Committed on 21/12/2020 at 09:20.
Pushed by mardelle into branch 'master'.

Fix crash when all audio streams of a clip were disabled.

M  +2    -2    src/monitor/monitor.cpp

https://invent.kde.org/multimedia/kdenlive/commit/e05c154a3e061156ae331f592c1dce3199daaeb1
Comment 12 Jean-Baptiste Mardelle 2021-01-03 18:27:20 UTC
Git commit 23f256c77db23a3d63db3ea792b54ea4353f0a37 by Jean-Baptiste Mardelle.
Committed on 03/01/2021 at 18:16.
Pushed by mardelle into branch 'release/20.12'.

Fix crash when all audio streams of a clip were disabled.

M  +2    -2    src/monitor/monitor.cpp

https://invent.kde.org/multimedia/kdenlive/commit/23f256c77db23a3d63db3ea792b54ea4353f0a37