Bug 401587 - Messaging app crashes when trying to interact after device is disconnected
Summary: Messaging app crashes when trying to interact after device is disconnected
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: messaging-application (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Simon Redman
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-11-30 18:12 UTC by Simon Redman
Modified: 2019-02-03 15:35 UTC (History)
1 user (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 Simon Redman 2018-11-30 18:12:18 UTC
Application: kdeconnect-sms (1.3.3)
 (Compiled from sources)
Qt Version: 5.11.1
Frameworks Version: 5.52.0
Operating System: Linux 4.18.18-200.fc28.x86_64 x86_64
Distribution: "Fedora release 28 (Twenty Eight)"

-- Information about the crash:
- Phone was disconnected
- Tried to select a conversation to send a new message

(n.b., this bug is being reported by the default assignee. I just want to see how Dr. Konqui -generated reports look)

The crash can be reproduced every time.

-- Backtrace:
Application: SMS Instant Messaging (kdeconnect-sms), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f3a452d5940 (LWP 13591))]

Thread 4 (Thread 0x7f3a2a065700 (LWP 13594)):
#0  0x00007f3a4d37ee54 in read () from /lib64/libc.so.6
#1  0x00007f3a4825d0f0 in g_wakeup_acknowledge () from /lib64/libglib-2.0.so.0
#2  0x00007f3a482176bb in g_main_context_check () from /lib64/libglib-2.0.so.0
#3  0x00007f3a48217b70 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#4  0x00007f3a48217cf0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#5  0x00007f3a4e2392ab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x00007f3a4e1e7b7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#7  0x00007f3a4e04f6b6 in QThread::exec() () from /lib64/libQt5Core.so.5
#8  0x00007f3a4fa42d09 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#9  0x00007f3a4e058b4b in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#10 0x00007f3a4ce16594 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f3a4d38de6f in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f3a2ad37700 (LWP 13593)):
#0  0x00007f3a4d3833e9 in poll () from /lib64/libc.so.6
#1  0x00007f3a48217bc6 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#2  0x00007f3a48217cf0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f3a4e2392ab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x00007f3a4e1e7b7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f3a4e04f6b6 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00007f3a4e4917b9 in QDBusConnectionManager::run() () from /lib64/libQt5DBus.so.5
#7  0x00007f3a4e058b4b in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x00007f3a4ce16594 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f3a4d38de6f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f3a35bd7700 (LWP 13592)):
#0  0x00007f3a4d3833e9 in poll () from /lib64/libc.so.6
#1  0x00007f3a4622404f in _xcb_conn_wait () from /lib64/libxcb.so.1
#2  0x00007f3a46225caa in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007f3a389975a9 in QXcbEventReader::run() () from /lib64/libQt5XcbQpa.so.5
#4  0x00007f3a4e058b4b in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#5  0x00007f3a4ce16594 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f3a4d38de6f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f3a452d5940 (LWP 13591)):
[KCrash Handler]
#6  0x00007f3a4e4acf95 in QDBusAbstractInterface::asyncCallWithArgumentList(QString const&, QList<QVariant> const&) () from /lib64/libQt5DBus.so.5
#7  0x000000000040ccf6 in OrgKdeKdeconnectDeviceConversationsInterface::requestConversation (this=0x0, conversationID=5, start=0, end=10) at /home/simon/build/kdeconnect-kde/interfaces/conversationsinterface.h:62
#8  0x000000000040bf93 in ConversationModel::requestMoreMessages (this=0x3b738a0, howMany=@0x7fff99813c0c: 10) at /home/simon/src/kdeconnect-kde/smsapp/conversationmodel.cpp:88
#9  0x000000000040bbef in ConversationModel::setThreadId (this=0x3b738a0, threadId=@0x7fff99813cac: 5) at /home/simon/src/kdeconnect-kde/smsapp/conversationmodel.cpp:55
#10 0x0000000000413b4b in ConversationModel::qt_static_metacall (_o=0x3b738a0, _c=QMetaObject::WriteProperty, _id=0, _a=0x7fff99813ce0) at /home/simon/build/kdeconnect-kde/smsapp/kdeconnect-sms_autogen/EWIEGA46WW/moc_conversationmodel.cpp:133
#11 0x00007f3a4fa2bb4e in GenericBinding<2>::write(QV4::Value const&, bool, QFlags<QQmlPropertyData::WriteFlag>) () from /lib64/libQt5Qml.so.5
#12 0x00007f3a4fa2c88c in QQmlNonbindingBinding::doUpdate(QQmlJavaScriptExpression::DeleteWatcher const&, QFlags<QQmlPropertyData::WriteFlag>, QV4::Scope&) () from /lib64/libQt5Qml.so.5
#13 0x00007f3a4fa28d63 in QQmlBinding::update(QFlags<QQmlPropertyData::WriteFlag>) () from /lib64/libQt5Qml.so.5
#14 0x00007f3a4fa35e04 in QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&) () from /lib64/libQt5Qml.so.5
#15 0x00007f3a4f9aac31 in QQmlComponentPrivate::complete(QQmlEnginePrivate*, QQmlComponentPrivate::ConstructionState*) () from /lib64/libQt5Qml.so.5
#16 0x00007f3a4f9aad57 in QQmlComponentPrivate::completeCreate() () from /lib64/libQt5Qml.so.5
#17 0x00007f3a4f9abca6 in QQmlComponent::createObject(QQmlV4Function*) () from /lib64/libQt5Qml.so.5
#18 0x00007f3a4f9adbe4 in QQmlComponent::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /lib64/libQt5Qml.so.5
#19 0x00007f3a4f9ae053 in QQmlComponent::qt_metacall(QMetaObject::Call, int, void**) () from /lib64/libQt5Qml.so.5
#20 0x00007f3a4f9f4eb5 in QQmlObjectOrGadget::metacall(QMetaObject::Call, int, void**) const () from /lib64/libQt5Qml.so.5
#21 0x00007f3a4f95af6e in QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const () from /lib64/libQt5Qml.so.5
#22 0x00007f3a4f975a65 in QV4::Runtime::method_callProperty(QV4::ExecutionEngine*, QV4::Value*, int, QV4::Value*, int) () from /lib64/libQt5Qml.so.5
#23 0x00007f3a4f968d9a in QV4::Moth::VME::exec(QV4::FunctionObject const*, QV4::Value const*, QV4::Value const*, int) () from /lib64/libQt5Qml.so.5
#24 0x00007f3a4f975a65 in QV4::Runtime::method_callProperty(QV4::ExecutionEngine*, QV4::Value*, int, QV4::Value*, int) () from /lib64/libQt5Qml.so.5
#25 0x00007f3a4f968d9a in QV4::Moth::VME::exec(QV4::FunctionObject const*, QV4::Value const*, QV4::Value const*, int) () from /lib64/libQt5Qml.so.5
#26 0x00007f3a4f975a65 in QV4::Runtime::method_callProperty(QV4::ExecutionEngine*, QV4::Value*, int, QV4::Value*, int) () from /lib64/libQt5Qml.so.5
#27 0x00007f3a4f968d9a in QV4::Moth::VME::exec(QV4::FunctionObject const*, QV4::Value const*, QV4::Value const*, int) () from /lib64/libQt5Qml.so.5
#28 0x00007f3a4f971d9f in QV4::Runtime::method_callName(QV4::ExecutionEngine*, int, QV4::Value*, int) () from /lib64/libQt5Qml.so.5
#29 0x00007f3a4f968bf8 in QV4::Moth::VME::exec(QV4::FunctionObject const*, QV4::Value const*, QV4::Value const*, int) () from /lib64/libQt5Qml.so.5
#30 0x00007f3a4fa22caf in QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*) () from /lib64/libQt5Qml.so.5
#31 0x00007f3a4f9b4337 in QQmlBoundSignalExpression::evaluate(void**) () from /lib64/libQt5Qml.so.5
#32 0x00007f3a4f9b550b in QQmlBoundSignal_callback(QQmlNotifierEndpoint*, void**) () from /lib64/libQt5Qml.so.5
#33 0x00007f3a4f9ff783 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () from /lib64/libQt5Qml.so.5
#34 0x00007f3a4f9970c8 in QQmlData::signalEmitted(QAbstractDeclarativeData*, QObject*, int, void**) () from /lib64/libQt5Qml.so.5
#35 0x00007f3a4e210873 in QMetaObject::activate(QObject*, int, int, void**) () from /lib64/libQt5Core.so.5
#36 0x00007f3a2db39de8 in QQuickAbstractButtonPrivate::handleRelease(QPointF const&) () from /lib64/libQt5QuickTemplates2.so.5
#37 0x00007f3a2db51699 in QQuickControl::mouseReleaseEvent(QMouseEvent*) () from /lib64/libQt5QuickTemplates2.so.5
#38 0x00007f3a4ffce538 in QQuickItem::event(QEvent*) () from /lib64/libQt5Quick.so.5
#39 0x00007f3a4f276475 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#40 0x00007f3a4f27db90 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#41 0x00007f3a4e1e8c36 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#42 0x00007f3a4ffe6f9b in QQuickWindowPrivate::deliverMouseEvent(QQuickPointerMouseEvent*) () from /lib64/libQt5Quick.so.5
#43 0x00007f3a4ffe798f in QQuickWindowPrivate::deliverPointerEvent(QQuickPointerEvent*) () from /lib64/libQt5Quick.so.5
#44 0x00007f3a4ffe82bf in QQuickWindowPrivate::handleMouseEvent(QMouseEvent*) () from /lib64/libQt5Quick.so.5
#45 0x00007f3a4ed30165 in QWindow::event(QEvent*) () from /lib64/libQt5Gui.so.5
#46 0x00007f3a4ffe9e5f in QQuickWindow::event(QEvent*) () from /lib64/libQt5Quick.so.5
#47 0x00007f3a4f276475 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#48 0x00007f3a4f27db90 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#49 0x00007f3a4e1e8c36 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#50 0x00007f3a4ed23f43 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib64/libQt5Gui.so.5
#51 0x00007f3a4ed26085 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /lib64/libQt5Gui.so.5
#52 0x00007f3a4ed0146b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#53 0x00007f3a38a2a7cf in QPAEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5XcbQpa.so.5
#54 0x00007f3a4e1e7b7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#55 0x00007f3a4e1efc46 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#56 0x0000000000409140 in main (argc=1, argv=0x7fff998173d8) at /home/simon/src/kdeconnect-kde/smsapp/main.cpp:64

Reported using DrKonqi
Comment 1 Simon Redman 2018-12-13 21:13:16 UTC
See phabricator task T10184 (https://phabricator.kde.org/T10184)