Created attachment 103377 [details] Backtrace log After building the most recent git master of Kdenlive, I found that starting the program results in it crashing shortly after the main window appears. I've included the backtrace log in this bug. Crash bug discovered while using Kdenlive 17.03.70 git master on Antergos (Arch) Linux x64, GNOME 3.22.2 desktop environment, Xorg 1.19.1, kernel 4.8.13-1 ARCH.
I have the same with lates Gentoo package, 16.12.1 which comes from git: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2066cf7b5a1da5ded50affbdc96467b431140f3e Crash on program start.
this is happening in 16.12.1 under arch.
Created attachment 103400 [details] Backtrace with debug symbols Relevant stacktrace: Thread 9 (Thread 0x7f6fe0887700 (LWP 3483)): [KCrash Handler] #6 0x00007f702185004f in raise () at /usr/lib/libc.so.6 #7 0x00007f702185147a in abort () at /usr/lib/libc.so.6 #8 0x00007f70224f14f1 in qt_message_fatal (context=..., message=<synthetic pointer>...) at global/qlogging.cpp:1682 #9 0x00007f70224f14f1 in QMessageLogger::fatal(char const*, ...) const (this=this@entry=0x7f6fe0886190, msg=msg@entry=0x7f702278f2b0 "ASSERT: \"%s\" in file %s, line %d") at global/qlogging.cpp:793 #10 0x00007f70224ec9be in qt_assert(char const*, char const*, int) (assertion=<optimized out>, file=<optimized out>, line=<optimized out>) at global/qglobal.cpp:3081 #11 0x0000000000846eef in QOpenGLFunctions::glGetError() (this=0x7f6fc4003580) at /usr/include/qt/QtGui/qopenglfunctions.h:828 #12 0x000000000083f911 in uploadTextures(QOpenGLContext*, SharedFrame const&, unsigned int*) (context=0x7f6fd012fb70, frame=..., texture=0x7f6fd2249318) at /home/elvis/dev/kde/src/kdenlive/src/monitor/glwidget.cpp:342 #13 0x00000000008456ff in FrameRenderer::showFrame(Mlt::Frame) (this=0x7f6fd22492e0, frame=<incomplete type>) at /home/elvis/dev/kde/src/kdenlive/src/monitor/glwidget.cpp:1323 #14 0x00000000009ed138 in FrameRenderer::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x7f6fd22492e0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7f6fcc013950) at src/kdenlive_automoc.dir/moc_glwidget_X5PTVTJFKEOFU6.cpp:777 #15 0x00007f7022711f29 in QObject::event(QEvent*) (this=0x7f6fd22492e0, e=<optimized out>) at kernel/qobject.cpp:1263 #16 0x00007f7025dd035c in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x7f6fd22492e0, e=0x7f6fcc0139b0) at kernel/qapplication.cpp:3799 #17 0x00007f7025dd7ad1 in QApplication::notify(QObject*, QEvent*) (this=0x7ffc523db570, receiver=0x7f6fd22492e0, e=0x7f6fcc0139b0) at kernel/qapplication.cpp:3556 #18 0x00007f70226e58e0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x7f6fd22492e0, event=event@entry=0x7f6fcc0139b0) at kernel/qcoreapplication.cpp:988 #19 0x00007f70226e806d in QCoreApplication::sendEvent(QObject*, QEvent*) (event=0x7f6fcc0139b0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231 #20 0x00007f70226e806d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x7f6fd2249350) at kernel/qcoreapplication.cpp:1649 #21 0x00007f70226e84d8 in QCoreApplication::sendPostedEvents(QObject*, int) (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1503 #22 0x00007f7022739eb3 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x7f6fc40012d0) at kernel/qeventdispatcher_glib.cpp:276 #23 0x00007f701c82b587 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0 #24 0x00007f701c82b7f0 in () at /usr/lib/libglib-2.0.so.0 #25 0x00007f701c82b89c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0 #26 0x00007f702273a2bf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f6fc40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423 #27 0x00007f70226e3d3a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f6fe0886d80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212 #28 0x00007f7022506063 in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:507 #29 0x00007f702250acf8 in QThreadPrivate::start(void*) (arg=0x7f6fd22492e0) at thread/qthread_unix.cpp:368 #30 0x00007f702008f454 in start_thread () at /usr/lib/libpthread.so.0 #31 0x00007f70219057df in clone () at /usr/lib/libc.so.6
I can confirm that downgrading to v16.12.0 fixes the crash.
reported this in archlinux: https://bugs.archlinux.org/task/52536
Which graphic card and drivers do you use? (Both people that can reproduce it and people that don't see the problem).
@Luigi, I have two Nividia GTX 980Ti's in my machine, using Nvidia 375.26 proprietary drivery, Xorg version 1.19.1.
GeForce GT 630M Nvidia Driver 375.26 xorg-server 1.18.4
I tried to compile the current master and it starts (Debian testing, xorg 1.19, mesa 13.0.2, but with a radeon card (HD 6670)). There was another report on IRC about this bug with again an nvidia card. If Elvis confirms that he uses an nvidia card too, I would say that we have a winner (that said, it would be interesting to know what triggered the crash).
Or maybe this 375.26 driver? As me and Jesse both using the same.
(In reply to Vylaern from comment #10) > Or maybe this 375.26 driver? As me and Jesse both using the same. I am using 340.101 and xorg 1.19.1 on this machine and it crashes... gonna check on another without nvidia and give feedback.
Over at the arch bug it seems to be an nvidia related issue: https://bugs.archlinux.org/task/52536
For the record, yes it crashes on my Nvidia system with proprietary drivers. My Intel laptop is not affected.
I also suspected an NVidia issue. The cause of the crash is probably this commit: https://cgit.kde.org/kdenlive.git/commit/src/monitor/glwidget.cpp?id=6675c4a509046aa3b57c60cbc3f31435e09c2df7 I just ordered a cheap NVidia card so that I can properly fix this and look into the infamous movit/Nvidia issues.
(In reply to Jean-Baptiste Mardelle from comment #14) > I also suspected an NVidia issue. > > The cause of the crash is probably this commit: > https://cgit.kde.org/kdenlive.git/commit/src/monitor/glwidget. > cpp?id=6675c4a509046aa3b57c60cbc3f31435e09c2df7 > Reverting this commit fixes the crash :)
I tried building/installing on a laptop with open-source graphics and Wayland display server, and program started up fine, so yeah I can confirm on my end it only seems to be my machines with proprietary Nvidia cards/drivers/etc. JB, thanks so much for investing in a card and looking into this. With much of the performance of many editors relying on the GPU to cut production time, having greater GPU support through movit and Nvidia will be a tremendous help to us end users. Really appreciate it. :)
Jesse this seems to have been fixed in archlinux, can you check?
@Farid, confirmed! Re-building & re-installing the latest git master shows Kdenlive starts without issue on machines running Nvidia cards and drivers. JB, thanks so much for the fix! Marking this bug as resolved.