Closed
Bug 1022852
Opened 11 years ago
Closed 11 years ago
Fix test failures with Linux BasicCompositor OMTC enabled
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: cwiiis, Assigned: timdream)
References
Details
Attachments
(1 file, 2 obsolete files)
5.61 KB,
patch
|
timdream
:
review+
timdream
:
feedback+
|
Details | Diff | Splinter Review |
After applying the patches attached to the blocking bugs on bug 994541, enabling the Linux compositor causes some browser-element OOP tests to fail.
https://tbpl.mozilla.org/?tree=Try&rev=72522d622e02
Reporter | ||
Comment 1•11 years ago
|
||
Note, the failing tests pass on my local machine (consistently, I can't get them to fail), so not really sure what to do with this yet...
Reporter | ||
Comment 2•11 years ago
|
||
Reading through the bug that added this test, I'm not really any closer to a theory on why it would fail (and only on tbpl...)
Yuan, do you have any ideas here? I'm pretty stuck.
Flags: needinfo?(xyuan)
Comment 3•11 years ago
|
||
Chris, other than the failures covered by bug 1020162, which other tests are failing? I can try locally on my machine, see if I can reproduce.
Flags: needinfo?(chrislord.net)
Comment 4•11 years ago
|
||
Is the test expecting a particular order of messages that is not guaranteed?
Flags: needinfo?(chrislord.net)
Reporter | ||
Comment 5•11 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #3)
> Chris, other than the failures covered by bug 1020162, which other tests are
> failing? I can try locally on my machine, see if I can reproduce.
These are the only tests that are failing, except they are now consistently failing rather than intermittently failing. I'm not sure about ordering, perhaps it's an issue of not waiting long enough(?) My desktop machine is likely quite fast compared to the test machines.
Comment 6•11 years ago
|
||
Is the time the test already takes to run close to the limit?
Did the test pass with compositor without the patches from other bugs?
Perhaps choas mode might help in reproducing.
http://robert.ocallahan.org/2014/03/introducing-chaos-mode.html
Updated•11 years ago
|
Flags: needinfo?(xyuan)
Comment 7•11 years ago
|
||
In the test of browserElement_setInputMethodActive.js, we create one input frame and two im (input method) frames. The async message from the input frame is sent after that from the im frame, but is received before that from the im frame sometimes. The unexpected message ordering causes this bug.
@timdream, do you have resource to make a fix?
Flags: needinfo?(timdream)
Assignee | ||
Comment 8•11 years ago
|
||
I would love to take this but before commit to anything I would like to know the expectation first. If you are asking a fix for this week then I will not be able to deliver. I can probably schedule to do this next week.
To clarify, can you point out the right order to assert here if it's not 1->2->3->4->5->6?
http://dxr.mozilla.org/mozilla-central/source/dom/browser-element/mochitest/browserElement_SetInputMethodActive.js#163
Is it something like (1&2) -> (3&4) -> 5 -> 6?
Flags: needinfo?(timdream)
Assignee | ||
Comment 9•11 years ago
|
||
Maybe (1 & 2) -> (3 & 4 & 5) -> 6 since there are calls to setInputMethodActive() on (2) and (5)?
And how do I make sure the patch is correct?
Assignee | ||
Comment 10•11 years ago
|
||
Without waiting for discussion to continue and try to reproduce this on my machine, here is my untested patch. If this works we should take this.
Attachment #8440540 -
Flags: feedback?(xyuan)
Attachment #8440540 -
Flags: feedback?(chrislord.net)
Updated•11 years ago
|
Attachment #8440540 -
Attachment is patch: true
Comment 11•11 years ago
|
||
Comment on attachment 8440540 [details] [diff] [review]
WIP (untested)
Review of attachment 8440540 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/browser-element/mochitest/browserElement_SetInputMethodActive.js
@@ +189,5 @@
> +
> + break;
> + }
> +
> + if (gFrameMsgCounts.input !== 1 || gFrameMsgCounts.im0 !== 1) {
We should ensure gFrameMsgCounts.input <= 1. If we get gFrameMsgCounts.input == 2, the test fails.
@@ +224,2 @@
>
> + if (gFrameMsgCounts.input !== 2 ||
Similar to above.
Attachment #8440540 -
Flags: feedback?(xyuan) → feedback+
Comment 12•11 years ago
|
||
Tim, thanks. The logic is really complex. I hope we can find a way to simplify it.
Reporter | ||
Comment 13•11 years ago
|
||
The attached patch didn't seem to work:
https://tbpl.mozilla.org/?tree=Try&rev=f3e438dada90
Note, I had to apply it manually due to the Windows line-endings.
Reporter | ||
Comment 14•11 years ago
|
||
Comment on attachment 8440540 [details] [diff] [review]
WIP (untested)
Review of attachment 8440540 [details] [diff] [review]:
-----------------------------------------------------------------
Applying the patch results in timeouts and a different failure: https://tbpl.mozilla.org/?tree=Try&rev=f3e438dada90
Attachment #8440540 -
Flags: feedback?(chrislord.net) → feedback-
Assignee | ||
Comment 15•11 years ago
|
||
Hi Chris,
This is the updated patch. I can verify this works locally with m-c today and I have rebased it against bug 1020726.
I tried to push a try by apply your try commits, however there is a conflict so I was unable to do that. Would you mind rebase your patch and push everything to try again? Thanks.
Attachment #8440540 -
Attachment is obsolete: true
Attachment #8445715 -
Flags: feedback?(chrislord.net)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → timdream
Status: NEW → ASSIGNED
Reporter | ||
Comment 16•11 years ago
|
||
So it seems at some point, someone's introduced a pref that disables omtc specifically on tests? Seems like a bad idea to me... But I guess this failure no longer blocks turning on Linux OMTC in that case(?)
Try push with just Linux OMTC enabled: https://tbpl.mozilla.org/?tree=Try&rev=e5a2c8a1bb92
Try push with above + this patch: https://tbpl.mozilla.org/?tree=Try&rev=f2bc968e1653
Try push with above + OMTC enabled in tests: https://tbpl.mozilla.org/?tree=Try&rev=deb5c4337a19
Reporter | ||
Comment 17•11 years ago
|
||
Comment on attachment 8445715 [details] [diff] [review]
WIP (worked locally)
Review of attachment 8445715 [details] [diff] [review]:
-----------------------------------------------------------------
Looks promising, good work! Can you seek review so we can get this landed soon?
Attachment #8445715 -
Flags: feedback?(chrislord.net) → feedback+
Assignee | ||
Updated•11 years ago
|
Attachment #8445715 -
Flags: review?(xyuan)
Updated•11 years ago
|
Attachment #8445715 -
Flags: review?(xyuan) → review+
Assignee | ||
Comment 18•11 years ago
|
||
Attachment #8445715 -
Attachment is obsolete: true
Attachment #8447725 -
Flags: review+
Attachment #8447725 -
Flags: feedback+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 19•11 years ago
|
||
Keywords: checkin-needed
Comment 20•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in
before you can comment on or make changes to this bug.
Description
•