Bug 348677 - Crash on close
Summary: Crash on close
Status: RESOLVED DUPLICATE of bug 347344
Alias: None
Product: kinfocenter
Classification: Applications
Component: Energy Information (show other bugs)
Version: 5.3.1
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-04 00:42 UTC by Martin Flöser
Modified: 2016-09-11 13:48 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Flöser 2015-06-04 00:42:48 UTC
Kinfocenter crashes when closing through window decoration close button if energy info kcm is open.

Reproducible: Always

Steps to Reproduce:
1. Open KInfocenter
2. Go to energy module
3. click window decoration close button

Actual Results:  
crash

Expected Results:  
no crash

Program received signal SIGABRT, Aborted.
0x00007ffff0e3e107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007ffff0e3e107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff0e3f4e8 in __GI_abort () at abort.c:89
#2  0x00007ffff1a781e6 in qt_message_fatal (context=..., message=...) at global/qlogging.cpp:1422
#3  0x00007ffff1a74b86 in QMessageLogger::fatal (this=0x7fffffffbf20, msg=0x7ffff1ddd708 "ASSERT: \"%s\" in file %s, line %d") at global/qlogging.cpp:643
#4  0x00007ffff1a6ead2 in qt_assert (assertion=0x7ffff04970b8 "!create", 
    file=0x7ffff0497068 "../../include/QtQml/5.4.2/QtQml/private/../../../../../src/qml/qml/qqmldata_p.h", line=190) at global/qglobal.cpp:2868
#5  0x00007ffff013a222 in QQmlData::get (object=0x7cb290, create=true) at ../../include/QtQml/5.4.2/QtQml/private/../../../../../src/qml/qml/qqmldata_p.h:190
#6  0x00007ffff03598a5 in QQmlEngine::setObjectOwnership (object=0x7cb290, ownership=QQmlEngine::CppOwnership) at qml/qqmlengine.cpp:1300
#7  0x00007fffd81f6b06 in BatteryModel::get (this=0x9fef60, index=0) at /home/martin/src/kf5/kde/workspace/kinfocenter/Modules/energy/batterymodel.cpp:84
#8  0x00007fffd8204934 in BatteryModel::qt_static_metacall (_o=0x9fef60, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fffffffc120)
    at /opt/build/kf5/kde/workspace/kinfocenter/Modules/energy/moc_batterymodel.cpp:89
#9  0x00007fffd8204af4 in BatteryModel::qt_metacall (this=0x9fef60, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fffffffc120)
    at /opt/build/kf5/kde/workspace/kinfocenter/Modules/energy/moc_batterymodel.cpp:133
#10 0x00007ffff1d0c34b in QMetaObject::metacall (object=0x9fef60, cl=QMetaObject::InvokeMetaMethod, idx=32, argv=0x7fffffffc120) at kernel/qmetaobject.cpp:295
#11 0x00007ffff0321efb in CallMethod (object=0x9fef60, index=32, returnType=1075, argCount=1, argTypes=0xb8e364, engine=0x832e60, callArgs=0x7fffd71ea070)
    at jsruntime/qv4qobjectwrapper.cpp:1151
#12 0x00007ffff0322a2a in CallPrecise (object=0x9fef60, data=..., engine=0x832e60, callArgs=0x7fffd71ea070) at jsruntime/qv4qobjectwrapper.cpp:1403
#13 0x00007ffff03250b2 in QV4::QObjectMethod::callInternal (this=0x7fffd422fc50, callData=0x7fffd71ea070) at jsruntime/qv4qobjectwrapper.cpp:1888
#14 0x00007ffff0324b2f in QV4::QObjectMethod::call (m=0x7fffd422fc50, callData=0x7fffd71ea070) at jsruntime/qv4qobjectwrapper.cpp:1817
#15 0x00007ffff02108ea in QV4::Object::call (this=0x7fffd422fc50, d=0x7fffd71ea070)
    at ../../include/QtQml/5.4.2/QtQml/private/../../../../../src/qml/jsruntime/qv4object_p.h:278
#16 0x00007ffff0337f61 in QV4::Runtime::callProperty (context=0x7fffffffc890, name=0x7fffe0083420, callData=0x7fffd71ea070) at jsruntime/qv4runtime.cpp:930
#17 0x00007fffd563c189 in ?? ()
#18 0x00007fffffffc840 in ?? ()
#19 0x00007fffd71842b0 in ?? ()
#20 0x00007fffffffc850 in ?? ()
#21 0x00007ffff028fccc in QV4::FunctionObject::function (this=0x7fffd563c000) at jsruntime/qv4functionobject_p.h:119
#22 0x00007ffff02c8b60 in QV4::SimpleScriptFunction::call (that=0x7fffd71842b0, callData=0x7fffd71ea008) at jsruntime/qv4functionobject.cpp:511
#23 0x00007ffff02108ea in QV4::Object::call (this=0x7fffd71842b0, d=0x7fffd71ea008)
    at ../../include/QtQml/5.4.2/QtQml/private/../../../../../src/qml/jsruntime/qv4object_p.h:278
#24 0x00007ffff03f37a0 in QQmlJavaScriptExpression::evaluate (this=0xb12c50, context=0xa591a0, function=..., callData=0x7fffd71ea008, isUndefined=0x0)
    at qml/qqmljavascriptexpression.cpp:158
#25 0x00007ffff038531d in QQmlBoundSignalExpression::evaluate (this=0xb12c30, a=0x0) at qml/qqmlboundsignal.cpp:281
#26 0x00007ffff0385966 in QQmlBoundSignal_callback (e=0xb12bc8, a=0x0) at qml/qqmlboundsignal.cpp:408
#27 0x00007ffff03d2e1d in QQmlNotifier::emitNotify (endpoint=0xb12bc8, a=0x0) at qml/qqmlnotifier.cpp:73
#28 0x00007ffff03d2d95 in QQmlNotifier::emitNotify (endpoint=0xb13150, a=0x0) at qml/qqmlnotifier.cpp:68
#29 0x00007ffff03d2d95 in QQmlNotifier::emitNotify (endpoint=0xb1a5b0, a=0x0) at qml/qqmlnotifier.cpp:68
#30 0x00007ffff03d2d95 in QQmlNotifier::emitNotify (endpoint=0xb3ed78, a=0x0) at qml/qqmlnotifier.cpp:68
#31 0x00007ffff03d2d95 in QQmlNotifier::emitNotify (endpoint=0xb3f440, a=0x0) at qml/qqmlnotifier.cpp:68
#32 0x00007ffff03d2d95 in QQmlNotifier::emitNotify (endpoint=0xb40358, a=0x0) at qml/qqmlnotifier.cpp:68
#33 0x00007ffff03d2d95 in QQmlNotifier::emitNotify (endpoint=0xb47c88, a=0x0) at qml/qqmlnotifier.cpp:68
#34 0x00007ffff03d2d95 in QQmlNotifier::emitNotify (endpoint=0xb488c8, a=0x0) at qml/qqmlnotifier.cpp:68
#35 0x00007ffff03d2d95 in QQmlNotifier::emitNotify (endpoint=0xb48eb0, a=0x0) at qml/qqmlnotifier.cpp:68
#36 0x00007ffff03d2d95 in QQmlNotifier::emitNotify (endpoint=0xb49498, a=0x0) at qml/qqmlnotifier.cpp:68
#37 0x00007ffff03d2d95 in QQmlNotifier::emitNotify (endpoint=0xb49a80, a=0x0) at qml/qqmlnotifier.cpp:68
#38 0x00007ffff03d2d95 in QQmlNotifier::emitNotify (endpoint=0xb4a068, a=0x0) at qml/qqmlnotifier.cpp:68
Comment 1 Ragnar Thomsen 2015-06-11 11:16:30 UTC
I can confirm this on Plasma 5.3.1.
Comment 2 Sudhir Khanger 2015-08-18 09:00:31 UTC
Application: kinfocenter (5.3.2)

Qt Version: 5.4.2
Operating System: Linux 4.1.4-200.fc22.x86_64 x86_64
Distribution: "Fedora release 22 (Twenty Two)"

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

Browse through several tabs of Kinfocenter. In the end go to Network Information>Network Interfaces and hit the close button in titlebar.

The crash can be reproduced every time.

-- Backtrace:
Application: KDE Info Center (kinfocenter), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9fd918d900 (LWP 2527))]

Thread 3 (Thread 0x7f9fb9e43700 (LWP 2528)):
#0  0x00007f9fd186b2fd in poll () at /lib64/libc.so.6
#1  0x00007f9fcdec5182 in _xcb_conn_wait () at /lib64/libxcb.so.1
#2  0x00007f9fcdec6c77 in xcb_wait_for_event () at /lib64/libxcb.so.1
#3  0x00007f9fbb9879b9 in QXcbEventReader::run() () at /usr/lib64/qt5/plugins/platforms/libqxcb.so
#4  0x00007f9fd2474e3e in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#5  0x00007f9fcf07b555 in start_thread () at /lib64/libpthread.so.0
#6  0x00007f9fd1876b9d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f9fb1991700 (LWP 2530)):
#0  0x00007f9fcd1a4ec9 in g_mutex_lock () at /lib64/libglib-2.0.so.0
#1  0x00007f9fcd15f369 in g_main_context_prepare () at /lib64/libglib-2.0.so.0
#2  0x00007f9fcd15fceb in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#3  0x00007f9fcd15fecc in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#4  0x00007f9fd26abb8b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007f9fd2651eba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#6  0x00007f9fd246ff54 in QThread::exec() () at /lib64/libQt5Core.so.5
#7  0x00007f9fd0c4a955 in QQmlThreadPrivate::run() () at /lib64/libQt5Qml.so.5
#8  0x00007f9fd2474e3e in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#9  0x00007f9fcf07b555 in start_thread () at /lib64/libpthread.so.0
#10 0x00007f9fd1876b9d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f9fd918d900 (LWP 2527)):
[KCrash Handler]
#5  0x00007f9fd17a89c8 in raise () at /lib64/libc.so.6
#6  0x00007f9fd17aa65a in abort () at /lib64/libc.so.6
#7  0x00007f9fd2462808 in  () at /lib64/libQt5Core.so.5
#8  0x00007f9fd311d452 in  () at /lib64/libQt5Gui.so.5
#9  0x00007f9fd31aa73b in QPixmap::QPixmap() () at /lib64/libQt5Gui.so.5
#10 0x00007f9fd314b7df in QCursor::QCursor(QCursor const&) () at /lib64/libQt5Gui.so.5
#11 0x00007f9fd1116539 in QQuickItem::cursor() const () at /lib64/libQt5Quick.so.5
#12 0x00007f9fd119bdeb in QQuickMouseArea::setCursorShape(Qt::CursorShape) () at /lib64/libQt5Quick.so.5
#13 0x00007f9fd125e128 in QQuickMouseArea::qt_metacall(QMetaObject::Call, int, void**) () at /lib64/libQt5Quick.so.5
#14 0x00007f9fd0bad744 in QQmlVMEMetaObject::metaCall(QMetaObject::Call, int, void**) () at /lib64/libQt5Qml.so.5
#15 0x00007f9fd0bc8ef5 in QQmlPropertyPrivate::writeBinding(QObject*, QQmlPropertyData const&, QQmlContextData*, QQmlJavaScriptExpression*, QV4::ValueRef, bool, QFlags<QQmlPropertyPrivate::WriteFlag>) () at /lib64/libQt5Qml.so.5
#16 0x00007f9fd0c3a40c in QQmlBinding::update(QFlags<QQmlPropertyPrivate::WriteFlag>) () at /lib64/libQt5Qml.so.5
#17 0x00007f9fd0c3ab6e in QQmlBinding::expressionChanged(QQmlJavaScriptExpression*) () at /lib64/libQt5Qml.so.5
#18 0x00007f9fd0c14f57 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () at /lib64/libQt5Qml.so.5
#19 0x00007f9fd0bb4b7c in QQmlData::signalEmitted(QAbstractDeclarativeData*, QObject*, int, void**) () at /lib64/libQt5Qml.so.5
#20 0x00007f9fd2684980 in QMetaObject::activate(QObject*, int, int, void**) () at /lib64/libQt5Core.so.5
#21 0x00007f9fd111f05e in QQuickItemPrivate::setEffectiveVisibleRecur(bool) () at /lib64/libQt5Quick.so.5
#22 0x00007f9fd111ef44 in QQuickItemPrivate::setEffectiveVisibleRecur(bool) () at /lib64/libQt5Quick.so.5
#23 0x00007f9fd111ef44 in QQuickItemPrivate::setEffectiveVisibleRecur(bool) () at /lib64/libQt5Quick.so.5
#24 0x00007f9fd111f0b4 in QQuickItem::setVisible(bool) () at /lib64/libQt5Quick.so.5
#25 0x00007f9fd1121024 in QQuickItem::qt_metacall(QMetaObject::Call, int, void**) () at /lib64/libQt5Quick.so.5
#26 0x00007f9fd0bad744 in QQmlVMEMetaObject::metaCall(QMetaObject::Call, int, void**) () at /lib64/libQt5Qml.so.5
#27 0x00007f9fd0bad847 in QQmlVMEMetaObject::metaCall(QMetaObject::Call, int, void**) () at /lib64/libQt5Qml.so.5
#28 0x00007f9fd0bc6ff1 in QQmlPropertyPrivate::write(QObject*, QQmlPropertyData const&, QVariant const&, QQmlContextData*, QFlags<QQmlPropertyPrivate::WriteFlag>) () at /lib64/libQt5Qml.so.5
#29 0x00007f9fd0bc895b in QQmlPropertyPrivate::writeValueProperty(QObject*, QQmlPropertyData const&, QVariant const&, QQmlContextData*, QFlags<QQmlPropertyPrivate::WriteFlag>) () at /lib64/libQt5Qml.so.5
#30 0x00007f9fd0bc9462 in QQmlPropertyPrivate::writeBinding(QObject*, QQmlPropertyData const&, QQmlContextData*, QQmlJavaScriptExpression*, QV4::ValueRef, bool, QFlags<QQmlPropertyPrivate::WriteFlag>) () at /lib64/libQt5Qml.so.5
#31 0x00007f9fd0c3a40c in QQmlBinding::update(QFlags<QQmlPropertyPrivate::WriteFlag>) () at /lib64/libQt5Qml.so.5
#32 0x00007f9fd0c3ab6e in QQmlBinding::expressionChanged(QQmlJavaScriptExpression*) () at /lib64/libQt5Qml.so.5
#33 0x00007f9fd0c14f57 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () at /lib64/libQt5Qml.so.5
#34 0x00007f9fd0c14f1e in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () at /lib64/libQt5Qml.so.5
#35 0x00007f9fd0bb4b7c in QQmlData::signalEmitted(QAbstractDeclarativeData*, QObject*, int, void**) () at /lib64/libQt5Qml.so.5
#36 0x00007f9fd2684980 in QMetaObject::activate(QObject*, int, int, void**) () at /lib64/libQt5Core.so.5
#37 0x00007f9fd0bae31d in QQmlVMEMetaObject::metaCall(QMetaObject::Call, int, void**) () at /lib64/libQt5Qml.so.5
#38 0x00007f9fd0bad847 in QQmlVMEMetaObject::metaCall(QMetaObject::Call, int, void**) () at /lib64/libQt5Qml.so.5
#39 0x00007f9fd0b90b8d in QV4::QObjectWrapper::setProperty(QObject*, QV4::ExecutionContext*, QQmlPropertyData*, QV4::ValueRef) () at /lib64/libQt5Qml.so.5
#40 0x00007f9fd0b9cdae in QV4::Runtime::setQmlQObjectProperty(QV4::ExecutionContext*, QV4::ValueRef, int, QV4::ValueRef) () at /lib64/libQt5Qml.so.5
#41 0x00007f9fb00158b1 in  ()
#42 0x00007f9fb09910d8 in  ()
#43 0x00007f9fd0c3daf0 in QV4::QmlContextWrapper::get(QV4::Managed*, QV4::String*, bool*) () at /lib64/libQt5Qml.so.5
#44 0x00007fffe210ac10 in  ()
#45 0x00007f9fb09431c0 in  ()
#46 0x0000000000000000 in  ()

Report to https://bugs.kde.org/
Comment 3 Christoph Feck 2015-09-27 19:26:33 UTC
Comment #2 is bug 347344.
Comment 4 opensuse.lietuviu.kalba 2016-01-09 20:07:02 UTC
Still crash on exit in KDE Plasma 5.5.3 with Qt 5.5.1: https://bugs.kde.org/show_bug.cgi?id=357718#c1
Comment 5 Christoph Feck 2016-06-15 19:33:10 UTC
Martin, can you reproduce since bug 347344 was fixed? It might have been the same cause.
Comment 6 Martin Flöser 2016-06-16 05:49:16 UTC
as I switched the windowing system I'm not sure whether me testing it, still makes sense. But here it crashed, though with different backtrace, which I cannot paste because copy'n'paste between X11 (Firefox) and Wayland (Yakuake with gdb output) is not yet implemented.

It was a crash from KIconLoader.
Comment 7 Sudhir Khanger 2016-06-16 06:08:55 UTC
I can't reproduce with with Network Interfaces or the Energy Information. I would assume it to be fixed.
Comment 8 Christoph Feck 2016-09-11 13:48:44 UTC
Assuming it was caused by the same solid <-> qml connections. If you still get a KInfoCenter crash, please report a new bug.

*** This bug has been marked as a duplicate of bug 347344 ***