Reply
Thread Tools
Posts: 5 | Thanked: 5 times | Joined on Nov 2010
#11
@nicolai: I can confirm this behaviour. If I delete my mail account on my N900, I don't get the segmentation fault any more.

But I'm still not able to count the messages, as the method "countMessages" returns false, which means, that "the operation could not be initiated" (according to the documentation). As this comment is not really helpful, I don't have any clue yet, why the operation fails.
 
Posts: 5 | Thanked: 5 times | Joined on Nov 2010
#12
Executing the same code in the simulator seems to work. The method returns "true" in that case.
 
Posts: 5 | Thanked: 5 times | Joined on Nov 2010
#13
I've filed a bug report in the bug tracker of the project: http://bugreports.qt.nokia.com/browse/QTMOBILITY-771
 

The Following 4 Users Say Thank You to Customizer For This Useful Post:
Posts: 5 | Thanked: 5 times | Joined on Nov 2010
#14
There is not a lot of action on my bug report, yet. If you want to help speed up things a little bit, I think it would be a good idea to give this bug report a vote.

Last edited by Customizer; 2010-11-27 at 11:02.
 

The Following User Says Thank You to Customizer For This Useful Post:
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#15
 

The Following User Says Thank You to nicolai For This Useful Post:
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#16
I found the reason for this segmentation fault and wrote a comment
for this bug:

The segfault happens in modestengine_maemo.cpp in
QString ModestEngine::accountEmailProtocolAsString(const QMessageAccountId& accountId) const

After modest makes an auto-update it emits the folder_updated signal with two parameter,
accountid and folderid.
If you have an account with the name OVI, the two parameter are
OVIID_store and inbox
ModestEngine registers the folderUpdateSlot for this signal, but it expects the
parameter accountid as
OVIID not OVIID_store.
ModestEngine then, tries to read a gconfkey for this accountid
/apps/modest/accounts/OVIID_store/store_account. But this key doesn't exists.
(/apps/modest/accounts/OVIID/store_account does exist).
ModestEngine then calls
gchar* escaped_store_account_name = gconf_escape_key(store_account_name, strlen(store_account_name));
to make a gconf escaped string from this account name and strlen segfaults on this NULL pointer.

I am not sure if ModestEngine should translate the "store_account" OVIID_store to the
accountid OVIID or if modest should emit the right accountid.
I couldn't find any other maemo5 application listining on this folder_updated signal.

Nicolai
 

The Following 2 Users Say Thank You to nicolai For This Useful Post:
Posts: 401 | Thanked: 724 times | Joined on May 2010 @ Italy
#17
Does anyone found a workaround?
I have the same problem in FastSMS...
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:44.