Bug 357955 - Kdenlive-git master 15.13.0 - Crashes "Segmentation fault (core dumped)" after trying to run program
Summary: Kdenlive-git master 15.13.0 - Crashes "Segmentation fault (core dumped)" afte...
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-13 22:43 UTC by Unknown
Modified: 2016-01-14 19:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2016-01-13 22:43:29 UTC
When clicking on Kdenlive from the menu or running from terminal, program won't open. Running from terminal gives the following error.

[jesse@workstation ~]$ kdenlive
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setFont: Painter not active
QPainter::setOpacity: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
Segmentation fault (core dumped)
[jesse@workstation ~]$





Reproducible: Always

Steps to Reproduce:
1. Build/install Kdenlive-git from Arch AUR repo'
2. Run program by clicking on application icon in menu or run "kdenlive" from terminal


Actual Results:  
Program crashes (Segfault) with Qpaint errors in terminal.

Expected Results:  
Program to execute properly and open

Running Kdenlive-git 15.13.0.r6916.7084fa1-1 on Antergos Linux x64, GNOME 3.18.
Comment 1 Jean-Baptiste Mardelle 2016-01-13 22:52:15 UTC
Can you get a backtrace ?

From a terminal:
gdb kdenlive
run
(crash kdenlive)
tread apply all bt
(press enter until all data is printed and paste here)
Comment 2 Unknown 2016-01-13 23:12:17 UTC
You bet. Will this work?

(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 0x7fffe2a77700 (LWP 5026)]
(gdb) [New Thread 0x7fffc29b9700 (LWP 5027)]
[New Thread 0x7fffbce18700 (LWP 5028)]
[New Thread 0x7fffb77ff700 (LWP 5029)]
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setFont: Painter not active
QPainter::setOpacity: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff1d8d644 in ?? () from /usr/lib/libQt5Core.so.5
(gdb)
Comment 3 Unknown 2016-01-13 23:15:29 UTC
Typing "tread apply all bt" returned this:

(gdb) tread apply all bt
Undefined command: "tread".  Try "help".
(gdb)
Comment 4 Jean-Baptiste Mardelle 2016-01-13 23:17:51 UTC
Sorry, typo:

thread apply all bt
Comment 5 Unknown 2016-01-13 23:37:34 UTC
No sweat. Here ya go:

(gdb) thread apply all bt

Thread 5 (Thread 0x7fffb77ff700 (LWP 5257)):
#0  0x00007ffff131718d in poll () from /usr/lib/libc.so.6
#1  0x00007fffee2bbfbc in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fffee2bc0cc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff1f3854f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff1edf57a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff1cfbbe4 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff2aa9055 in ?? () from /usr/lib/libQt5Qml.so.5
#7  0x00007ffff1d00b8e in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007fffefcd04a4 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007ffff132013d in clone () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7fffbce18700 (LWP 5256)):
#0  0x00007ffff131718d in poll () from /usr/lib/libc.so.6
#1  0x00007fffee2bbfbc in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fffee2bc0cc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff1f3854f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff1edf57a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff1cfbbe4 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff2aa9055 in ?? () from /usr/lib/libQt5Qml.so.5
#7  0x00007ffff1d00b8e in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007fffefcd04a4 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007ffff132013d in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7fffc29b9700 (LWP 5254)):
#0  0x00007ffff131718d in poll () from /usr/lib/libc.so.6
#1  0x00007fffc29c9cbc in ?? () from /usr/lib/libusb-1.0.so.0
#2  0x00007fffefcd04a4 in start_thread () from /usr/lib/libpthread.so.0
#3  0x00007ffff132013d in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7fffe2a77700 (LWP 5253)):
#0  0x00007ffff131718d in poll () from /usr/lib/libc.so.6
#1  0x00007fffebbe1ae2 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007fffebbe3757 in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x00007fffe4ddf379 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#4  0x00007ffff1d00b8e in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007fffefcd04a4 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007ffff132013d in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7fffe505a800 (LWP 5249)):
#0  0x00007ffff1d8d644 in ?? () from /usr/lib/libQt5Core.so.5
#1  0x00007ffff22dfd81 in QFontMetrics::width(QString const&, int, int) const () from /usr/lib/libQt5Gui.so.5
#2  0x0000555555605693 in ?? ()
#3  0x0000555555607d21 in ?? ()
#4  0x0000555555607dd0 in ?? ()
#5  0x00007ffff329b01e in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#6  0x00007ffff32579ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#7  0x00007ffff325ce86 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#8  0x00007ffff1ee1bab in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#9  0x00007ffff3293431 in QWidgetPrivate::sendPendingMoveAndResizeEvents(bool, bool) () from /usr/lib/libQt5Widgets.so.5
#10 0x00007ffff3297243 in QWidgetPrivate::show_helper() () from /usr/lib/libQt5Widgets.so.5
#11 0x00007ffff329a055 in QWidget::setVisible(bool) () from /usr/lib/libQt5Widgets.so.5
---Type <return> to continue, or q <return> to quit---
#12 0x00007ffff32971d8 in QWidgetPrivate::showChildren(bool) () from /usr/lib/libQt5Widgets.so.5
#13 0x00007ffff329725f in QWidgetPrivate::show_helper() () from /usr/lib/libQt5Widgets.so.5
#14 0x00007ffff32971c6 in QWidgetPrivate::showChildren(bool) () from /usr/lib/libQt5Widgets.so.5
#15 0x00007ffff329725f in QWidgetPrivate::show_helper() () from /usr/lib/libQt5Widgets.so.5
#16 0x00007ffff32971c6 in QWidgetPrivate::showChildren(bool) () from /usr/lib/libQt5Widgets.so.5
#17 0x00007ffff329725f in QWidgetPrivate::show_helper() () from /usr/lib/libQt5Widgets.so.5
#18 0x00007ffff329a055 in QWidget::setVisible(bool) () from /usr/lib/libQt5Widgets.so.5
#19 0x00005555555f93ab in ?? ()
#20 0x00007ffff1257610 in __libc_start_main () from /usr/lib/libc.so.6
#21 0x00005555555f98d9 in _start ()
(gdb)
Comment 6 Jean-Baptiste Mardelle 2016-01-13 23:56:49 UTC
Git commit 7280b3cb2c2798e448cbbe9be2c8f4884b06a2a2 by Jean-Baptiste Mardelle.
Committed on 13/01/2016 at 23:56.
Pushed by mardelle into branch 'master'.

Attempt to fix startup crash

M  +5    -2    src/audiospectrum/audiographspectrum.cpp
M  +2    -0    src/monitor/monitoraudiolevel.cpp

http://commits.kde.org/kdenlive/7280b3cb2c2798e448cbbe9be2c8f4884b06a2a2
Comment 7 Unknown 2016-01-14 00:14:32 UTC
Fixed. :) Thanks JB!
Comment 8 Unknown 2016-01-14 00:18:52 UTC
My bad. It did in fact open, but when I switched styles from Breeze to Fusion, worked fine, but then switched back to Breeze style, then it crashed. Trying to run from terminal gives a segmentation fault again. Here's the results from gdb:

(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 0x7fffe2a77700 (LWP 10105)]
[New Thread 0x7fffc29b9700 (LWP 10106)]
[New Thread 0x7fffbce18700 (LWP 10110)]
[New Thread 0x7fffb77ff700 (LWP 10111)]

Program received signal SIGSEGV, Segmentation fault.
0x0000555555605649 in ?? ()
(gdb) thread apply all bt

Thread 5 (Thread 0x7fffb77ff700 (LWP 10111)):
#0  0x00007ffff131718d in poll () from /usr/lib/libc.so.6
#1  0x00007fffee2bbfbc in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fffee2bc0cc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff1f3854f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff1edf57a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff1cfbbe4 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff2aa9055 in ?? () from /usr/lib/libQt5Qml.so.5
#7  0x00007ffff1d00b8e in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007fffefcd04a4 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007ffff132013d in clone () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7fffbce18700 (LWP 10110)):
#0  0x00007ffff131718d in poll () from /usr/lib/libc.so.6
#1  0x00007fffee2bbfbc in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fffee2bc0cc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff1f3854f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff1edf57a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff1cfbbe4 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff2aa9055 in ?? () from /usr/lib/libQt5Qml.so.5
#7  0x00007ffff1d00b8e in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007fffefcd04a4 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007ffff132013d in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7fffc29b9700 (LWP 10106)):
#0  0x00007ffff131718d in poll () from /usr/lib/libc.so.6
#1  0x00007fffc29c9cbc in ?? () from /usr/lib/libusb-1.0.so.0
#2  0x00007fffefcd04a4 in start_thread () from /usr/lib/libpthread.so.0
#3  0x00007ffff132013d in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7fffe2a77700 (LWP 10105)):
#0  0x00007ffff131718d in poll () from /usr/lib/libc.so.6
#1  0x00007fffebbe1ae2 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007fffebbe3757 in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x00007fffe4ddf379 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#4  0x00007ffff1d00b8e in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007fffefcd04a4 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007ffff132013d in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7fffe505a800 (LWP 10101)):
#0  0x0000555555605649 in ?? ()
#1  0x0000555555607fb6 in ?? ()
#2  0x00007ffff329b01e in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#3  0x00007ffff32579ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#4  0x00007ffff325ce86 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#5  0x00007ffff1ee1bab in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff3293431 in QWidgetPrivate::sendPendingMoveAndResizeEvents(bool, bool) () from /usr/lib/libQt5Widgets.so.5
#7  0x00007ffff3297243 in QWidgetPrivate::show_helper() () from /usr/lib/libQt5Widgets.so.5
#8  0x00007ffff329a055 in QWidget::setVisible(bool) () from /usr/lib/libQt5Widgets.so.5
#9  0x00007ffff32971d8 in QWidgetPrivate::showChildren(bool) () from /usr/lib/libQt5Widgets.so.5
#10 0x00007ffff329725f in QWidgetPrivate::show_helper() () from /usr/lib/libQt5Widgets.so.5
#11 0x00007ffff32971c6 in QWidgetPrivate::showChildren(bool) () from /usr/lib/libQt5Widgets.so.5
---Type <return> to continue, or q <return> to quit---
#12 0x00007ffff329725f in QWidgetPrivate::show_helper() () from /usr/lib/libQt5Widgets.so.5
#13 0x00007ffff32971c6 in QWidgetPrivate::showChildren(bool) () from /usr/lib/libQt5Widgets.so.5
#14 0x00007ffff329725f in QWidgetPrivate::show_helper() () from /usr/lib/libQt5Widgets.so.5
#15 0x00007ffff329a055 in QWidget::setVisible(bool) () from /usr/lib/libQt5Widgets.so.5
#16 0x00005555555f93ab in ?? ()
#17 0x00007ffff1257610 in __libc_start_main () from /usr/lib/libc.so.6
#18 0x00005555555f98d9 in _start ()
(gdb)
Comment 9 Unknown 2016-01-14 19:08:56 UTC
Well, I uninstalled kdenlive-git package using "sudo pacman -R kdenlive-git", then removed all kdenlive-related folders from the .local folder, the .cache folder, and the .config folder in my home directory. I also deleted the "kdenlive" folder in my home directory. I then re-installed kdenlive-git package using "yaourt -S kdenlive-git", let it build, then let it install.

Seems to be working now, even after I switch the themes and styles repeatedly. I'm going to mark this bug as solved.