hi:
I’m using the Portable Tarfile version of the latest Shotcut (20.04.12) on the most recent Linux Mint.
Recently (within the last day or two), the Shotcut application has become unusable - crashing on trying to open any previously saved project. Whilst Shotcut hasn’t been updated, obviously a live system gets many updates to components that Shotcut depends on - although the only big updates recently have been new kernels (the current kernel is 5.3.0.53.109 in Mint).
Running Shotcut in a terminal to get all the output, I see some interesting things:
Grabbing a core dump of Shotcut when it crashes gives the following stacktrace, which looks to me like it’s trying to use a function pointer which isn’t initialised?:
Thread 1 “shotcut” received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt #0 0x0000000000000000 in () #1 0x00007f158adb2d39 in QSGBatchRenderer::Renderer::renderBatches() ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Quick.so.5 #2 0x00007f158adb8804 in QSGBatchRenderer::Renderer::render() ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Quick.so.5 #3 0x00007f158ada9032 in QSGRenderer::renderScene(QSGBindable const&) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Quick.so.5 #4 0x00007f158ada950b in QSGRenderer::renderScene(unsigned int) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Quick.so.5 #5 0x00007f158ade4aae in QSGDefaultRenderContext::renderNextFrame(QSGRenderer*, unsigned int) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Quick.so.5 #6 0x00007f158ae3fae4 in QQuickWindowPrivate::renderSceneGraph(QSize const&) () at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Quick.so.5 #7 0x00007f158aefb728 in QQuickRenderControl::render() ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Quick.so.5 #8 0x00007f158bcce2b0 in ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5QuickWidgets.so.5 #9 0x00007f158bcd2189 in QQuickWidget::event(QEvent*) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5QuickWidgets.so.5 #10 0x00007f158b1f764c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #11 0x00007f158b1ff057 in QApplication::notify(QObject*, QEvent*) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #12 0x00007f1589dd6328 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Core.so.5 #13 0x00007f158b25049b in ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #14 0x00007f158b2504d4 in ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #15 0x00007f158b25053b in ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #16 0x00007f1589e027e9 in QMetaObject::activate(QObject*, int, int, void**) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Core.so.5 #17 0x00007f158a804b5f in QWindow::screenChanged(QScreen*) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Gui.so.5 #18 0x00007f158a805303 in QWindowPrivate::emitScreenChangedRecursion(QScreen*) () at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Gui.so.5 #19 0x00007f158a80c97e in QWindowPrivate::setTopLevelScreen(QScreen*, bool) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Gui.so.5 #20 0x00007f158b22b070 in QWidgetPrivate::create_sys(unsigned long long, bool, bool) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #21 0x00007f158b22b3db in QWidget::create(unsigned long long, bool, bool) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #22 0x00007f158b236099 in QWidget::setVisible(bool) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #23 0x00000000004766af in () #24 0x00000000005e73de in () #25 0x00007f1589e027e9 in QMetaObject::activate(QObject*, int, int, void**) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Core.so.5 #26 0x0000000000460a48 in () #27 0x000000000047ae82 in () #28 0x00000000005e2b03 in () #29 0x00000000005ff6b9 in () #30 0x00000000005ff925 in () #31 0x00007f1589e02954 in QMetaObject::activate(QObject*, int, int, void**) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Core.so.5 #32 0x00007f158b440225 in QAbstractItemView::clicked(QModelIndex const&) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #33 0x00007f158b443603 in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #34 0x00007f158b48576e in QListView::mouseReleaseEvent(QMouseEvent*) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #35 0x00007f158b236678 in QWidget::event(QEvent*) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #36 0x00007f158b2de3ee in QFrame::event(QEvent*) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #37 0x00007f158b44cf03 in QAbstractItemView::viewportEvent(QEvent*) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #38 0x00007f1589dd6092 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Core.so.5 #39 0x00007f158b1f7625 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #40 0x00007f158b1ffc7b in QApplication::notify(QObject*, QEvent*) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #41 0x00007f1589dd6328 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Core.so.5 #42 0x00007f158b1fe61f in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #43 0x00007f158b2509e6 in ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #44 0x00007f158b253443 in ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #45 0x00007f158b1f764c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #46 0x00007f158b1ff057 in QApplication::notify(QObject*, QEvent*) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Widgets.so.5 #47 0x00007f1589dd6328 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Core.so.5 #48 0x00007f158a800820 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Gui.so.5 #49 0x00007f158a802755 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Gui.so.5 #50 0x00007f158a7dba2b in QWindowSystemInterface::sendWindowSystemEvents(QFlagsQEventLoop::ProcessEventsFlag) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Gui.so.5 #51 0x00007f157e3748f0 in ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5XcbQpa.so.5 #52 0x00007f1585236417 in g_main_context_dispatch ()
at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #53 0x00007f1585236650 in () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #54 0x00007f15852366dc in g_main_context_iteration ()
at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #55 0x00007f1589e2bc1f in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Core.so.5 #56 0x00007f1589dd435a in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Core.so.5 #57 0x00007f1589ddd2f4 in QCoreApplication::exec() ()
at /home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/lib/libQt5Core.so.5 #58 0x0000000000459e9c in main ()
I do have multiple displays - but this has never broken Shotcut before.
[On that topic, though - Shotcut does deal very badly with powersaving on multiple displays, and it often hangs on trying to close it if the system it is running on has ever gone into powersaving since it was started.]
Moving the configuration file does fix the segfault, thanks , although the log now spams lots of
“[Warning] <> file:///home/aoanla/Desktop/newShotcut/Shotcut/Shotcut.app/share/shotcut/qml/views/timeline/Track.qml:72:25: Unable to assign [undefined] to QString” whilst it loads the file, which I am not sure is a problem or not.
hm, trying to close Shotcut after opening the file, it’s just decided to hang and not close. The log shows
[Debug ] MainWindow::closeEvent begin
but the GUI has frozen (for at least a minute now, with no cpu load in top) . Is it safe to forcibly terminate, or should I wait and hope it does the right thing?
(Attaching GDB to the running process, it looks like it’s stuck in some futex dead or livelock in QThread)