Closed
Bug 1275398
Opened 9 years ago
Closed 8 years ago
Use shared memory to send images in IPCDataTransfer
Categories
(Core :: DOM: Core & HTML, defect, P1)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla50
Tracking | Status | |
---|---|---|
e10s | + | --- |
firefox47 | --- | wontfix |
firefox48 | --- | unaffected |
firefox49 | --- | fixed |
firefox50 | --- | fixed |
People
(Reporter: mccr8, Assigned: cyu)
References
Details
(Keywords: regression)
Attachments
(2 files)
32.79 KB,
patch
|
Details | Diff | Splinter Review | |
58 bytes,
text/x-review-board-request
|
nical
:
review+
lizzard
:
approval-mozilla-aurora+
|
Details |
Similar to bug 1272018, IPCDataTransfer (which is used by InvokeDragSession, SetClipboard and GetClipboard) can include image data encoded as an nsCString, in IPCDataTransferData. It would be good to use shared memory to transfer this image data, too.
Here's an example of a bug 1271102 crash in SetClipboard:
https://crash-stats.mozilla.com/report/index/dee8a5af-dcdb-4994-b505-5f5c42160524
Assignee | ||
Comment 1•9 years ago
|
||
This can be built on top of the patch for bug 1272018. I'll take it.
Assignee: nobody → cyu
Reporter | ||
Comment 2•9 years ago
|
||
Thanks for working on these two bugs!
Updated•9 years ago
|
Priority: -- → P1
Assignee | ||
Comment 3•9 years ago
|
||
Assignee | ||
Comment 4•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/56900/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/56900/
Attachment #8758676 -
Flags: review?(continuation)
Reporter | ||
Comment 5•9 years ago
|
||
Comment on attachment 8758676 [details]
MozReview Request: Bug 1275398 - Use shmem for sending image data in IPCDataTransfer. r?mccr8
This should also get reviewed by somebody who understands shmem IPC.
Attachment #8758676 -
Flags: review?(continuation)
Assignee | ||
Updated•9 years ago
|
Attachment #8758676 -
Flags: review?(nical.bugzilla)
Updated•9 years ago
|
Attachment #8758676 -
Flags: review?(nical.bugzilla) → review+
Comment 6•9 years ago
|
||
Comment on attachment 8758676 [details]
MozReview Request: Bug 1275398 - Use shmem for sending image data in IPCDataTransfer. r?mccr8
https://reviewboard.mozilla.org/r/56900/#review53930
Assignee | ||
Comment 7•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0b3715489009
Perm fails in GPU tests to be fixed.
Assignee | ||
Comment 8•8 years ago
|
||
Assignee | ||
Comment 9•8 years ago
|
||
GPU test failures don't seem relevant. But there is an assertion failure in https://treeherder.mozilla.org/logviewer.html#?job_id=22167395&repo=try#L4874:
03:06:13 INFO - 810 INFO TEST-START | dom/events/test/test_bug1264380.html
03:06:13 INFO - ++DOMWINDOW == 45 (0x11d971400) [pid = 2098] [serial = 45] [outer = 0x11aae2c00]
03:06:13 INFO - Assertion failure: mSegment (null segment), at /builds/slave/try-m64-d-00000000000000000000/build/src/ipc/glue/Shmem.cpp:288
that needs investigation.
Assignee | ||
Comment 10•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/4526172c1bda6e9985078bf1462a4f5d1d53dbe6
Bug 1275398 - Use shmem for sending image data in IPCDataTransfer. r=nical
Comment 11•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Reporter | ||
Updated•8 years ago
|
status-firefox47:
--- → wontfix
status-firefox48:
--- → affected
Comment 12•8 years ago
|
||
Cervantes, should we uplift this e10s fix from Nightly 50 to Aurora 49 or even Beta 48? We plan to enable e10s by default for some release channel users with Firefox 48.
Flags: needinfo?(cyu)
Assignee | ||
Comment 13•8 years ago
|
||
Since I think we should uplift this to 49 since for limitation of IPC message size. I would leave 48 as is since this isn't a must-have fix.
Flags: needinfo?(cyu)
Assignee | ||
Comment 14•8 years ago
|
||
Comment on attachment 8758676 [details]
MozReview Request: Bug 1275398 - Use shmem for sending image data in IPCDataTransfer. r?mccr8
Approval Request Comment
[Feature/regressing bug #]: No bug. e10s internals for transferring copy/paste data.
[User impact if declined]: Tab crashes if the user copies/pastes very large data. This is not usual, but when it happens the user has no workaround. Even restarting the browser doesn't help.
[Describe test coverage new/current, TreeHerder]: Landed/autotested on m-c.
[Risks and why]: Low to medium. We are not sure whether shared memory has higher chance failing in allocation. If it fails to allocate shared memory, the user will fail to paste the data. Restarting the browser may help if the allocation of large shared memory succeeds after restart.
[String/UUID change made/needed]: None.
Attachment #8758676 -
Flags: approval-mozilla-aurora?
Comment 15•8 years ago
|
||
If this is easily reproducible and testable we may want to uplift to 48 since this sounds like a bad crash. When you say even restarting the browser doesn't help, what do you mean? That trying to copy and paste again will just crash again every time, or is there some other result?
Can you suggest ways that QA can test the fix once it lands on aurora?
Flags: needinfo?(cyu)
Keywords: regression
Comment 16•8 years ago
|
||
Comment on attachment 8758676 [details]
MozReview Request: Bug 1275398 - Use shmem for sending image data in IPCDataTransfer. r?mccr8
Potential e10s crash fix, please uplift to aurora.
Attachment #8758676 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 17•8 years ago
|
||
bugherder uplift |
Assignee | ||
Comment 18•8 years ago
|
||
(In reply to Liz Henry (:lizzard) (needinfo? me) from comment #15)
> If this is easily reproducible and testable we may want to uplift to 48
> since this sounds like a bad crash. When you say even restarting the browser
> doesn't help, what do you mean? That trying to copy and paste again will
I said this because of the limit we put in e10s internals in bug 1271102. It placed a fixed limit of max message size of IPC message. On branches with that patch, the user will *always* crash in trying to paste data more that result in an IPC message > 256 MB (like a very large photo). Because the limit is fixed, the user has no way to work it around: none of restarting the browser, freeing more RAM from the system, etc. will work. It will just crash each time the user tries to paste this data. Bug 1271102 lands on 49 and 50 so this bug needs to land on 49 and 50 so copy/paste doesn't crash on very large data. 48 doesn't have bug 1271102 so it won't crash on copy/paste very large data. It's just a little slower than branches that has this patch.
> just crash again every time, or is there some other result?
> Can you suggest ways that QA can test the fix once it lands on aurora?
Tests should be done by copy/paste very large data, e.g. a photo > 256 MB or text of similar size.
Flags: needinfo?(cyu)
Comment 19•8 years ago
|
||
OK, thanks for the explanation!
You need to log in
before you can comment on or make changes to this bug.
Description
•