Closed
Bug 871852
Opened 13 years ago
Closed 13 years ago
[Email] Email sending fails silently when sending large (for an email) files (ex: 25 MB), No limit on max attachments size
Categories
(Firefox OS Graveyard :: Gaia::E-Mail, defect, P1)
Tracking
(b2g18 fixed, b2g18-v1.0.1 wontfix)
RESOLVED
FIXED
1.1 QE2 (6jun)
People
(Reporter: leo.bugzilla.gaia, Assigned: leo.bugzilla.gaia)
References
()
Details
(Keywords: late-l10n, Whiteboard: [TD-26557], c= , MiniWW)
Attachments
(4 files, 1 obsolete file)
1. Title : Email sending with large attachments around 25 MB is not working.
2. Precondition : Email should be working
3. Tester's Action: Go to Gallery select images(multiple) of size around 25 MB -> Share via Email -> Enter email address -> Send
4. Detailed Symptom (ENG.) :
a. Email did not sent and there is no fail popup
b. Email is not present in Outbox also
5. Expected :
a. Email should be sent successfully
b. There is should be a limit for adding attachments size. Please let us know your opinion on this.
c. If email could not able to send , it should show in Outbox.
6.Reproducibility: Y
1)Frequency Rate : 100%
7.Gaia Master/v1-train : Reproduced
8.Gaia Revision: 393b3f57822ae0f34055c6a6060f1433136bafa0
9.Personal email id: psingapati@gmail.com
Comment 1•13 years ago
|
||
Logs attached for sending email with images around 25MB size from Gallery app.
sending popup was shown continuously. Suddenly Home screen is displayed.
Email does not show either in sent mail or outbox and it did not receive at the recipient email. There is no failure alert also.
Please check
Comment 2•13 years ago
|
||
Hello Andrew,
Please check and let me know if you need any more information.
Thanks.
Flags: needinfo?(bugmail)
Updated•13 years ago
|
Target Milestone: --- → 1.1 QE2
Comment 3•13 years ago
|
||
It doesn't look like the out-of-memory killer logs to logcat, but based on your report and what is in the log it sounds like the e-mail app bloated up, all other processes got killed, then the e-mail app bloated further and got killed. (Running "adb shell dmesg" might get the data, however.)
The GonkMemoryPressure events and the entries that indicated the reload of the home screen and other pre-loaded processes is what I'm going on from the log.
That we die sending a 25 MB file is not terribly surprising. The file is going to suffer from bloat during the encoding process; the base64 rep will be 137% the size of the original, and both sets of memory will be alive at the same time. We have to send that data to the main thread from the worker (we don't currently transfer ownership because of node.js semantics we are matching), and then that has to get sent to the parent process from the child process. So that's about 136 MiB right there that probably happens faster than GC can reap it.
I filed bug 871897 on switching to a streaming implementation for mail sending, although this bug could just end up being about us adding an error message and refusing to add any attachment that causes us to cross a much, much lower threshold than 25 MB.
Flags: needinfo?(bugmail)
See Also: → 871897
Summary: [Email] Email sending with large attachments around 25 MB is not working. → [Email] Email app dies silently when sending large (for an email) files (ex: 25 MB)
Comment 4•13 years ago
|
||
So are we going to set threshold for the max attachment size?
If so , we may need to have the popup scenario also to implement this.
Please let us know your opinion on resolving this issue
Flags: needinfo?(bugmail)
Comment 5•13 years ago
|
||
Let's ask Rob MacDonald who seems to be replacing Casey Yee on e-mail UX.
Flags: needinfo?(bugmail) → needinfo?(rmacdonald)
Comment 6•13 years ago
|
||
Rob is out this week. Reassigning to Francis, just for this week.
Flags: needinfo?(rmacdonald)
Updated•13 years ago
|
Flags: needinfo?(fdjabri)
Comment 7•13 years ago
|
||
Issue with new feature, so blocking.
blocking-b2g: leo? → leo+
Summary: [Email] Email app dies silently when sending large (for an email) files (ex: 25 MB) → [Email] Email sending fails silently when sending large (for an email) files (ex: 25 MB)
Updated•13 years ago
|
Assignee: nobody → johu
Comment 8•13 years ago
|
||
And... assigning to Rob since this is now Leo+ and Francis is in Hungary for research.
Flags: needinfo?(fdjabri)
Comment 9•13 years ago
|
||
Stephany,
Currently, who will take a look at of this bug on UX??
Flags: needinfo?(swilkes)
Updated•13 years ago
|
Flags: needinfo?(rmacdonald)
Comment 10•13 years ago
|
||
I thought I'd flagged Rob two days ago and that does not seem to have actually happened. This is with Rob now and I've also emailed him about it so it doesn't get missed.
Flags: needinfo?(swilkes)
Updated•13 years ago
|
Whiteboard: [TD-26557] → [TD-26557], c=
Comment 11•13 years ago
|
||
Hi everyone and thanks for alerting me to this...
We'll need to use the confirmation dialog (https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/UX/Building_blocks/Confirmation).
As I see it, there are two scenarios for exceeding attachment limits. The user could attach a single file that's too large, or they could attach multiple files that add up to being too large.
In the case of a single file, the draft text, subject to review by Matej, is:
Attachment too large
----------------------
The selected attachment is too large to send with this message.
[OK]
In the case of photos, this dialog would appear immediately after the user selected the image, before the image preview. (For the flow, see https://mozilla.box.com/s/ie6x8zgm8902dveyb5xf pages 5-12) Tapping "OK" returns the user to the picker to allow them to select another file or cancel the attachment. Of course the file is not attached to the email.
In the case where the user selects multiple files, the proposed text is:
Attachments too large
----------------------
The total size of the selected attachments is too large to send with this message. Try selecting fewer files.
[OK]
Please flag me if you have any questions or concerns. And, Matej, I'll flag you for the text.
- Rob
Flags: needinfo?(rmacdonald) → needinfo?(Mnovak)
Comment 12•13 years ago
|
||
(In reply to Rob MacDonald [:robmac] from comment #11)
> selected the image, before the image preview. (For the flow, see
> https://mozilla.box.com/s/ie6x8zgm8902dveyb5xf pages 5-12) Tapping "OK"
This wants me to log in... can you change that setting?
In any event, the flow you are proposing sounds like it requires the implementor of the 'pick' activity to enforce size limits. Which is not necessarily a bad idea, but we can't really enforce that behaviour on pick implementors, so it would also need to be backstopped by the e-mail app itself. Which suggests that for a v1.1 stop-gap implementation we should only do it in the e-mail app itself.
Comment 13•13 years ago
|
||
Hi Johu,
I want to know, if you already started working on this issue. If not please let me know , can I steal this bug.
Thanks.
Flags: needinfo?(johu)
Comment 14•13 years ago
|
||
psingapati,
Yes, please. I am current stocking on another bug.
Flags: needinfo?(johu)
Summary: [Email] Email sending fails silently when sending large (for an email) files (ex: 25 MB) → [Email] Email sending fails silently when sending large (for an email) files (ex: 25 MB), No limit on max attachments size
Comment 15•13 years ago
|
||
Implementation is done as below.
1) Limited max attachment size to 5120000bytes (5MB)
2) When attaching from composer we can attach only one image at a time, so we check whether that total attachment size including the image does not exceed 5MB.
3) From gallery we can attach multiple files, the current implementation inserts the number of attachments that can be allowed in the composer and shows the alert to user.
Notes:
AFAIK gallery supports displaying of images max size 2.5 MB , so we would not get a scenario of single attachment exceeding the max limit. However as per suggested in the above comment #11 string locales are taken care for such case as well.
Please review
Attachment #753753 -
Flags: review?(bugmail)
Comment 16•13 years ago
|
||
Could we simplify the second one?
The selected attachments are too large to send with this message. Try selecting fewer files.
It makes the first half less clear, but it's then explained in the second part where it offers a solution.
Otherwise, looks good to me.
Flags: needinfo?(Mnovak)
Comment 17•13 years ago
|
||
Comment on attachment 753753 [details]
Pull Request pointer
Works well. Conditional r=asuth. Please address the following:
- Fix the lint errors related to syntax
- Please indent the object definition in the call to ConfirmDialog.show
- Please update the "compose-attchments-size-exceeded" string to be "The selected attachments are too large to send with this message. Try selecting fewer files." per Matej in comment 16.
Please let me know when the patch is updated and I can merge it for you.
Attachment #753753 -
Attachment mime type: text/plain → text/html
Attachment #753753 -
Flags: review?(bugmail) → review+
Comment 18•13 years ago
|
||
I did fix the issues mentioned in comment #17.
Please check the new commit.
Thanks.
Flags: needinfo?(bugmail)
Comment 19•13 years ago
|
||
New Pull request is raised as there were some more errors.
Attachment #753753 -
Attachment is obsolete: true
Attachment #754371 -
Flags: review?(bugmail)
Flags: needinfo?(bugmail)
Updated•13 years ago
|
Attachment #754371 -
Attachment mime type: text/plain → text/html
Comment 20•13 years ago
|
||
Please squash the commits with "git rebase -i" per gaia policy so I can merge.
Comment 21•13 years ago
|
||
squashed second commit on to the first, please check
Flags: needinfo?(bugmail)
Comment 22•13 years ago
|
||
(In reply to psingapati from comment #21)
> squashed second commit on to the first, please check
I think you may have forgotten to push the rebased commits over top of the existing commits using the "-f" flag for push. I did check the leob2g repo in case the pull request did not automatically update because you created 2 pull requests, but all I found was two branches (Bug_871852_Email_Composer_Max_Attachment_Size and Bug_871852_Email_Composer_Max_Attachments_Size) but they both had 2 commits. I think there's a #git channel on mozilla IRC if you need assistance or feel free to ping me when.
Flags: needinfo?(bugmail)
Updated•13 years ago
|
Attachment #754371 -
Flags: review?(bugmail) → review+
Comment 23•13 years ago
|
||
landed on gaia/master:
https://github.com/mozilla-b2g/gaia/pull/10013
https://github.com/mozilla-b2g/gaia/commit/07b567210f493d39a1b02172db23ad8c184b1bef
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
status-b2g18:
--- → affected
status-b2g18-v1.0.1:
--- → wontfix
Comment 24•13 years ago
|
||
+composer-attachment-large=Attachment too large
+composer-attachments-large=Attachments too large
+compose-attchment-size-exceeded=The selected attachment is too large to send with this message.
+compose-attchments-size-exceeded=The selected attachments are too large to send with this message. Try selecting fewer files.
Attachment is misspelled in the last two strings' names, but ignoring that: is this the right way to manage plural forms?
See for example: https://github.com/mozilla-b2g/gaia/blob/07b567210f493d39a1b02172db23ad8c184b1bef/apps/email/locales/email.en-US.properties#L176
Updated•13 years ago
|
Whiteboard: [TD-26557], c= → [TD-26557], c= , MiniWW
Comment 25•13 years ago
|
||
Oops, didn't notice the id typos, but as you say, it doesn't actually matter since it's an opaque id; when we next change the content or context of the strings we can correct the typo since we'll need to change the id anyways.
Unless I'm misunderstanding, we only need to use the plural forms when the number is placed in the string because various languages have different rules for different numbers. In this case, we only have the one/many cases so there is no variability to require additional agreement.
Whiteboard: [TD-26557], c= , MiniWW → [TD-26557], c=
Updated•13 years ago
|
Whiteboard: [TD-26557], c= → [TD-26557], c= , MiniWW
Comment 26•13 years ago
|
||
Uplifted 07b567210f493d39a1b02172db23ad8c184b1bef to:
v1-train: d4ef92e97ee55e924726e07ea080da3808119ad7
Comment 27•13 years ago
|
||
(In reply to Andrew Sutherland (:asuth) from comment #25)
> Oops, didn't notice the id typos, but as you say, it doesn't actually matter
> since it's an opaque id; when we next change the content or context of the
> strings we can correct the typo since we'll need to change the id anyways.
>
> Unless I'm misunderstanding, we only need to use the plural forms when the
> number is placed in the string because various languages have different
> rules for different numbers. In this case, we only have the one/many cases
> so there is no variability to require additional agreement.
In fact, using the plural infrastructure without the number would be a bug, as there are languages that use the same grammatical form for 1 and 11. So you get "fix the error" when passing in 11, which is wrong.
Updated•13 years ago
|
Flags: in-moztrap?
Comment 29•13 years ago
|
||
Bug 880630 which is a duplicate of this bug requested tef?; I am propagating the request to this bug since this fix would need to be uplifted and changing the wontfix to affected.
blocking-b2g: leo+ → tef?
Comment 30•13 years ago
|
||
Daniel, can you make a call about uplift here? Thanks.
Flags: needinfo?(dcoloma)
Comment 31•13 years ago
|
||
It would be good to quantify this in terms of a real use case, how many pictures do I need to attach in order to reach the limit that makes sending silently fail?
Flags: needinfo?(dcoloma) → needinfo?(leo.bugzilla.gaia)
| Assignee | ||
Comment 32•13 years ago
|
||
Hi Daniel,
We restricted the Max attachment size to 5MB. Please see the comment #15 for more information.
If you have a file around 1MB, with 6 attachments you can see the alert.
Thanks
Flags: needinfo?(leo.bugzilla.gaia)
Comment 33•13 years ago
|
||
Moving to leo? since TAs are behind us for 1.0.1 partners and tef? is being shut down.
blocking-b2g: tef? → leo?
Comment 34•13 years ago
|
||
(In reply to Alex Keybl [:akeybl] from comment #33)
> Moving to leo? since TAs are behind us for 1.0.1 partners and tef? is being
> shut down.
Clearing leo? since leo (v1.1) already has the limit of 5 megs and I am actually fixing the mail sending process to use streaming in bug 871897.
blocking-b2g: leo? → ---
Updated•13 years ago
|
Comment 35•13 years ago
|
||
Here are the cases created for this bug.
https://moztrap.mozilla.org/manage/cases/?pagenumber=1&pagesize=20&sortfield=created_on&sortdirection=desc&filter-id=9394
https://moztrap.mozilla.org/manage/cases/?pagenumber=1&pagesize=20&sortfield=created_on&sortdirection=desc&filter-id=9397
Flags: in-moztrap? → in-moztrap+
Comment 36•13 years ago
|
||
Comment 37•13 years ago
|
||
Email exit automatically when sending a mail with about 4M attachments on V184
Comment 38•13 years ago
|
||
Dear mozilla, reopen it according to comment#36 & comment#37.
Status: RESOLVED → REOPENED
blocking-b2g: --- → leo?
Resolution: FIXED → ---
Comment 39•13 years ago
|
||
(In reply to buri.blff from comment #37)
> Created attachment 791159 [details]
> log
>
> Email exit automatically when sending a mail with about 4M attachments on
> V184
Please open a new bug as this seems to be a new issue. Thank you.
Status: REOPENED → RESOLVED
blocking-b2g: leo? → ---
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•