[Webkit-unassigned] [Bug 222712] REGRESSION (r272300): [iOS] ASSERTION FAILED: Unsafe to ref/deref from different threads under WebViewLayerFlushScheduler::layerFlushCallback
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 10 13:06:38 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=222712
--- Comment #6 from Antti Koivisto <koivisto at iki.fi> ---
We are in the main thread but isMainThread() is returning false. This then confuses the thread assertion in RefCountedBase where we do this:
void applyRefDerefThreadingCheck() const
{
#if ASSERT_ENABLED
if (hasOneRef()) {
// Likely an ownership transfer across threads that may be safe.
m_isOwnedByMainThread = isMainThread();
The reason isMainThread() returns false is that the web thread lock is not being held in the runloop observer callback
bool isMainThread()
{
return (isWebThread() || pthread_main_np()) && webThreadIsUninitializedOrLockedOrDisabled();
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210310/45f7e4cd/attachment.htm>
More information about the webkit-unassigned
mailing list