We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

help-request call history never ends loading [answered]

asked 2015-06-11 22:28:28 +0200

llg179 gravatar image

updated 2015-06-17 23:44:57 +0200

Hi!

About product reports sailfish os version 1.1.2.16
I moved /home/.local/share/ to sdcard and created a link with ln -s . It worked for a while then I realized that calendar events disappeared.
Then I executed journalctrl -f which revealed that access to /home/nemo/.local/share/system/privileged/: Permission denied (d---rwx--- 9 nemo nemo ... )
Then I changed privileged folder's permission (drwxrwx...) and calendar's events came back.
Then I got a call from a contact (stored number as 003670xxx but appeared as +3670xxx) and I was wondering why it did not recognize it. Then I opened call history but it is just loading - at least a busy indicator circle is displayed without any items. This time journalctrl -f shows:

 
 22:41:25 Jolla lipstick[1001]: [W] unknown:278 - file:///usr/share/lipstick-jolla-home-qt5/switcher/Switcher.qml:278:35: Unable to assign [undefined] to QQmlComponent*
 22:41:25 Jolla lipstick[1001]: [W] DeclarativeWindow::_setAllowedOrientations:215 - Invalid allowedOrientations value: 0
 22:41:28 Jolla tart[1241]: [W] QSqlQuery::prepare:950 - QSqlQuery::prepare: database not open
 22:41:28 Jolla tart[1241]: [W] CommHistoryDatabase::prepare:340 - Failed to prepare query 
 22:41:28 Jolla tart[1241]: [W] CommHistoryDatabase::prepare:341 - QSqlError(-1, "", "") 
 22:41:28 Jolla tart[1241]: [W] CommHistoryDatabase::prepare:342 - UPDATE Events SET isRead=1 WHERE type=:eventType AND isRead=0 
 22:41:28 Jolla tart[1241]: [W] CommHistory::DatabaseIO::markAsReadAll:1127 - Failed to execute query 
 22:41:28 Jolla tart[1241]: [W] CommHistory::DatabaseIO::markAsReadAll:1128 - QSqlError(-1, "Driver not loaded", "Driver not loaded") 
 22:41:28 Jolla tart[1241]: [W] CommHistory::DatabaseIO::markAsReadAll:1129 - "" 
 22:41:28 Jolla tart[1241]: [W] CommHistory::CallModel::markAllRead:944 - bool CommHistory::CallModel::markAllRead() Failed to delete events 

Please help, what should I check?

Thanks in advance

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by llg179
close date 2015-06-19 02:45:42.297392

Comments

I blame myself for copying the folder instead of moving... or at least copy with preserving permissions...
I have received list of folders from Kimmoli and changed owner of folders to the listed ones but issue remains.
Following command was used to list folder access levels:
find /home/nemo/.local/share/ -ls | grep -v "nemo *nemo"

After executing following command as nemo the call history was loaded:
systemctl --user restart voicecall-ui-prestart.service

After executing following command as nemo the sms send-receive worked again:
systemctl --user restart commhistoryd.service

and the voicecall-ui process could open following DBs:

ls -l /proc/id/fd/
system/privileged/Contacts/qtcontacts-sqlite/contacts.db
system/privileged/Contacts/qtcontacts-sqlite/contacts.db-wal
system/privileged/Contacts/qtcontacts-sqlite/contacts.db-shm
commhistory/commhistory.db
commhistory/commhistory.db-wal
commhistory/commhistory.db-shm


lsof contacts.db shows

  • /usr/bin/lipstick -plugin evdevtouch:/dev/input/event0:rotate=0 -plugin evdevkeyboard:keymap=/usr/share/qt5/keymaps/boston.qmap --systemd
  • /usr/bin/commhistoryd
  • /usr/bin/contactsd
  • /usr/bin/voicecall-ui -prestart

  • llg179 ( 2015-06-18 01:42:08 +0200 )edit

    1 Answer

    Sort by » oldest newest most voted
    0

    answered 2015-06-19 02:44:44 +0200

    llg179 gravatar image

    updated 2015-06-20 23:29:28 +0200

    After creating a backup from /home/nemo/.local/share/ I deleted the folder then rebooted the phone. Some of the folders were recreated after startup then I copied back the old database files and rebooted again. Now it works.

    I moved /home/nemo/.local/share to sdcard and created a link to it with ln -s then rebooted the phone then call history did not work again. Then I moved back to its original place then reboot then worked. Somehow linked /home/nemo/.local/share folder with ln -s does not work properly with commhistory database.
    Restarting the service made it work.

    The sdcard is initialized later than the application:

    [root@Jolla user]# systemctl status mount-sd@mmcblk1p1.service    
    mount-sd@mmcblk1p1.service - Handle sdcard
       Loaded: loaded (/lib/systemd/system/mount-sd@.service; static)
       Active: active (exited) since Fri 2015-06-19 14:36:41 CEST; 6h ago
      Process: 1592 ExecStart=/usr/sbin/mount-sd.sh add %i (code=exited, status=0/SUCCESS)
     Main PID: 1592 (code=exited, status=0/SUCCESS)
    
    Jun 19 14:36:08 Jolla systemd[1]: Starting Handle sdcard...
    Jun 19 14:36:08 Jolla mount-sd[1650]: Called to add mmcblk1p1
    Jun 19 14:36:24 Jolla mount-sd[1698]: Waiting 16 seconds for tracker
    Jun 19 14:36:41 Jolla systemd[1]: Started Handle sdcard.
    
    [root@Jolla user]# ps -ef | grep voicecall-ui  | grep -v grep
    nemo      1224  1206  0 14:35 ?        00:00:14 /usr/bin/voicecall-ui -prestart 
    nemo      1228   825  0 14:35 ?        00:00:00 /usr/bin/invoker -o -s --type=silica-qt5 /usr/bin/voicecall-ui -prestart
    
    

    Another threads:

  • Sd card mounts slowly
  • Make sdcard initialization faster

  • edit flag offensive delete publish link more

    Question tools

    Follow
    1 follower

    Stats

    Asked: 2015-06-11 22:28:28 +0200

    Seen: 291 times

    Last updated: Jun 20 '15