Bug 345574 - Konversation segfault upon changing widget style
Summary: Konversation segfault upon changing widget style
Status: RESOLVED WORKSFORME
Alias: None
Product: konversation
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
: 351451 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-03-27 14:29 UTC by Hrvoje Senjan
Modified: 2018-12-01 03:48 UTC (History)
4 users (show)

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


Attachments
konversation-20160506-213430.kcrash.txt (8.60 KB, text/plain)
2016-05-06 19:39 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hrvoje Senjan 2015-03-27 14:29:06 UTC
This is at least in Plasma 5 enviroment. KF5 is master, Qt latest from 5.4 branch.

Reproducible: Always

Steps to Reproduce:
1. Have konversation running.
2. Change the style in systemsettings5/kcmshell5 style.


Actual Results:  
Segfault.

Expected Results:  
;-)

The backtrace points to somewhere lower in the stack, but konvi is so far only app that i found to segfault:

Thread 1 (Thread 0x7ffff7f82880 (LWP 11814)):
#0  0x00007ffff2bb225e in QWidget::testAttribute_helper(Qt::WidgetAttribute) const (this=this@entry=0x250b0e0, attribute=attribute@entry=Qt::WA_WState_Polished) at kernel/qwidget.cpp:11201
#1  0x00007ffff2b885d8 in QApplication::setStyle(QStyle*) (attribute=Qt::WA_WState_Polished, this=0x250b0e0)
    at ../../src/widgets/kernel/qwidget.h:851
#2  0x00007ffff2b885d8 in QApplication::setStyle(QStyle*) (style=<optimized out>) at kernel/qapplication.cpp:1237
#3  0x00007ffff2b89196 in QApplication::setStyle(QString const&) (style=...) at kernel/qapplication.cpp:1295
#4  0x00007fffe1caf8b3 in KHintsSettings::slotNotifyChange(int, int) (this=0xdc7f40, type=<optimized out>, arg=<optimized out>)
    at /usr/src/debug/frameworkintegration-5.9.0git~20150326T235157~901dc47/src/platformtheme/khintssettings.cpp:274
#5  0x00007fffe1cba093 in KHintsSettings::qt_metacall(QMetaObject::Call, int, void**) (this=0xdc7f40, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fffffffcca0)
    at /usr/src/debug/frameworkintegration-5.9.0git~20150326T235157~901dc47/build/src/platformtheme/moc_khintssettings.cpp:116
#6  0x00007ffff20aa75f in  () at /usr/lib64/libQt5DBus.so.5
#7  0x00007ffff1a1aad6 in QObject::event(QEvent*) (this=0xdc7f40, e=<optimized out>) at kernel/qobject.cpp:1245
#8  0x00007ffff2b86b5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=
    0xd9bbc0, receiver=receiver@entry=0xdc7f40, e=e@entry=0x27a96d0) at kernel/qapplication.cpp:3720
#9  0x00007ffff2b8ba26 in QApplication::notify(QObject*, QEvent*) (this=0x7fffffffd450, receiver=0xdc7f40, e=0x27a96d0)
    at kernel/qapplication.cpp:3503
#10 0x00007ffff19ea425 in QCoreApplication::notifyInternal(QObject*, QEvent*) (this=0x7fffffffd450, receiver=0xdc7f40, event=event@entry=0x27a96d0) at kernel/qcoreapplication.cpp:935
#11 0x00007ffff19ec2bf in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (event=0x27a96d0, receiver=<optimized out>) at kernel/qcoreapplication.h:228
#12 0x00007ffff19ec2bf in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x982620) at kernel/qcoreapplication.cpp:1552
#13 0x00007ffff19ec8f8 in QCoreApplication::sendPostedEvents(QObject*, int) (receiver=receiver@entry=0x0, event_type=event_type@entry=0)
    at kernel/qcoreapplication.cpp:1410
#14 0x00007ffff1a422f3 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0xdc9fb0) at kernel/qeventdispatcher_glib.cpp:271
#15 0x00007fffec6c6c74 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#16 0x00007fffec6c6ec8 in  () at /usr/lib64/libglib-2.0.so.0
#17 0x00007fffec6c6f6c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#18 0x00007ffff1a4176c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0xdb0ba0, flags=...)
    at kernel/qeventdispatcher_glib.cpp:418
#19 0x00007ffff19e837b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffffffd2f0, flags=..., 
    flags@entry=...) at kernel/qeventloop.cpp:204
#20 0x00007ffff19efa06 in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1188
#21 0x00000000004dbfe6 in main ()
Comment 1 Fabian Vogt 2016-01-04 12:19:41 UTC
I can confirm this with Qt 5.5.1 and Konversation 1.6.
It also happens when changing breeze settings, like the animation duration.
The backtrace is almost identical.
Maybe it is related to QApplication being instantiated a bit too late?
"QCoreApplication::arguments: Please instantiate the QApplication object first"
Comment 2 krasno 2016-04-19 05:04:41 UTC
I also experience this issue. I changed Breeze settings and Konversation crashed. 

Qt 5.6, Konversation 1.6. Current Arch.
Comment 3 Andreas Sturmlechner 2016-05-06 19:39:51 UTC
Created attachment 98822 [details]
konversation-20160506-213430.kcrash.txt

Same here, it crashes every time I switch the workspace theme.
Comment 4 Paulo Lieuthier 2016-05-21 17:09:48 UTC
*** Bug 351451 has been marked as a duplicate of this bug. ***
Comment 5 Andrew Crouthamel 2018-11-01 13:56:35 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2018-11-16 11:34:14 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2018-12-01 03:48:36 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!