Hello,
I'm having a problem with the Recieving and SMS in Qt example. Whenever I run the example for the first time in a while (reboot does not always seems to fix the problem), it works as it should. However, if I close the application and restart it, nothing happens when I recieve an SMS.
Is there any reasonable explanation to this? The Qt Messaging initialization output is the same whenever it works and when it doesn't, and is posted below:
I'm running the code on an N900 with PR1.2 and libqtm-messaging 1:1.0.2-maemo1 installed. The application has been tested after either compiling in scratchbox (with the same libqtm-messaging version) or in MADDE using Nokia SDK 1.0 on Ubuntu.Code:TpSession::onAMReady TpSessionAccount::TpSessionAccount objectPath= "/org/freedesktop/Telepathy/Account/pecan/msn_2dpecan/******************" TpSessionAccount::TpSessionAccount objectPath= "/org/freedesktop/Telepathy/Account/gabble/jabber/******************" TpSessionAccount::TpSessionAccount objectPath= "/org/freedesktop/Telepathy/Account/ring/tel/ring" TpSessionAccount::TpSessionAccount objectPath= "/org/freedesktop/Telepathy/Account/gabble/jabber/******************" TpSessionAccount::TpSessionAccount objectPath= "/org/freedesktop/Telepathy/Account/gabble/jabber/******************" TpSessionAccount::TpSessionAccount objectPath= "/org/freedesktop/Telepathy/Account/spirit/skype/******************" TpSessionAccount::TpSessionAccount objectPath= "/org/freedesktop/Telepathy/Account/haze/msn/******************" TpSessionAccount::TpSessionAccount objectPath= "/org/freedesktop/Telepathy/Account/haze/facebook/******************" TpSessionAccount::TpSessionAccount objectPath= "/org/freedesktop/Telepathy/Account/butterfly/msn/******************" TpSessionAccount::onReady cmName= "pecan" haveConnection= no TpSession::onAccountReady:Account "pecan" is Ready sync= true waiting: "ring" TpSessionAccount::onReady cmName= "gabble" haveConnection= no TpSession::onAccountReady:Account "gabble" is Ready sync= true waiting: "ring" Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) TpSessionAccount::onReady cmName= "ring" haveConnection= notReady TpSessionAccount::onReady cmName= "gabble" haveConnection= no TpSession::onAccountReady:Account "gabble" is Ready sync= true waiting: "ring" TpSessionAccount::onReady cmName= "gabble" haveConnection= no TpSession::onAccountReady:Account "gabble" is Ready sync= true waiting: "ring" TpSessionAccount::onReady cmName= "spirit" haveConnection= no TpSession::onAccountReady:Account "spirit" is Ready sync= true waiting: "ring" TpSessionAccount::onReady cmName= "haze" haveConnection= no TpSession::onAccountReady:Account "haze" is Ready sync= true waiting: "ring" TpSessionAccount::onReady cmName= "haze" haveConnection= no TpSession::onAccountReady:Account "haze" is Ready sync= true waiting: "ring" TpSessionAccount::onReady cmName= "butterfly" haveConnection= no TpSession::onAccountReady:Account "butterfly" is Ready sync= true waiting: "ring" TpSessionAccount::onContactsConectionReady: connecting to Connection.Interface.NewChannels TpSessionAccount::onContactsConnectionReady "ring" TpSession::onAccountReady:Account "ring" is Ready sync= true waiting: "ring" sync eventloop exit ModestEngine::ModestEngine Starting to initialize ModestEngine::ModestEngine Connecting to Modest DBus Interface ModestEngine::ModestEngine Connected to Modest DBus Interface ModestEngine::ModestEngine Connecting to Qt Mobility Modest Plugin DBus Interface ModestEngine::ModestEngine Connected to Qt Mobility Modest Plugin DBus Interface ModestEngine::ModestEngine Initialized successfully
The problem is that the messageAdded function is not called when an SMS is recieved and the application is not running for the first time in a while.
I'm guessing that there could be some DBUS listening which is not working, but I have no idea how to test this. Testing the application in Qt simulator does not work either, due to the following error output (which I presume is unrelated):
I would be very grateful for any suggestions!Code:Messaging : ( 24926 ) Failed to execute query; error:"attempt to write a readonly database Unable to fetch row"; statement:"INSERT INTO mailaccountconfig (id,service,name,value) VALUES (1,'qtopiamailfile','servicetype','storage')" Failed to execute query; error:"attempt to write a readonly database Unable to fetch row"; statement:"INSERT INTO mailaccountconfig (id,service,name,value) VALUES (1,'qtopiamailfile','servicetype','storage')" Messaging : Could not execute query "updateAccount mailaccountconfig insert query" Messaging : 24926 Unable to updateAccount - code: 8 Unable to add missing storage configuration for account: 1 Messaging : Could not initialize content manager factory Application running Messaging : ( 24914 ) Failed to execute query; error:"attempt to write a readonly database Unable to fetch row"; statement:"INSERT INTO mailaccountconfig (id,service,name,value) VALUES (1,'qtopiamailfile','servicetype','storage')" Failed to execute query; error:"attempt to write a readonly database Unable to fetch row"; statement:"INSERT INTO mailaccountconfig (id,service,name,value) VALUES (1,'qtopiamailfile','servicetype','storage')" Messaging : Could not execute query "updateAccount mailaccountconfig insert query" Messaging : 24914 Unable to updateAccount - code: 8 Unable to add missing storage configuration for account: 1 Messaging : Could not initialize content manager factory Unable to add folder for: "Inbox" Unable to add folder for: "Outbox" Unable to add folder for: "Drafts" Unable to add folder for: "Sent" Unable to add folder for: "Trash"



