Bug 457497

Summary: kdenlive crash when move and paste disabled clip
Product: [Applications] kdenlive Reporter: qla0
Component: Rendering & ExportAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: crash CC: erjiang, fritzibaby
Priority: NOR    
Version First Reported In: 22.04.3   
Target Milestone: ---   
Platform: PCLinuxOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: installed program on Ubuntu Studio

Description qla0 2022-08-04 21:27:59 UTC
Created attachment 151121 [details]
installed program on Ubuntu Studio

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.  open kdenlive
2. load picture (clip) ProjectBin
3.  drag picture to timeline
4.  Disable clip
5.  change from Normal mode to Overwrite mode
6. move clip

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:
(available in About System)
KDE Plasma Version:  PClos - 5.24.4
KDE Frameworks Version: 
Qt Version: 5.15.2

ADDITIONAL INFORMATION

the same effect on:
- PclinuxOs   -    fully upgraded
- Ubuntu Studio  22.04.1 LTS -    fully upgraded

This bug in in kdenlive-22.04.3-x86_x64.AppImage too.
Comment 1 erjiang 2022-08-14 23:43:26 UTC
Confirmed on latest master (74ef83e0): failed assertion Q_ASSERT(isTrack(trackId)) in TimelineModel::getClipByPosition (trackId==-1)

Backtrace:

#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737230649792) at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=140737230649792) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=140737230649792, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3  0x00007ffff4b29476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4  0x00007ffff4b0f7f3 in __GI_abort () at ./stdlib/abort.c:79
#5  0x00007ffff50b4ba3 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffff50b3ff0 in qt_assert_x(char const*, char const*, char const*, int) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x0000555555bffd48 in TimelineModel::getClipByPosition(int, int, int) const (this=0x555558af89d0, trackId=-1, position=212, playlist=-1) at /home/eric/kdenlive-space/kdenlive/src/timeline2/model/timelinemodel.cpp:368
#8  0x0000555555eecd09 in TimelineFunctions::liftZone(std::shared_ptr<TimelineItemModel> const&, int, QPoint, std::function<bool ()>&, std::function<bool ()>&) (timeline=std::shared_ptr<TimelineItemModel> (use count 3, weak count 8) = {...}, trackId=-1, zone=..., undo=..., redo=...) at /home/eric/kdenlive-space/kdenlive/src/timeline2/model/timelinefunctions.cpp:683
#9  0x0000555555d318cc in TimelineController::endFakeMove(int, int, bool, bool, bool) (this=0x555558d8aaa0, clipId=6, position=212, updateView=true, logUndo=true, invalidateTimeline=true) at /home/eric/kdenlive-space/kdenlive/src/timeline2/view/timelinecontroller.cpp:4031
#10 0x0000555555677e0d in TimelineController::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x555558d8aaa0, _c=QMetaObject::InvokeMetaMethod, _id=221, _a=0x7fffffffa660) at /home/eric/kdenlive-space/kdenlive/build/src/kdenliveLib_autogen/CFUJZ622G4/moc_timelinecontroller.cpp:1441
#11 0x000055555567b08a in TimelineController::qt_metacall(QMetaObject::Call, int, void**) (this=0x555558d8aaa0, _c=QMetaObject::InvokeMetaMethod, _id=221, _a=0x7fffffffa660) at /home/eric/kdenlive-space/kdenlive/build/src/kdenliveLib_autogen/CFUJZ622G4/moc_timelinecontroller.cpp:2030
Comment 2 Jean-Baptiste Mardelle 2024-06-10 15:38:21 UTC
Cannot reproduce anymore in current versions (24.05.0)