Bug 381377 - Kaffeine crashes when changing KDE Widget Style
Summary: Kaffeine crashes when changing KDE Widget Style
Status: RESOLVED FIXED
Alias: None
Product: kaffeine
Classification: Applications
Component: general (show other bugs)
Version: 2.0.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Mauro Carvalho Chehab
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-18 19:41 UTC by Philip Murray
Modified: 2023-09-28 20:45 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Murray 2017-06-18 19:41:00 UTC
Kaffeine v2.0.5
New install of Debian 9 with KDE.
Kaffeine crashes is I go into KDE System Settings > Application Style > Widget Style, and change style from Qt Curve & Apply, and then select Breeze & apply.

I was able to replicate this crash every time & it happened both with DVB-T playing & whilst Kaffeive was at its home screen. I went & installed gdb pacgages to generate a report. Contents of the report are as follows:

Application: kaffeine (2.0.5)

Qt Version: 5.7.1
Frameworks Version: 5.28.0
Operating System: Linux 4.9.0-3-amd64 x86_64
Distribution: Debian GNU/Linux 9.0 (stretch)

-- Information about the crash:
<In detail, tell us what you were doing  when the application crashed.>

The crash can be reproduced every time.

-- Backtrace:
Application: Kaffeine (kaffeine), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f083408e040 (LWP 22678))]

Thread 4 (Thread 0x7f0812469700 (LWP 22681)):
#0  0x00007f08304fb71d in read () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f082961f073 in ?? () from /usr/lib/x86_64-linux-gnu/tls/libnvidia-tls.so.375.66
#2  0x00007f081b294181 in pa_read () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-10.0.so
#3  0x00007f081b9230be in pa_mainloop_prepare () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007f081b923b30 in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007f081b923bf0 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007f081b931bd9 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#7  0x00007f081b2c32c8 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-10.0.so
#8  0x00007f082e58a494 in start_thread (arg=0x7f0812469700) at pthread_create.c:333
#9  0x00007f0830508aff in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 3 (Thread 0x7f081959d700 (LWP 22680)):
#0  0x00007f08304ff6ad in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f082af389f6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f082af38b0c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f083111806b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f08310c19ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f0830eef0f3 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f08341576d5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f0830ef3da8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f082e58a494 in start_thread (arg=0x7f081959d700) at pthread_create.c:333
#9  0x00007f0830508aff in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 2 (Thread 0x7f082198e700 (LWP 22679)):
#0  0x00007f08304ff6ad in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f082a620150 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f082a621ee9 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f082451fb69 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f0830ef3da8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f082e58a494 in start_thread (arg=0x7f082198e700) at pthread_create.c:333
#6  0x00007f0830508aff in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 1 (Thread 0x7f083408e040 (LWP 22678)):
[KCrash Handler]
#6  0x00007f08319ab028 in QApplication::setStyle(QStyle*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x00007f08319abca6 in QApplication::setStyle(QString const&) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007f082071cd33 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platformthemes/KDEPlasmaPlatformTheme.so
#9  0x00007f0820728715 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platformthemes/KDEPlasmaPlatformTheme.so
#10 0x00007f0834163a10 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#11 0x00007f08310f0499 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f08319a6b8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007f08319ae341 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007f08310c39e0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007f08310c616d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f0831117c43 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f082af387f7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f082af38a60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007f082af38b0c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f083111804f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007f08310c19ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f08310ca13c in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x000055dabc3badf9 in ?? ()
#24 0x00007f08304402b1 in __libc_start_main (main=0x55dabc3bac80, argc=1, argv=0x7ffef2e6c2d8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffef2e6c2c8) at ../csu/libc-start.c:291
#25 0x000055dabc3bae6a in _start ()

Report to https://bugs.kde.org/
Comment 1 Mauro Carvalho Chehab 2017-07-09 23:48:08 UTC
Yeah, after doing some changes at the Qt5 theme, on Ubuntu 17.04, I was able to reproduce the bug. I suspect that it is some trouble at libQt5Widgets (version 5.7.1).

No idea how to fix it (or if a newer version of Qt5 would have the same issue).
Comment 2 Mauro Carvalho Chehab 2017-07-09 23:48:56 UTC
(In reply to Mauro Carvalho Chehab from comment #1)
> Yeah, after doing some changes at the Qt5 theme, on Ubuntu 17.04, I was able

In time, I mean, at Plasma theme.

> to reproduce the bug. I suspect that it is some trouble at libQt5Widgets
> (version 5.7.1).
> 
> No idea how to fix it (or if a newer version of Qt5 would have the same
> issue).
Comment 3 Philip Murray 2019-07-19 21:12:14 UTC
I'm now running Debian 10 Buster & the above crash still happens when changing the Widget style from QtCurve to Breeze. It isn't a big problem, I just thought I'd test it again to check if this bug could be closed or not, but unfortunately  not as it still happens.

System info:

Kaffeine 2.0.15
KDE Plasma 5.14.5
KDE Frameworks 5.54.0
Qt 5.11.3
Kernel 4.19.0-5-amd64

I installed a bunch of debug packages after running find-dbgsym-packages & the crash trace is now as follows:

-------------------------------------------------------------

Application: Kaffeine (kaffeine), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fbde80ef800 (LWP 10554))]

Thread 3 (Thread 0x7fbddd638700 (LWP 10558)):
#0  0x00007fbde55776d0 in pa_pstream_ref@plt () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-12.2.so
#1  0x00007fbde55a77a4 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-12.2.so
#2  0x00007fbde55a7b79 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-12.2.so
#3  0x00007fbde55a83ca in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-12.2.so
#4  0x00007fbde561cca8 in pa_mainloop_dispatch () from /lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007fbde561cf7c in pa_mainloop_iterate () from /lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007fbde561d020 in pa_mainloop_run () from /lib/x86_64-linux-gnu/libpulse.so.0
#7  0x00007fbde562b049 in ?? () from /lib/x86_64-linux-gnu/libpulse.so.0
#8  0x00007fbde55b84f8 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-12.2.so
#9  0x00007fbdeb6b8fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#10 0x00007fbdec0b64cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fbde486c700 (LWP 10557)):
#0  __GI___libc_read (nbytes=16, buf=0x7fbde486bb50, fd=7) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=7, buf=buf@entry=0x7fbde486bb50, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007fbdea776aa0 in read (__nbytes=16, __buf=0x7fbde486bb50, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:44
#3  g_wakeup_acknowledge (wakeup=0x5644a39cc1b0) at ../../../glib/gwakeup.c:210
#4  0x00007fbdea730c0f in g_main_context_check (context=context@entry=0x7fbdd8000bf0, max_priority=2147483647, fds=fds@entry=0x7fbdd801ade0, n_fds=n_fds@entry=1) at ../../../glib/gmain.c:3698
#5  0x00007fbdea7310e0 in g_main_context_iterate (context=context@entry=0x7fbdd8000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:3917
#6  0x00007fbdea73125c in g_main_context_iteration (context=0x7fbdd8000bf0, may_block=may_block@entry=1) at ../../../glib/gmain.c:3981
#7  0x00007fbdec74087b in QEventDispatcherGlib::processEvents (this=0x7fbdd8000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#8  0x00007fbdec6ee27b in QEventLoop::exec (this=this@entry=0x7fbde486bd70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#9  0x00007fbdec53dec6 in QThread::exec (this=this@entry=0x7fbded7f6d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#10 0x00007fbded776545 in QDBusConnectionManager::run (this=0x7fbded7f6d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#11 0x00007fbdec547aa7 in QThreadPrivate::start (arg=0x7fbded7f6d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:367
#12 0x00007fbdeb6b8fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#13 0x00007fbdec0b64cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fbde80ef800 (LWP 10554)):
[KCrash Handler]
#6  0x00007fbded06e960 in QApplication::setStyle (style=0x5644a45d3c40) at ../../include/QtCore/../../src/corelib/global/qflags.h:145
#7  QApplication::setStyle (style=0x5644a45d3c40) at kernel/qapplication.cpp:1123
#8  0x00007fbded06f3c6 in QApplication::setStyle (style=...) at kernel/qapplication.cpp:1238
#9  0x00007fbde645501e in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platformthemes/KDEPlasmaPlatformTheme.so
#10 0x00007fbde6463423 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platformthemes/KDEPlasmaPlatformTheme.so
#11 0x00007fbded781d8a in QDBusConnectionPrivate::deliverCall (this=<optimized out>, object=<optimized out>, msg=..., metaTypes=..., slotIdx=<optimized out>) at qdbusintegrator.cpp:991
#12 0x00007fbdec719182 in QObject::event (this=0x5644a39b6520, e=<optimized out>) at kernel/qobject.cpp:1251
#13 0x00007fbded06a4b1 in QApplicationPrivate::notify_helper (this=this@entry=0x5644a39691e0, receiver=receiver@entry=0x5644a39b6520, e=e@entry=0x5644a39d49d0) at kernel/qapplication.cpp:3726
#14 0x00007fbded071950 in QApplication::notify (this=0x7ffd1a552af0, receiver=0x5644a39b6520, e=0x5644a39d49d0) at kernel/qapplication.cpp:3485
#15 0x00007fbdec6ef5a9 in QCoreApplication::notifyInternal2 (receiver=0x5644a39b6520, event=0x5644a39d49d0) at ../../include/QtCore/5.11.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:307
#16 0x00007fbdec6f259b in QCoreApplication::sendEvent (event=0x5644a39d49d0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#17 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5644a3966ae0) at kernel/qcoreapplication.cpp:1744
#18 0x00007fbdec741233 in postEventSourceDispatch (s=0x5644a39b9fb0) at kernel/qeventdispatcher_glib.cpp:276
#19 0x00007fbdea730f2e in g_main_dispatch (context=0x7fbde0004ff0) at ../../../glib/gmain.c:3182
#20 g_main_context_dispatch (context=context@entry=0x7fbde0004ff0) at ../../../glib/gmain.c:3847
#21 0x00007fbdea7311c8 in g_main_context_iterate (context=context@entry=0x7fbde0004ff0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:3920
#22 0x00007fbdea73125c in g_main_context_iteration (context=0x7fbde0004ff0, may_block=may_block@entry=1) at ../../../glib/gmain.c:3981
#23 0x00007fbdec740863 in QEventDispatcherGlib::processEvents (this=0x5644a39b8600, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#24 0x00007fbde7d3f3e1 in QPAEventDispatcherGlib::processEvents (this=0x5644a39b8600, flags=...) at qeventdispatcher_glib.cpp:69
#25 0x00007fbdec6ee27b in QEventLoop::exec (this=this@entry=0x7ffd1a552a30, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#26 0x00007fbdec6f6262 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#27 0x00005644a35ac6fb in main (argc=<optimized out>, argv=<optimized out>) at ./src/main.cpp:228
[Inferior 1 (process 10554) detached]
Comment 4 Philip Murray 2023-09-28 20:45:42 UTC
KDE doesn't have a 'Widget Style' bit in system settings any more that I can find. I tried changing a few different desktop appearance related things; themes, application styles, window decorations & colours, and Kaffeine didn't crash, so I'll closed this & mark it as resolved.