Bug 364316

Summary: git master: frequent crashes when using the scissors tool
Product: [Applications] kdenlive Reporter: Wegwerf <wegwerf-1-2-3>
Component: User Interface & MiscellaneousAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Wegwerf 2016-06-14 13:58:15 UTC
With the recent timeline code refactoring the scissors tool may have become unstable. During editing, the scissors tool usually crashes Kdenlive after several cuts (around 5 cuts or so). The top of the stack trace looks like this:

 Thread 1 "kdenlive" received signal SIGSEGV, Segmentation fault.
0x00007ffff395b4c5 in QGraphicsItemPrivate::invalidateParentGraphicsEffectsRecursively() () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
(gdb) bt full
#0  0x00007ffff395b4c5 in QGraphicsItemPrivate::invalidateParentGraphicsEffectsRecursively() () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
No symbol table info available.
#1  0x00007ffff3966e35 in QGraphicsItem::update(QRectF const&) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
No symbol table info available.
#2  0x000000000055b401 in AbstractClipItem::setMainSelectedClip(bool) ()
No symbol table info available.
#3  0x00000000006327e9 in RazorManager::mousePress(ItemInfo, QFlags<Qt::KeyboardModifier>, QList<QGraphicsItem*>) ()
No symbol table info available.
#4  0x0000000000599c75 in CustomTrackView::mousePressEvent(QMouseEvent*) ()
No symbol table info available.


Reproducible: Always

Steps to Reproduce:
1. Add a clip to the timeline.
2. Select scissors tool.
3. Make several cuts to the clip in the timeline, you may take you time.

Actual Results:  
Eventually, Kdenlive crashes after making 5 cuts or so.

Expected Results:  
Cutting the clip without crashing Kdenlive.
Comment 1 Jean-Baptiste Mardelle 2016-06-14 20:13:46 UTC
Git commit ea20e5ef74a872e238ed6e95a3c5d33bb6e7c79a by Jean-Baptiste Mardelle.
Committed on 14/06/2016 at 20:13.
Pushed by mardelle into branch 'master'.

Fix crash on razor clip

M  +2    -2    src/timeline/managers/razormanager.cpp

http://commits.kde.org/kdenlive/ea20e5ef74a872e238ed6e95a3c5d33bb6e7c79a
Comment 2 Wegwerf 2016-06-14 20:20:36 UTC
Looks fine now, couldn't crash Kdenlive using the Scissors/Razor tool anymore while cutting clips into tiny pieces. Thank you very much for fixing!