Bug 251445 - Some applications crash when changing the widget style (4.5) [QApplication::setStyle, KQGuiPlatformPlugin::updateWidgetStyle, ..., KGlobalSettings::Private::applyGUIStyle]
Summary: Some applications crash when changing the widget style (4.5) [QApplication::s...
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.8.4
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 232525 257754 262888 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-16 14:35 UTC by boris64
Modified: 2020-12-13 07:37 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (8.38 KB, text/plain)
2010-12-16 03:32 UTC, Lonnie
Details
New crash information added by DrKonqi (9.68 KB, text/plain)
2011-02-19 12:06 UTC, opensuse.lietuviu.kalba
Details
Graphical artifacts (176.24 KB, image/png)
2020-12-13 07:31 UTC, opensuse.lietuviu.kalba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description boris64 2010-09-16 14:35:40 UTC
Application: kaffeine (1.1)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.6.3
Operating System: Linux 2.6.35.4-v2k11+-r800_accel-v2.2 x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:

1) Start kaffeine
2) Change your desktop style in KDE-4.5(.1) and apply
3) Kaffeine always crashes (instantly)

The crash can be reproduced every time.

-- Backtrace:
Application: Kaffeine (kaffeine), signal: Segmentation fault
[KCrash Handler]
#6  0x0000003b7b5af310 in QApplication::setStyle(QStyle*) () from /usr/lib64/qt4/libQtGui.so.4
#7  0x0000003b7b5af786 in QApplication::setStyle(QString const&) () from /usr/lib64/qt4/libQtGui.so.4
#8  0x00007f37724ee7d4 in KQGuiPlatformPlugin::updateWidgetStyle (this=0x1d186a0) at /tmp/portage/portage/kde-base/qguiplatformplugin_kde-4.5.1/work/qguiplatformplugin_kde-4.5.1/qguiplatformplugin_kde/qguiplatformplugin_kde.cpp:357
#9  0x00007f37724ed339 in KQGuiPlatformPlugin::qt_metacall (this=0x1d186a0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at /tmp/portage/portage/kde-base/qguiplatformplugin_kde-4.5.1/work/qguiplatformplugin_kde-4.5.1_build/qguiplatformplugin_kde/qguiplatformplugin_kde.moc:74
#10 0x000000399cb7ced7 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
#11 0x0000003b7d033da0 in KGlobalSettings::Private::applyGUIStyle (this=0x1d10690) at /tmp/portage/portage/kde-base/kdelibs-4.5.1/work/kdelibs-4.5.1/kdeui/kernel/kglobalsettings.cpp:900
#12 0x0000003b7d035998 in KGlobalSettings::Private::kdisplaySetStyle (this=0x1d10690) at /tmp/portage/portage/kde-base/kdelibs-4.5.1/work/kdelibs-4.5.1/kdeui/kernel/kglobalsettings.cpp:1015
#13 0x0000003b7d03696a in KGlobalSettings::Private::_k_slotNotifyChange (this=0x1d10690, changeType=<value optimized out>, arg=0) at /tmp/portage/portage/kde-base/kdelibs-4.5.1/work/kdelibs-4.5.1/kdeui/kernel/kglobalsettings.cpp:821
#14 0x0000003b7d036adb in KGlobalSettings::qt_metacall (this=0x1d14820, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7ffff77e7da0) at /tmp/portage/portage/kde-base/kdelibs-4.5.1/work/kdelibs-4.5.1_build/kdeui/kglobalsettings.moc:100
#15 0x000000399ea1f11a in QDBusConnectionPrivate::deliverCall(QObject*, int, QDBusMessage const&, QList<int> const&, int) () from /usr/lib64/qt4/libQtDBus.so.4
#16 0x000000399ea2b7ff in QDBusCallDeliveryEvent::placeMetaCall(QObject*) () from /usr/lib64/qt4/libQtDBus.so.4
#17 0x000000399cb7a4c9 in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#18 0x0000003b7b5ab8a4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#19 0x0000003b7b5b0f31 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#20 0x0000003b7d00e7d2 in KApplication::notify (this=0x7ffff77e89a0, receiver=0x1d14820, event=0x2f215a0) at /tmp/portage/portage/kde-base/kdelibs-4.5.1/work/kdelibs-4.5.1/kdeui/kernel/kapplication.cpp:310
#21 0x000000399cb66ccc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#22 0x000000399cb6ab5b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt4/libQtCore.so.4
#23 0x000000399cb922a3 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/qt4/libQtCore.so.4
#24 0x000000399c23d922 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#25 0x000000399c23e100 in g_main_context_iterate.clone.5 () from /usr/lib/libglib-2.0.so.0
#26 0x000000399c23e39d in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#27 0x000000399cb9293f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#28 0x0000003b7b6570be in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtGui.so.4
#29 0x000000399cb657b2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#30 0x000000399cb659ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#31 0x000000399cb6ae3b in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#32 0x0000000000437782 in main (argc=1, argv=0x7ffff77e8c28) at /tmp/portage/portage/media-video/kaffeine-1.1/work/kaffeine-1.1/src/main.cpp:79

Reported using DrKonqi
Comment 1 Dario Andres 2010-11-24 19:46:32 UTC
[Comment from a bug triager]
From bug 257754:
- What I was doing when the application crashed:
Lokalize crashed when I switched the style from Oxygen to QtCurve.

@boris64: does this happen with other applications, or when switching to different widget styles ? (could you check several styles?)

Thansk
Comment 2 Dario Andres 2010-11-24 19:46:44 UTC
*** Bug 257754 has been marked as a duplicate of this bug. ***
Comment 3 Dario Andres 2010-11-24 19:47:57 UTC
[Comment from a bug triager]
If Oxygen is always related to this crashes, then this could be related to bug 247902. Regards
Comment 4 boris64 2010-11-24 20:05:14 UTC
Hm, looks like this is somehow related to the qtcurve style.

If i change theme from whatever_other_style->qtcurve, nothing interesting
happens, kaffeine works as expected.
But if i change qtcurve->whatever_other_style, kaffeine always crashes.
Oh, and btw: i noticed this _only_ with kaffeine.

FYI: It's been some time since i reported this bug and i'm using KDE-4.5.3 now.
Comment 5 Dario Andres 2010-12-13 21:00:40 UTC
*** Bug 232525 has been marked as a duplicate of this bug. ***
Comment 6 Lonnie 2010-12-16 03:32:21 UTC
Created attachment 54817 [details]
New crash information added by DrKonqi

kget (2.5.85) on KDE Platform 4.5.85 (4.6 Beta2) using Qt 4.7.0

- What I was doing when the application crashed:
Changed widget style from QtCurve to Bespin and then KGet crashed

-- Backtrace (Reduced):
#6  0x00007fd5805a0773 in QApplication::setStyle (style=<value optimized out>) at kernel/qapplication.cpp:1495
#7  0x00007fd5805a0a66 in QApplication::setStyle (style=<value optimized out>) at kernel/qapplication.cpp:1557
#8  0x00007fd571945b6a in updateWidgetStyle (this=0x269af80, _c=<value optimized out>, _id=1, _a=<value optimized out>) at ../../qguiplatformplugin_kde/qguiplatformplugin_kde.cpp:357
#9  KQGuiPlatformPlugin::qt_metacall (this=0x269af80, _c=<value optimized out>, _id=1, _a=<value optimized out>) at ./qguiplatformplugin_kde.moc:74
[...]
#11 0x00007fd583d59d08 in KGlobalSettings::Private::applyGUIStyle (this=<value optimized out>) at ../../kdeui/kernel/kglobalsettings.cpp:922
Comment 7 Pino Toscano 2011-01-12 09:55:28 UTC
*** Bug 262888 has been marked as a duplicate of this bug. ***
Comment 8 opensuse.lietuviu.kalba 2011-02-19 12:06:45 UTC
Created attachment 57374 [details]
New crash information added by DrKonqi

lokalize (1.2) on KDE Platform 4.6.00 (4.6.0) "release 375" using Qt 4.7.1

- What I was doing when the application crashed:

Changed style from phaze to oxygen, then Lokalize crashed.

-- Backtrace (Reduced):
#6  QApplication::setStyle (style=<value optimized out>) at kernel/qapplication.cpp:1549
#7  0x00007f397bae78d6 in QApplication::setStyle (style=<value optimized out>) at kernel/qapplication.cpp:1599
#8  0x00007f397327838a in updateWidgetStyle (this=0x8212a0, _c=<value optimized out>, _id=1, _a=<value optimized out>)
    at /usr/src/debug/kdebase-workspace-4.6.0/qguiplatformplugin_kde/qguiplatformplugin_kde.cpp:357
#9  KQGuiPlatformPlugin::qt_metacall (this=0x8212a0, _c=<value optimized out>, _id=1, _a=<value optimized out>)
    at /usr/src/debug/kdebase-workspace-4.6.0/build/qguiplatformplugin_kde/qguiplatformplugin_kde.moc:74
[...]
#11 0x00007f397d763088 in KGlobalSettings::Private::applyGUIStyle (this=<value optimized out>) at /usr/src/debug/kdelibs-4.6.0/kdeui/kernel/kglobalsettings.cpp:922
Comment 9 Alexander Potashev 2011-03-26 11:02:16 UTC
Lokalize does not crash anymore for me when changing widget style. Something was probably fixed in Qt 4.7.2. I have Qt 4.7.2 and KDE SC 4.6.1.
Comment 10 Alexander Potashev 2011-03-27 22:10:25 UTC
(In reply to comment #9)
> Lokalize does not crash anymore for me when changing widget style. Something
> was probably fixed in Qt 4.7.2. I have Qt 4.7.2 and KDE SC 4.6.1.

Sorry, it didn't crash only once. In most cases, Lokalize still crashes.
Comment 11 Alexander Potashev 2012-07-29 13:22:04 UTC
Still valid for KDE SC 4.8.4 (Lokalize still crashes when switching style from "Plastic" to "QtCurve"). See also bug #271494.
Comment 12 Justin Zobel 2020-12-13 03:59:30 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 13 opensuse.lietuviu.kalba 2020-12-13 07:30:08 UTC
I can not reproduce crash in Lokalize 20.04.2.
Operating System: openSUSE Leap 15.2
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.71.0
Qt Version: 5.12.7
Kernel Version: 5.3.18-lp152.50-default
OS Type: 64-bit
Comment 14 opensuse.lietuviu.kalba 2020-12-13 07:31:43 UTC
Created attachment 134040 [details]
Graphical artifacts

...however I see graphical artifacts after switching into some styles.
Comment 15 Justin Zobel 2020-12-13 07:37:48 UTC
Please create the graphical artifacts as a separate bug report. This
one is only about the crash.

On Sun, Dec 13, 2020 at 6:01 PM <bugzilla_noreply@kde.org> wrote:
>
> https://bugs.kde.org/show_bug.cgi?id=251445
>
> --- Comment #14 from opensuse.lietuviu.kalba@gmail.com ---
> Created attachment 134040 [details]
>   --> https://bugs.kde.org/attachment.cgi?id=134040&action=edit
> Graphical artifacts
>
> ...however I see graphical artifacts after switching into some styles.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.