You are not logged in.

#1 2019-05-14 18:57:21

uberscientist
Member
Registered: 2012-01-27
Posts: 84

KDEnlive freezes after adding clip to timeline

After I import a clip and drag it into the timeline, it adds and the cursor freezes with the "grab" icon and kdenlive becomes non-responsive.

Version: 19.04.1
MLT version 6.16.0

Last thing printed to the terminal before freezing:

################### JOB finished 1
qml: dropped data:  2
requestClipInsertion  "2"     4   888
requestClipCreation  "2"
 // /REQUEST TL CLP REGSTR:  5 
--------
CLIPS COUNT:  0
REGISTRATION  5 ptr count 3
// GOT CLIP STACK DATA CHANGE:  QVector(297)
qml: keyframe model changed............
qml: loaded clip:  888 , ID:  5 , index:  0 , TYPE: Video
[New Thread 0x7fff8cff9700 (LWP 18524)]
 ** * DEREGISTERING TIMELINE CLIP:  5
requestClipInsertion  "2"     4   795
requestClipCreation  "2"
 // /REQUEST TL CLP REGSTR:  6 
--------
CLIPS COUNT:  0
REGISTRATION  6 ptr count 3
// GOT CLIP STACK DATA CHANGE:  QVector(297)
refresh  0 1 0 619
// EFFECT  0  :  deinterlace
// EFFECT  1  :  fieldorder
// EFFECT  2  :  crop
// EFFECT  3  :  swscale
// EFFECT  4  :  resize
// EFFECT  5  :  swresample
// EFFECT  6  :  resample
// EFFECT  7  :  data_feed
// EFFECT  8  :  avcolor_space
// EFFECT  9  :  audioconvert
qml: keyframe model changed............
qml: loaded clip:  795 , ID:  6 , index:  0 , TYPE: Video

GDB backtrace after ctrl-c:

^C
Thread 1 "kdenlive" received signal SIGINT, Interrupt.
0x00007ffff3f78f37 in __pthread_timedjoin_ex () from /usr/lib/libpthread.so.0
(gdb) info registers
rax            0xfffffffffffffe00  -512
rbx            0x7fff9a0fa700      140735778105088
rcx            0x7ffff3f78f37      140737286475575
rdx            0x4852              18514
rsi            0x0                 0
rdi            0x7fff9a0fa9d0      140735778105808
rbp            0x4852              0x4852
rsp            0x7fffffffc8a0      0x7fffffffc8a0
r8             0x0                 0
r9             0x73                115
r10            0x0                 0
r11            0x246               582
r12            0x0                 0
r13            0x7fffffffc8b0      140737488341168
r14            0x7fff9a0fa9d0      140735778105808
r15            0xca                202
rip            0x7ffff3f78f37      0x7ffff3f78f37 <__pthread_timedjoin_ex+327>
eflags         0x246               [ PF ZF IF ]
cs             0x33                51
ss             0x2b                43
ds             0x0                 0
es             0x0                 0
fs             0x0                 0
--Type <RET> for more, q to quit, c to continue without paging--
gs             0x0                 0
(gdb) bt
#0  0x00007ffff3f78f37 in __pthread_timedjoin_ex () at /usr/lib/libpthread.so.0
#1  0x00007fffd6520488 in  () at /usr/lib/mlt/libmltsdl.so
#2  0x00007ffff726e68c in mlt_consumer_stop () at /usr/lib/libmlt.so.6
#3  0x00005555558cc86a in  ()
#4  0x00005555558e1996 in  ()
#5  0x00007ffff550a31b in QMetaObject::activate(QObject*, int, int, void**) ()
    at /usr/lib/libQt5Core.so.5
#6  0x0000555555a0cf22 in  ()
#7  0x00007ffff6a085df in QWidget::event(QEvent*) ()
    at /usr/lib/libQt5Widgets.so.5
#8  0x00007ffff73b529e in QQuickWidget::event(QEvent*) ()
    at /usr/lib/libQt5QuickWidgets.so.5
#9  0x00007ffff69c6da4 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () at /usr/lib/libQt5Widgets.so.5
#10 0x00007ffff69ce609 in QApplication::notify(QObject*, QEvent*) ()
    at /usr/lib/libQt5Widgets.so.5
#11 0x00007ffff54df849 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
    () at /usr/lib/libQt5Core.so.5
#12 0x00007ffff69cd937 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) ()
    at /usr/lib/libQt5Widgets.so.5
#13 0x00007ffff6a22c13 in  () at /usr/lib/libQt5Widgets.so.5
#14 0x00007ffff6a25cd7 in  () at /usr/lib/libQt5Widgets.so.5
--Type <RET> for more, q to quit, c to continue without paging--
#15 0x00007ffff69c6da4 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () at /usr/lib/libQt5Widgets.so.5
#16 0x00007ffff69ce3c1 in QApplication::notify(QObject*, QEvent*) ()
    at /usr/lib/libQt5Widgets.so.5
#17 0x00007ffff54df849 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
    () at /usr/lib/libQt5Core.so.5
#18 0x00007ffff58b652d in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/libQt5Gui.so.5
#19 0x00007ffff58b7956 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/libQt5Gui.so.5
#20 0x00007ffff5890d9c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5
#21 0x00007fffeb400b8c in  () at /usr/lib/libQt5XcbQpa.so.5
#22 0x00007ffff036390f in g_main_context_dispatch ()
    at /usr/lib/libglib-2.0.so.0
#23 0x00007ffff0365869 in  () at /usr/lib/libglib-2.0.so.0
#24 0x00007ffff03658ae in g_main_context_iteration ()
    at /usr/lib/libglib-2.0.so.0
#25 0x00007ffff5534969 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#26 0x00007ffff54de4dc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#27 0x00007ffff54e6596 in QCoreApplication::exec() ()
--Type <RET> for more, q to quit, c to continue without paging--q
 at /usr/lib/libQt5Core.so.Quit
(gdb) frame
#0  0x00007ffff3f78f37 in __pthread_timedjoin_ex ()
   from /usr/lib/libpthread.so.0
(gdb) 

I'm not sure what to do next honestly... thanks for any pointers, I miss kdenlive!

Offline

#2 2019-12-06 13:47:09

tmrd
Member
Registered: 2019-12-06
Posts: 3

Re: KDEnlive freezes after adding clip to timeline

I'm also experiencing the same issue. Did you ever manage to resolve this? My terminal output just before crashing is:

/////////// requestAddBinClip "-1"
/////////// found id "2"
/////////// constructed 
/////////// added  true
/////////// creatclipsfromlist return true
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f097410fc00] Value 1.000000 for parameter 'seekable' out of range [-1 - 0]
################### JOB finished 0
################### loadjob COMMIT
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x559b1d507480] Value 1.000000 for parameter 'seekable' out of range [-1 - 0]
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x559b1f320840] Value 1.000000 for parameter 'seekable' out of range [-1 - 0]
################### ProjectClip::setproducer
################### ClipController::updateProducer
################### ClipController::addmasterproducer
QPoint(0,491)

Offline

#3 2019-12-29 23:41:05

renyuneyun
Member
Registered: 2017-01-21
Posts: 9

Re: KDEnlive freezes after adding clip to timeline

I got a similar output as @tmdr, but my experience is a little different.

My kdenlive works without any problems before my upgrade on 2019-12-23 -- but my previous full-system upgrade was on 2019-11-24.

After upgrading, kdenlive would freeze when clicking on another clip after clicking any clip. The console log says:

QPoint(0,149)
MUTEX LOCK!!!!!!!!!!!! setmodel
MUTEX UNLOCK!!!!!!!!!!!! setmodel
MUTEX LOCK!!!!!!!!!!!! loadEffects: 
QPoint(0,149)

By the way, I also got

[ogg @ 0x5631ac171440] Value 1.000000 for parameter 'seekable' out of range [-1 - 0]

with my ogg file. But I believe this is not the actual problem (though it's in red).

Where the first four lines

QPoint(0,149)
MUTEX LOCK!!!!!!!!!!!! setmodel
MUTEX UNLOCK!!!!!!!!!!!! setmodel
MUTEX LOCK!!!!!!!!!!!! loadEffects: 

are logged after the first click, and I can still do something on the UI. A second interaction only ends with a frozen UI and console log

QPoint(0,149)

I tried downgrading some packages (qt5-*, kio, knewstuff, mlt, frei0r-plugins), but got no luck. Probably it's with some further dependencies...


Another potentially related problem: when opening my previous project, kdenlive tells me that there are some errors in that project. Downgrading doesn't remove the error.

Last edited by renyuneyun (2019-12-29 23:50:18)

Offline

#4 2019-12-30 00:06:26

renyuneyun
Member
Registered: 2017-01-21
Posts: 9

Re: KDEnlive freezes after adding clip to timeline

Doing more search doesn't provide more information to me, and there doesn't seem to be an existing bug report. Therefore, I opened one on https://bugs.kde.org/show_bug.cgi?id=415697

Offline

#5 2019-12-31 12:37:54

tmrd
Member
Registered: 2019-12-06
Posts: 3

Re: KDEnlive freezes after adding clip to timeline

I resolved this issue on my machine by deleting:

~/.config/kdenliverc

which is an autogenerated file. I found another user reporting a similar but varied solution: they deleted

~/.config/kdenlive-appimagerc

which resolved their issue.

Last edited by tmrd (2019-12-31 12:40:05)

Offline

#6 2019-12-31 14:31:01

renyuneyun
Member
Registered: 2017-01-21
Posts: 9

Re: KDEnlive freezes after adding clip to timeline

@tmrd I can't believe it's true... but it is!? My problem also went away...

How could that be possible...?


By the way,

~/.config/kdenlive-appimagerc

should be the config created by the AppImage version of kdenlive. So this seems to be a problem related to configuration format change?

Offline

#7 2019-12-31 15:03:34

tmrd
Member
Registered: 2019-12-06
Posts: 3

Re: KDEnlive freezes after adding clip to timeline

I think you're right; the freeze/hang behaviour is almost certainly due to an improper parse of the config file.

In addition to improved error handling, config file versioning could mitigate this happening again in future.

Offline

Board footer

Powered by FluxBB