Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@dnfield
Copy link
Contributor

@dnfield dnfield commented Dec 12, 2021

Reverts #29665

Caused internal breakage documented in b/209838044

@gaaclarke fyi

@gaaclarke
Copy link
Member

The attached internal issue mentions a hang, not definitively called a deadlock, identifies this PR as a likely cause and doesn't provide a stack trace. That makes this difficult to debug.

The only new lock that they could have encountered would be the message_handlers_mutex_ ( https://github.com/flutter/engine/pull/29665/files#diff-b00031f74063b3c28cbca3abd33ed49b45caad5fb71c910028f1ddcdf84b9689R108 ).

That is used when setting the message handler and when handling messages. With this tiny amount of information I suspect they are getting self deadlock by setting message handlers when message handlers are called.

@gaaclarke
Copy link
Member

It's not self deadlock since the mutex is not held whilst calling handlers. I couldn't reproduce a deadlock that way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants