I am trying to use accounts-qt library to create an account from my application. I don't want to mess up with the accounts.db file on my device, so I am using scratchbox HARMATTAN_X86 target. But this simple code fails to execute in scratchbox.
The error when I execute the binary isCode:#include <Accounts/Manager> #include <QDebug> using namespace Accounts; int main(int argc, char *argv[]) { Manager mgr; }
I have tried deleting accounts.db and accounts.db-wal in /home/user/.account to "unlock" the DB. But it didn't help. I am running the binary as user and user has rw on both files. I am not sure which process is locking the files and how to unlock them. Any suggestions?Code:vicar-contacts-plugin[20589]: GLIB WARNING ** default - Error initializing DB: unable to open database file Manager could not be created. DB is locked vicar-contacts-plugin[20589]: GLIB WARNING ** GLib-GObject - invalid (NULL) pointer instance vicar-contacts-plugin[20589]: GLIB CRITICAL ** GLib-GObject - g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed vicar-contacts-plugin[20589]: GLIB WARNING ** GLib-GObject - invalid (NULL) pointer instance vicar-contacts-plugin[20589]: GLIB CRITICAL ** GLib-GObject - g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed vicar-contacts-plugin[20589]: GLIB WARNING ** GLib-GObject - invalid (NULL) pointer instance vicar-contacts-plugin[20589]: GLIB CRITICAL ** GLib-GObject - g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed vicar-contacts-plugin[20589]: GLIB WARNING ** GLib-GObject - invalid (NULL) pointer instance vicar-contacts-plugin[20589]: GLIB CRITICAL ** GLib-GObject - g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed vicar-contacts-plugin[20589]: GLIB CRITICAL ** GLib-GObject - g_object_unref: assertion `G_IS_OBJECT (object)' failed

Reply With Quote

