New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 771842 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug-Regression



Sign in to add a comment

mojo WaitForIncomingMessage asserts on deadlines not 0 or not infinite

Reported by artyo...@gmail.com, Oct 5 2017

Issue description

Steps to reproduce the problem:
Specify mojo deadline non 0 or non infinite.

What is the expected behavior?
If you try to specify the deadline for mojo::WaitForIncomingMessage (see connector.cc/.h) then it will throw an assert. This is the code which does it:
    // TODO(rockot): Use a timed Wait here. Nobody uses anything but 0 or
    // INDEFINITE deadlines at present, so we only support those.
    DCHECK(deadline == 0 || deadline == MOJO_DEADLINE_INDEFINITE);

What went wrong?
Assert. It definitely worked in M57, for some reasons in M61 (maybe earlier) this functionality was removed (w/o actually removing the parameter for WaitForIncomingMessage!). 

Did this work before? Yes M57

Does this work in other browsers? Yes

Chrome version: 61.0.3163.100  Channel: dev
OS Version: 10.0
Flash Version: 

I rely on this functionality to avoid deadlock in certain situations.
 

Comment 1 by artyo...@gmail.com, Oct 5 2017

Addendum: I use WaitForIncomingMethodCall which calls the mojo::Connector::WaitForIncomingMessage.
Cc: msrchandra@chromium.org nyerramilli@chromium.org sandeepkumars@chromium.org
Components: Internals>Mojo
Labels: Needs-triage-Mobile Triaged-Mobile Needs-Feedback
@artyom17: Thanks for the report!!

Could you please help us with the sample test file or .apk file to check the issue from our end?

Thanks!!

Comment 3 by artyo...@gmail.com, Oct 5 2017

You can easily repro it by modifying any call to WaitForIncomingMethodCall by providing non-zero-non-infinite deadline, like this (this one lives in VRDisplay.cpp):

submit_frame_client_binding_.WaitForIncomingMethodCall(MojoDeadline(100000))
Project Member

Comment 4 by sheriffbot@chromium.org, Oct 5 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "sandeepkumars@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: roc...@chromium.org
Thanks for the feedback!

Hi, Ken: What do you think about this? If it takes some work to support, I would suggest we remove the deadline parameter to avoid confusion, now that no one in the chromium reop is using it.

I agree, we should remove it.
Friendly ping. Is there any update on this issue.
Components: -Internals>Mojo Internals>Mojo>SystemsAPI
Labels: -OS-Android -Needs-triage-Mobile -Triaged-Mobile
Status: Available (was: Unconfirmed)
Removing what I assume are labels which inspired comment #7. I don't think this needs any triage, as it seems like a minor developer quality of life issue.
Cc: -roc...@chromium.org rockot@google.com

Sign in to add a comment