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

A random innocent-looking e-mail totally crashes the mail app

asked 2017-02-18 21:33:48 +0300

ScumCoder gravatar image

A couple of days ago I received a spam e-mail from some store.

When I tried to open it, the e-mail app promptly crashed (turning into "pale cover").

When I re-launched the app and tried to open the mail again, the app instead showed me a completely empty list of incoming e-mails (which made me drop a brick) and a message "Problem with sync". (Thankfully the e-mails weren't actually deleted).

I uploaded the e-mail in a cloud storage.

edit retag flag offensive close delete

Comments

10

I can reproduce. I'll give a look next week. Just doing a backtrace make the issue in exchanging data from C++ and QML, so not very informative. There's no reason not to fix this easily though.

Damien Caliste ( 2017-02-18 23:17:43 +0300 )edit

1 Answer

Sort by » oldest newest most voted
13

answered 2017-02-20 02:26:03 +0300

updated 2017-02-23 21:55:30 +0300

This is an interesting bug, raising at least two bugs:

  • the email has an empty part (the text part of a multipart/alternative) and QMF is refusing to load it because the test of properly load is checking if the part is empty.
  • Because of this, when opening it, the Nemo plugin is instanciating an empty QMailMessage which is not associated to any account, thus giving it an accountId of 0. This, in turn, makes the email client crash when the EmailMessageListModel key is set to QMailMessageKey::NonMatchingKey().

I've submitted a MR in QMF to solve the first issue (which as a consequence avoid the crash).

The UI is still sensitive to setting accountId to an invalid one. This second issue is still eluding me. I think it's a Qt bug but I cannot find what is triggering it exactly besides setting the key() attribute of the EmailMessageListModel to NonMatchingKey().

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2017-02-18 21:33:48 +0300

Seen: 557 times

Last updated: Feb 23 '17