Crash in jolla-contacts

asked 2015-07-18 16:00:22 +0300

Glove93 gravatar image

updated 2015-07-21 09:39:44 +0300

heubergen gravatar image

I am experiencing crashes in jolla-contacts while performing a search using the "Search for contacts" field at the top of the screen. More precisely, depending on what I enter in the field, jolla-contact crashes or returns the result of the search. It is perfectly reproducible.

Here are the logs I was able to capture so far.

Launching jolla-contacts from the terminal:

$ jolla-contacts 
[D] QWaylandEglClientBufferIntegration::QWaylandEglClientBufferIntegration:62 - Using Wayland-EGL 
[W] QQmlJavaScriptExpression::evaluate:184 - QQmlExpression: Expression file:///usr/lib/qt5/qml/Sailfish/Contacts/ContactBrowser.qml:267:41 depends on non-NOTIFYable properties:
[W] QQmlJavaScriptExpression::evaluate:184 -     QQuickItem::data
[W] QQmlJavaScriptExpression::evaluate:184 -     QQuickItem::data
[W] QQmlJavaScriptExpression::evaluate:184 -     QQuickItem::data
[W] QQmlJavaScriptExpression::evaluate:184 - QQmlExpression: Expression file:///usr/lib/qt5/qml/Sailfish/Contacts/RecentContactsList.qml:26:13 depends on non-NOTIFYable properties:
[W] QQmlJavaScriptExpression::evaluate:184 -     CommHistory::RecentContactsModel_QML_80::limit
[W] unknown:421 - file:///usr/lib/qt5/qml/Sailfish/Contacts/ContactBrowser.qml:421:21: QML RecentContactsList: Binding loop detected for property "height"
[W] QQmlJavaScriptExpression::evaluate:184 - QQmlExpression: Expression file:///usr/lib/qt5/qml/Sailfish/Contacts/RecentContactsList.qml:26:13 depends on non-NOTIFYable properties:
[W] QQmlJavaScriptExpression::evaluate:184 -     CommHistory::RecentContactsModel_QML_80::limit
[W] CommHistoryDatabase::open:303 - Opened commhistory database: "/home/nemo/.local/share/commhistory/commhistory.db" 
[D] SeasideCache::startRequest:1522 - Starting favorites query at 591 ms 
[D] CommHistory::ContactResolverPrivate::checkIfResolved:218 - Resolved 20 events in 230 msec 
[D] SeasideCache::startRequest:1567 - Starting metadata query at 808 ms 
[W] unknown:54 - file:///usr/lib/qt5/qml/Sailfish/Silica/OpacityRampEffect.qml:54:21: Unable to assign [undefined] to QQuickItem*
[D] SeasideCache::applyPendingContactUpdates:2366 - Favorites queried in 991 ms 
[D] SeasideCache::startRequest:1577 - Starting online  query at 1225 ms 
[D] SeasideCache::applyPendingContactUpdates:2370 - All queried in 1558 ms 
[D] SeasideCache::applyPendingContactUpdates:2373 - Online queried in 1565 ms 

(app starts)
(type a known crash-producing value in the field)

[W] unknown:40 - file:///usr/lib/qt5/qml/Sailfish/Contacts/ContactItem.qml:40:9: QML Label: Binding loop detected for property "_elideText"
[W] unknown:40 - file:///usr/lib/qt5/qml/Sailfish/Contacts/ContactItem.qml:40:9: QML Label: Binding loop detected for property "_elideText"

Log from journalctl -f:

Jul 18 14:51:32 Jolla kernel: jolla-contacts: unhandled page fault (11) at 0x00000000, code 0x005
Jul 18 14:51:32 Jolla kernel: pgd = c5d48000
Jul 18 14:51:32 Jolla kernel: [00000000] *pgd=00000000
Jul 18 14:51:32 Jolla kernel: Jul 18 14:51:32 Jolla kernel: Pid: 26995, comm:       jolla-contacts
Jul 18 14:51:32 Jolla kernel: CPU: 0    Tainted: P        W  O  (3.4.106.20150416.1 #1)
Jul 18 14:51:32 Jolla kernel: PC is at 0x406f1c08
Jul 18 14:51:32 Jolla kernel: LR is at 0x40442fa5
Jul 18 14:51:32 Jolla kernel: pc : [<406f1c08>]    lr : [<40442fa5>]    psr: 600f0010
                              sp : bed36560  ip : 405268c8  fp : 00000000
Jul 18 14:51:32 Jolla kernel: r10: 00000000  r9 : bed365f0  r8 : 00000001
Jul 18 14:51:32 Jolla kernel: r7 : ffffffff  r6 : 4abeeea0  r5 : 00000000  r4 : 00000000
Jul 18 14:51:32 Jolla kernel: r3 : 00000000  r2 : 00000000  r1 : 4abeef84  r0 : bed366cc
Jul 18 14:51:32 Jolla kernel: Flags: nZCv  IRQs on  FIQs on  Mode USER_32  ISA ARM  Segment user
Jul 18 14:51:32 Jolla kernel: Control: 10c5787d  Table: 85f4806a  DAC: 00000015
Jul 18 14:51:32 Jolla kernel: [<c010b930>] (unwind_backtrace+0x0/0x11c) from [<c010f860>] (__do_user_fault+0x7c/0xc4)
Jul 18 14:51:32 Jolla kernel: [<c010f860>] (__do_user_fault+0x7c/0xc4) from [<c08ae268>] (do_page_fault+0x374/0x3c0)
Jul 18 14:51:32 Jolla kernel: [<c08ae268>] (do_page_fault+0x374/0x3c0) from [<c01002d4>] (do_DataAbort+0x134/0x1a8)
Jul 18 14:51:32 Jolla kernel: [<c01002d4>] (do_DataAbort+0x134/0x1a8) from [<c08aca94>] (__dabt_usr+0x34/0x40)
Jul 18 14:51:32 Jolla kernel: Exception stack(0xd6123fb0 to 0xd6123ff8)
Jul 18 14:51:32 Jolla kernel: 3fa0:                                     bed366cc 4abeef84 00000000 00000000
Jul 18 14:51:32 Jolla kernel: 3fc0: 00000000 00000000 4abeeea0 ffffffff 00000001 bed365f0 00000000 00000000
Jul 18 14:51:32 Jolla kernel: 3fe0: 405268c8 bed36560 40442fa5 406f1c08 600f0010 ffffffff
Jul 18 14:51:32 Jolla kernel: jolla-contacts(26995) send signal 11 to jolla-contacts(26995)
</c08aca94></c01002d4></c01002d4></c08ae268></c08ae268></c010f860></c010f860></c010b930>

I suspect I have characters in some of my contacts that jolla-contacts does not like, but I am not sure how to find which.

Any suggestion on how I can provide more debug info?

Thanks and best regards,

-Christian

edit retag flag offensive close delete

Comments

Hi Christian

Which sailfish version do you use right now?

heubergen ( 2015-07-18 21:54:49 +0300 )edit

Hi heubergen, Good point, I forgot to mention it: Sailfish OS 1.1.6.27 (Aaslakkajärvi)

Glove93 ( 2015-07-19 16:44:32 +0300 )edit

When you say "a known crash-producing value" for search, what are you typing in? Do you have any contacts which have that string in their name / nickname / email address?

To take it a step further, you can do: $ devel-su ssu ar mer-tools$ devel-su -p pkcon install gdb$ devel-su -p gdb jolla-contacts

and then reproduce the crash, then type "bt" into the gdb prompt to get a backtrace of the crash.

Thanks, Chris.

chris.adams ( 2015-07-21 05:50:39 +0300 )edit

Hello Chris,

"G" and "D" are known crash-producing values, and there are contacts with those letters. Thank you for the info for installing gdb, here is the backtrace:

$ gdb jolla-contacts
(...)
[D] SeasideCache::startRequest:1567 - Starting metadata query at 1136 ms
[W] unknown:54 - file:///usr/lib/qt5/qml/Sailfish/Silica/OpacityRampEffect.qml:54:21: Unable to assign [undefined] to QQuickItem*
[D] SeasideCache::applyPendingContactUpdates:2366 - Favorites queried in 1330 ms
[D] SeasideCache::startRequest:1577 - Starting online  query at 1457 ms
[D] SeasideCache::applyPendingContactUpdates:2370 - All queried in 1895 ms
[D] SeasideCache::applyPendingContactUpdates:2373 - Online queried in 1901 ms

(enter 'G' in search field)

[W] unknown:40 - file:///usr/lib/qt5/qml/Sailfish/Contacts/ContactItem.qml:40:9: QML Label: Binding loop detected for property "_elideText"
[W] unknown:40 - file:///usr/lib/qt5/qml/Sailfish/Contacts/ContactItem.qml:40:9: QML Label: Binding loop detected for property "_elideText"

Program received signal SIGSEGV, Segmentation fault.
0x403c6c08 in QTextLine::y() const () from /usr/lib/libQt5Gui.so.5
(gdb) bt
#0  0x403c6c08 in QTextLine::y() const () from /usr/lib/libQt5Gui.so.5
#1  0x40161fa4 in ?? () from /usr/lib/libQt5Quick.so.5
#2  0x40161fa4 in ?? () from /usr/lib/libQt5Quick.so.5
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Seems to show unfortunately limited info...

If I quickly enter "Ga", it does not crash and shows me the results.

Thank you, -Christian

Glove93 ( 2015-07-21 23:48:08 +0300 )edit

Any other suggestion to debug further?

Glove93 ( 2015-08-04 23:18:36 +0300 )edit