Unable to open contacts app

REPRODUCIBILITY: unknown. Stuck in problem
OS VERSION: 4.6.0.15
HARDWARE: Xperia 10II
UI LANGUAGE: German
REGRESSION: unknown

DESCRIPTION:

Unable to start contacts app. Also not posible if all CardDav sync accounts are disabled.
Accessing local contacts within phone app is possible. Enabled CardDav accounts do not show up in phone app.

PRECONDITIONS:

STEPS TO REPRODUCE:

Trying to get CardDav syncing to work again. Therefore disabled, reenablded sync accounts multiple times. Deleted one account and recreated it.

EXPECTED RESULT:

Active accounts should sync, constacts from disabled accounts should not be shown in list.
In any case, the contacts app should open.

ACTUAL RESULT:

Contacts app does starts with a blank screen. After some seconds, a popup about unresponsive app is shown. No matter how long I wait (one hour), the startup hangs forever.

How and which logs needs to be provided for further investigation?

MODIFICATIONS:

ADDITIONAL INFORMATION:

Also tried removing all contacts from app stetting via pull menu. This shows a message, that no contacts were deleted. Also there seem to be some local contacts which are shown in the phone app.

Did you recently update the device (using an OTA update)?

What do you mean by “using OTA update”? Yes, I updated to 4.6.0.15 recently, but contacts app opend afterwords.
There was a problem with dav syncing for some month now. So I tried to dis/reanbling it multiple times. Also recreated one carddav account. Don’t know which was my last action, but suddenly I was no longer able to open the contacts app at all.

How did you updated your phone? OTA means Over-the-Air and signifies you have a valid Sailfish license and used the user-interface instead of sfos-upgrade.

The reason I asked is that updates sometimes fail to update everything, and some apps not operating correctly is a typical indicator.

But you say it worked and stopped working soon after without an update in between it’s something else.

Apart from adding a dav account, did you install any third-party (e.g. openrepos) software before it broke?

1 Like

I’ve done the update 4.6.0.15 via the GUI updater in settings menu.

@pherjung In my opinion updating via CLI or sfos-upgrade is also OTA. Therefore your qustion was unclear to me. May be using a usb connection to flash an image would not be OTA. Don’t know if it is possible to update from SD-card, but this would not be OTA either.
I have a valid Licence and logged into the account.

@nephros I think there were no installations in the days before the problem occured.

Is there a log for contacts app? Or is it possible to start it from terminal to get any additional information?

Try

devel-su -p jolla-contacts

(mind the -p !)

According to the logs, it looks like an update problem? Some libraries seem to be missing…

[D] unknown:0 - Using Wayland-EGL
library "libui_compat_layer.so" not found
library "libGLESv2_adreno.so" not found
library "eglSubDriverAndroid.so" not found
[W] CommHistoryDatabase::open:306 - Opened commhistory database: "/home
/defaultuser/.local/share/commhistory/commhistory.db"
[D] unknown:0 - Starting favorites query at 659 ms
[D] unknown:0 - Starting metadata query at 1280 ms
[D] unknown:0 - Favorites queried in 1310 ms
[D] unknown:0 - All queried in 1344 ms

No output after that, hangs forever.

Nah, that output looks okay actually.
Those missing lib warnings are normal.

Anybody more ideas? I’m still very limited to call anybody when not at home.

Is there way to clear/remove the whole database from cli?
Can I purge (should remove all configurations) contacts packages to get back functionality?

have you tried to reinstall the same Sailfish version from the command line?

devel-su
ssu re 4.X.0.XX (your version)
ssu ur
version --dup

it should reinstall all the stock packages from this version, when i am correct…

Nope, this only installs missing packages and updates outdated ones.

BTW, sfos-upgrade --verify does exactly that (i.e. it uses above command sequence) after its usual upgrade-checks and eliminates the danger of mistyping the version number (which may have dire consequences).

1 Like

Thanks for the clarification, @olf ! I was not sure about the option --verify

Thanks for your suggestion. Tried it, and it did not change anything. But as olf pointed out, this is expected, because the commands do not reinstall contacts app. Also I think it is necessery to remove also settings and database. App it self is in place, because I’m able to start it.
I think something in its database is messed up, because of fiddling arround with the carddav accounts.

I cant remember where the contacts database ist stored, but it was mentioned somewhere here in forum.

The db is here:

~/.local/share/system/privileged/Contacts/qtcontacts-sqlite

You need privileged access to see it, so
devel-su -p.

AFAICS there are three apps using it, jolla-contacts, jolla-messages, and voicecall-ui.

It’s likely one of the sync plugins (buteo) will also access it when that’s running.

Unfortunately I have no idea how to debug or investigate anything here, except maybe the sync process as described at

1 Like