Bug 362918

Summary: Timeline - Track mismatch when moving selected clips
Product: [Applications] kdenlive Reporter: Daniel Klein <daniel.klein.go>
Component: User Interface & MiscellaneousAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: major    
Priority: NOR    
Version First Reported In: 16.04.0   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Daniel Klein 2016-05-11 02:02:53 UTC
Reproduce:

1. New proj - 3video+2audio, add clip to bin and then to timeline (on the first track).

2. Delete 2 last tracks [audio].

3. Cut clip on 1st track [5-6 cuts].

4. Mouse-drag one of the cuts from 1st track to 2nd. Works fine.

5. Select several cuts and drag to 2nd track - timeline shows them on 2nd track but actualy places them on 3rd track -

A. Show/hide 2nd/3rd track [i.e. clips appear on 2nd track - hide that track but playback still show them; hide 3rd track - playback is black], or -

B. Save-quit-reopen: the clips that appeared on the 2nd track are now on 3rd.

gdb shows no extra messages (other than threads..).

kdenlive:amd64/xenial 4:16.07.70+git201605102010~ubuntu16.04.1, libmlt6:amd64/xenial 6.0.0+git201605060629~ubuntu16.04.1
Comment 1 Daniel Klein 2016-05-11 16:43:03 UTC
Ok, this happens every time - i.e. you can skip stage (2) in my instructions.
Comment 2 Daniel Klein 2016-05-11 17:04:56 UTC
If I reopen the project, I see the clips on 3rd track.
When I move them to 2nd track, they appear to be moved there, but actualy placed on 1st....
Comment 3 Jean-Baptiste Mardelle 2016-05-11 20:20:24 UTC
Git commit 2a949048bab2c0e92e6ef67d031a706a94db9cc4 by Jean-Baptiste Mardelle.
Committed on 11/05/2016 at 20:20.
Pushed by mardelle into branch 'master'.

Fix timeline corruption on group move

M  +5    -4    src/timeline/customtrackview.cpp

http://commits.kde.org/kdenlive/2a949048bab2c0e92e6ef67d031a706a94db9cc4
Comment 4 Jean-Baptiste Mardelle 2016-05-11 21:36:55 UTC
Git commit 92fe184238ca8f9aac364984c065353144b76095 by Jean-Baptiste Mardelle.
Committed on 11/05/2016 at 21:36.
Pushed by mardelle into branch 'master'.

Fix undo group move

M  +16   -5    src/timeline/customtrackview.cpp

http://commits.kde.org/kdenlive/92fe184238ca8f9aac364984c065353144b76095
Comment 5 Jean-Baptiste Mardelle 2016-05-11 21:38:52 UTC
Thanks for your report. Should hopefully be fixed now in git. Please test again when the updated package is available on our PPA (should be in a few hours).
Comment 6 Daniel Klein 2016-05-13 22:37:58 UTC
The fix has also resolved some other issues, with dragging several selected clips (had some "track mismatch" crushes sometimes). Nice. Much appreciated.