You are not logged in.

#1 2023-03-12 10:37:32

nourathar
Member
From: Bxl
Registered: 2013-04-26
Posts: 109

[solved] kdenlive segfaults when starting

I haven't used Kdenlive for something like three months, and on a fully updated Arch it will not start today. I've been using it for years without any problems.
In these forums or upstream I do not seem to see any issues that are related, is there something in the terminal output below that provides a clue to people more knowledgeable than me ?
There are compaints about missing libraries in the beginning, but those refer to packages that are marked as 'optional' on the kdenlive package page.

$ kdenlive
Could not detect package type, probably default? App dir is "/usr/bin"
mlt_repository_init: failed to dlopen /usr/lib/mlt-7/libmltrtaudio.so
  (librtaudio.so.6: cannot open shared object file: No such file or directory)
mlt_repository_init: failed to dlopen /usr/lib/mlt-7/libmltsox.so
  (libsox.so.3: cannot open shared object file: No such file or directory)
mlt_repository_init: failed to dlopen /usr/lib/mlt-7/libmltmovit.so
  (libmovit.so.8: cannot open shared object file: No such file or directory)
profilePath from appDir/../share:  "/usr/share/mlt-7/profiles"
meltPath from KdenliveSetting::rendererPath:  ""
meltPath from profilePath/../../../bin:  "/usr/bin/melt-7"
Empty metadata for  "avcolour_space"
Empty metadata for  "avcolor_space"
Empty metadata for  "avdeinterlace"
Empty metadata for  "swscale"
Empty metadata for  "swresample"
Empty metadata for  "audiochannels"
Empty metadata for  "audioconvert"
Empty metadata for  "imageconvert"
Empty metadata for  "telecide"
Empty metadata for  "deinterlace"
plugin not available: "avfilter.acompressor"
plugin not available: "avfilter.aecho"
plugin not available: "avfilter.agate"
plugin not available: "avfilter.atadenoise"
plugin not available: "avfilter.bwdif"
plugin not available: "avfilter.deblock"
plugin not available: "avfilter.dedot"
plugin not available: "avfilter.deflate"
plugin not available: "avfilter.derain"
plugin not available: "avfilter.doubleweave"
plugin not available: "avfilter.field"
plugin not available: "avfilter.framestep"
plugin not available: "avfilter.fspp"
plugin not available: "avfilter.graphmonitor"
plugin not available: "avfilter.hqdn3d"
plugin not available: "avfilter.inflate"
plugin not available: "avfilter.lagfun"
plugin not available: "avfilter.loudnorm"
plugin not available: "avfilter.mcdeint"
plugin not available: "avfilter.random"
plugin not available: "avfilter.removegrain"
plugin not available: "avfilter.separatefields"
plugin not available: "avfilter.shuffleplanes"
plugin not available: "avfilter.sofalizer"
plugin not available: "avfilter.sr"
plugin not available: "avfilter.tmix"
plugin not available: "avfilter.w3fdif"
plugin not available: "avfilter.weave"
plugin not available: "avfilter.yadif"
plugin not available: "frei0r.baltan"
plugin not available: "frei0r.bgsubtract0r"
plugin not available: "frei0r.bigsh0t_eq_mask"
plugin not available: "frei0r.bigsh0t_eq_to_rect"
plugin not available: "frei0r.bigsh0t_eq_to_stereo"
plugin not available: "frei0r.bigsh0t_hemi_to_eq"
plugin not available: "frei0r.bigsh0t_rect_to_eq"
plugin not available: "frei0r.bigsh0t_stabilize_360"
plugin not available: "frei0r.bigsh0t_transform_360"
plugin not available: "frei0r.delay0r"
plugin not available: "frei0r.delaygrab"
plugin not available: "frei0r.lightgraffiti"
plugin not available: "frei0r.lightgraffiti"
plugin not available: "frei0r.tehRoxx0r"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa.9354877"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "movit.blur"
plugin not available: "movit.sharpen"
plugin not available: "movit.diffusion"
plugin not available: "movit.flip"
plugin not available: "movit.glow"
plugin not available: "movit.lift_gamma_gain"
plugin not available: "movit.mirror"
plugin not available: "movit.opacity"
plugin not available: "movit.rect"
plugin not available: "movit.saturation"
plugin not available: "movit.unsharp_mask"
plugin not available: "movit.vignette"
plugin not available: "movit.white_balance"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "timewarp"
plugin not available: "region"
=== /// CANNOT ACCESS SPEECH DICTIONARIES FOLDER
QQmlEngine::setContextForObject(): Object already has a QQmlContext
QQmlEngine::setContextForObject(): Object already has a QQmlContext
QQmlEngine::setContextForObject(): Object already has a QQmlContext
QQmlEngine::setContextForObject(): Object already has a QQmlContext
Segmentation fault (core dumped)

Any pointers highly appreciated !

Last edited by nourathar (2023-03-13 09:06:32)

Offline

#2 2023-03-12 11:41:13

nourathar
Member
From: Bxl
Registered: 2013-04-26
Posts: 109

Re: [solved] kdenlive segfaults when starting

The segfault seems to be Qt5 related:

$ gdb kdenlive
GNU gdb (GDB) 13.1
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kdenlive...

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) n
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
(No debugging symbols found in kdenlive)
(gdb) run
Starting program: /usr/bin/kdenlive 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffefea26c0 (LWP 4942)]
[New Thread 0x7fffef6a16c0 (LWP 4943)]
[New Thread 0x7fffecde76c0 (LWP 4944)]
[New Thread 0x7fffd85ff6c0 (LWP 4945)]
Could not detect package type, probably default? App dir is "/usr/bin"
mlt_repository_init: failed to dlopen /usr/lib/mlt-7/libmltrtaudio.so
  (librtaudio.so.6: cannot open shared object file: No such file or directory)
mlt_repository_init: failed to dlopen /usr/lib/mlt-7/libmltsox.so
  (libsox.so.3: cannot open shared object file: No such file or directory)
mlt_repository_init: failed to dlopen /usr/lib/mlt-7/libmltmovit.so
  (libmovit.so.8: cannot open shared object file: No such file or directory)
profilePath from appDir/../share:  "/usr/share/mlt-7/profiles"
meltPath from KdenliveSetting::rendererPath:  ""
meltPath from profilePath/../../../bin:  "/usr/bin/melt-7"
[New Thread 0x7fffbd9ff6c0 (LWP 4946)]
Empty metadata for  "avcolour_space"
Empty metadata for  "avcolor_space"
Empty metadata for  "avdeinterlace"
Empty metadata for  "swscale"
Empty metadata for  "swresample"
Empty metadata for  "audiochannels"
Empty metadata for  "audioconvert"
Empty metadata for  "imageconvert"
Empty metadata for  "telecide"
Empty metadata for  "deinterlace"
plugin not available: "avfilter.acompressor"
plugin not available: "avfilter.aecho"
plugin not available: "avfilter.agate"
plugin not available: "avfilter.atadenoise"
plugin not available: "avfilter.bwdif"
plugin not available: "avfilter.deblock"
plugin not available: "avfilter.dedot"
plugin not available: "avfilter.deflate"
plugin not available: "avfilter.derain"
plugin not available: "avfilter.doubleweave"
plugin not available: "avfilter.field"
plugin not available: "avfilter.framestep"
plugin not available: "avfilter.fspp"
plugin not available: "avfilter.graphmonitor"
plugin not available: "avfilter.hqdn3d"
plugin not available: "avfilter.inflate"
plugin not available: "avfilter.lagfun"
plugin not available: "avfilter.loudnorm"
plugin not available: "avfilter.mcdeint"
plugin not available: "avfilter.random"
plugin not available: "avfilter.removegrain"
plugin not available: "avfilter.separatefields"
plugin not available: "avfilter.shuffleplanes"
plugin not available: "avfilter.sofalizer"
plugin not available: "avfilter.sr"
plugin not available: "avfilter.tmix"
plugin not available: "avfilter.w3fdif"
plugin not available: "avfilter.weave"
plugin not available: "avfilter.yadif"
plugin not available: "frei0r.baltan"
plugin not available: "frei0r.bgsubtract0r"
plugin not available: "frei0r.bigsh0t_eq_mask"
plugin not available: "frei0r.bigsh0t_eq_to_rect"
plugin not available: "frei0r.bigsh0t_eq_to_stereo"
plugin not available: "frei0r.bigsh0t_hemi_to_eq"
plugin not available: "frei0r.bigsh0t_rect_to_eq"
plugin not available: "frei0r.bigsh0t_stabilize_360"
plugin not available: "frei0r.bigsh0t_transform_360"
plugin not available: "frei0r.delay0r"
plugin not available: "frei0r.delaygrab"
plugin not available: "frei0r.lightgraffiti"
plugin not available: "frei0r.lightgraffiti"
plugin not available: "frei0r.tehRoxx0r"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa.9354877"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "movit.blur"
plugin not available: "movit.sharpen"
plugin not available: "movit.diffusion"
plugin not available: "movit.flip"
plugin not available: "movit.glow"
plugin not available: "movit.lift_gamma_gain"
plugin not available: "movit.mirror"
plugin not available: "movit.opacity"
plugin not available: "movit.rect"
plugin not available: "movit.saturation"
plugin not available: "movit.unsharp_mask"
plugin not available: "movit.vignette"
plugin not available: "movit.white_balance"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "sox"
plugin not available: "timewarp"
plugin not available: "region"
=== /// CANNOT ACCESS SPEECH DICTIONARIES FOLDER
[New Thread 0x7fffb7fff6c0 (LWP 4947)]
[New Thread 0x7fffb71fe6c0 (LWP 4948)]
QQmlEngine::setContextForObject(): Object already has a QQmlContext
[New Thread 0x7fffb5fbd6c0 (LWP 4949)]
[New Thread 0x7fffb4d7c6c0 (LWP 4950)]
[Detaching after fork from child process 4951]
[New Thread 0x7fffa7fff6c0 (LWP 4953)]
[New Thread 0x7fffa77fe6c0 (LWP 4954)]
[New Thread 0x7fffa6ffd6c0 (LWP 4955)]
[New Thread 0x7fffa67fc6c0 (LWP 4956)]
QQmlEngine::setContextForObject(): Object already has a QQmlContext
[New Thread 0x7fffa56386c0 (LWP 4957)]
[New Thread 0x7fffa4da86c0 (LWP 4958)]
QQmlEngine::setContextForObject(): Object already has a QQmlContext
QQmlEngine::setContextForObject(): Object already has a QQmlContext
[New Thread 0x7fff8b9ff6c0 (LWP 4959)]

Thread 1 "kdenlive" received signal SIGSEGV, Segmentation fault.
0x00007ffff66159b0 in ?? () from /usr/lib/libQt5Widgets.so.5

Offline

#3 2023-03-12 13:00:09

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,098

Re: [solved] kdenlive segfaults when starting

nourathar wrote:

is there something in the terminal output below that provides a clue to people more knowledgeable than me ?

No, please post a backtrace with debug symbols

Offline

#4 2023-03-12 13:19:59

nourathar
Member
From: Bxl
Registered: 2013-04-26
Posts: 109

Re: [solved] kdenlive segfaults when starting

arojas wrote:

No, please post a backtrace with debug symbols

Thanks for getting back !

Is this the right kind of backtrace ?

[New Thread 0x7fffa57716c0 (LWP 7312)]
[New Thread 0x7fffa4ee16c0 (LWP 7313)]
QQmlEngine::setContextForObject(): Object already has a QQmlContext
QQmlEngine::setContextForObject(): Object already has a QQmlContext
[New Thread 0x7fff8bbff6c0 (LWP 7314)]

Thread 1 "kdenlive" received signal SIGSEGV, Segmentation fault.
containerWidget (w=0x0) at styles/qstylesheetstyle.cpp:2467
Downloading source file /usr/src/debug/qt5-base/qtbase/src/widgets/styles/qstylesheetstyle.cpp
2467        if (const QAbstractScrollArea *sa = qobject_cast<const QAbstractScrollArea *>(w->parentWidget())) { 
                  
(gdb) bt
#0  containerWidget(QWidget const*) (w=0x0) at styles/qstylesheetstyle.cpp:2467
#1  0x00007ffff661cd7e in QStyleSheetStyle::drawPrimitive(QStyle::PrimitiveElement, QStyleOption const*, QPainter*, QWidget const*) const (this=0x555555f4d730, pe=QStyle::PE_PanelLineEdit, opt=0x555558eaf7d0, p=0x7fffffffd8c0, w=0x0)
    at styles/qstylesheetstyle.cpp:4452
#2  0x00007fffbe92b2e8 in KQuickStyleItem::paint(QPainter*) (painter=0x7fffffffd8c0, this=0x555558eae380)
    at /usr/src/debug/qqc2-desktop-style/qqc2-desktop-style-5.103.0/plugin/kquickstyleitem.cpp:1698
#3  KQuickStyleItem::updatePolish() (this=0x555558eae380)
    at /usr/src/debug/qqc2-desktop-style/qqc2-desktop-style-5.103.0/plugin/kquickstyleitem.cpp:1959
#4  0x00007ffff704746a in QQuickWindowPrivate::polishItems() (this=0x55555890d0c0)
    at /usr/src/debug/qt5-declarative/qtdeclarative/src/quick/items/qquickwindow.cpp:393
#5  0x00007ffff70d92e4 in QQuickRenderControl::polishItems() (this=<optimized out>)
    at /usr/src/debug/qt5-declarative/qtdeclarative/src/quick/items/qquickrendercontrol.cpp:277
#6  0x00007ffff7356f48 in QQuickWidgetPrivate::render(bool) (this=0x555558863d80, needsSync=<optimized out>)
    at /usr/src/debug/qt5-declarative/qtdeclarative/src/quickwidgets/qquickwidget.cpp:316
#7  0x00007ffff65af4d4 in QWidget::event(QEvent*) (this=0x555558b3dd60, event=0x7fffffffdcd0) at kernel/qwidget.cpp:8835
#8  0x00007ffff6578b5c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    (this=<optimized out>, receiver=0x555558b3dd60, e=0x7fffffffdcd0) at kernel/qapplication.cpp:3640
#9  0x00007ffff528df48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x555558b3dd60, event=0x7fffffffdcd0)
    at kernel/qcoreapplication.cpp:1064
#10 0x00007ffff528dfb3 in QCoreApplication::sendEvent(QObject*, QEvent*) (receiver=<optimized out>, event=<optimized out>)
    at kernel/qcoreapplication.cpp:1462
#11 0x00007ffff65aa203 in QWidgetPrivate::sendPendingMoveAndResizeEvents(bool, bool)
    (this=this@entry=0x555558863d80, recursive=recursive@entry=false, disableUpdates=<optimized out>, disableUpdates@entry=false)
    at kernel/qwidget.cpp:7737
#12 0x00007ffff65ae208 in QWidgetPrivate::show_helper() (this=0x555558863d80) at kernel/qwidget.cpp:7788
#13 0x00007ffff65ae4f3 in QWidgetPrivate::show_recursive() (this=<optimized out>) at kernel/qwidget.cpp:7718
#14 0x00007ffff65ae67a in QWidgetPrivate::showChildren(bool)
    (this=this@entry=0x555558d66160, spontaneous=spontaneous@entry=false)
    at ../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:132
#15 0x00007ffff65ae226 in QWidgetPrivate::show_helper() (this=0x555558d66160) at kernel/qwidget.cpp:7794
#16 0x00007ffff65ae4f3 in QWidgetPrivate::show_recursive() (this=<optimized out>) at kernel/qwidget.cpp:7718
#17 0x00007ffff65ae67a in QWidgetPrivate::showChildren(bool)
    (this=this@entry=0x555555de3330, spontaneous=spontaneous@entry=false)
    at ../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:132
#18 0x00007ffff65ae226 in QWidgetPrivate::show_helper() (this=this@entry=0x555555de3330) at kernel/qwidget.cpp:7794
#19 0x00007ffff65ae85d in QWidgetPrivate::setVisible(bool) (this=0x555555de3330, visible=<optimized out>)
    at kernel/qwidget.cpp:8137
#20 0x0000555555a676e6 in Core::initGUI(bool, QString const&, QUrl const&, QString const&)
    (this=0x555555ed4090, inSandbox=<optimized out>, MltPath=..., Url=..., clipsToLoad=...)
    at /usr/src/debug/kdenlive/kdenlive-22.12.3/src/core.cpp:228
#21 0x0000555555618b56 in main(int, char**) (argc=<optimized out>, argv=0x7fffffffe498)
    at /usr/src/debug/kdenlive/kdenlive-22.12.3/src/main.cpp:345

Offline

#5 2023-03-12 16:35:16

nourathar
Member
From: Bxl
Registered: 2013-04-26
Posts: 109

Re: [solved] kdenlive segfaults when starting

Am I the only one with this issue ?

Offline

#6 2023-03-12 16:55:22

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,098

Re: [solved] kdenlive segfaults when starting

The backtrace points to some issue with your application style. Try switching to a different one.

Offline

#7 2023-03-12 18:00:03

nourathar
Member
From: Bxl
Registered: 2013-04-26
Posts: 109

Re: [solved] kdenlive segfaults when starting

aha, thanks for that !

I am running the i3-wm, so I am using qt5ct or kcmshell to change kde-related settings, but Dolphin works fine and shows the style changes as expected.
So I tried all themes I have, scollbar-related settings and such, but with zero effect on the segfault. I am only running the standard ones: Breeze, Fusion, nothing exotic.
Hmmm...

Last edited by nourathar (2023-03-12 18:14:58)

Offline

#8 2023-03-13 07:45:49

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,098

Re: [solved] kdenlive segfaults when starting

Must be a qt5ct issue then. Disable stylesheets in qt5ct as a workaround.

Offline

#9 2023-03-13 09:05:59

nourathar
Member
From: Bxl
Registered: 2013-04-26
Posts: 109

Re: [solved] kdenlive segfaults when starting

duh, thanks so much for that suggestion: super straightforward but I didn't think of that.
When I disable the one stylesheet I had, kdenlive starts normally.

First I will render that clip for the premiere on Thursday (you saved the day, thank you !), then I will try to localize the problem a bit more and see if there is an issue that should be raised elsewhere.
In the meantime I'm marking this as solved.
Thanks !

Last edited by nourathar (2023-03-13 09:17:20)

Offline

#10 2023-03-13 16:06:33

nourathar
Member
From: Bxl
Registered: 2013-04-26
Posts: 109

Re: [solved] kdenlive segfaults when starting

Re-enabling that stylesheet doesn't cause any problems so I can't actually reproduce this crash anymore.
Perhaps some subtle re-initialization issue of some kind.

Last edited by nourathar (2023-03-13 16:06:52)

Offline

Board footer

Powered by FluxBB