WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 249117
279646
WebKit occasionally crashes while reestablishing the socket connection.
https://bugs.webkit.org/show_bug.cgi?id=279646
Summary
WebKit occasionally crashes while reestablishing the socket connection.
Ethan Wu
Reported
2024-09-12 23:16:23 PDT
Created
attachment 472543
[details]
crash file We are currently developing our own web application based on WKWebview, but when we try to re-establish the socket connection, we find that WKWebview occasionally displays a white screen. When we use the locally compiled webkit, we find that the white screen is caused by a crash of webkit. The attachment is the crash file. Please help find the specific cause. Thank you!
Attachments
crash file
(59.00 KB, text/plain)
2024-09-12 23:16 PDT
,
Ethan Wu
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2024-09-13 09:52:11 PDT
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.apple.WebCore 0x32e1fdb84 WTFCrashWithInfo(int, char const*, char const*, int) 1 com.apple.WebCore 0x331108ae8 WebCore::RenderLayerCompositor::computeAncestorClippingStack(WebCore::RenderLayer const&, WebCore::RenderLayer const*) const::$_89::operator()(WebCore::RenderLayer const&, WebCore::RenderLayer const&, WebCore::ShouldRespectOverflowClip) const 2 com.apple.WebCore 0x331108670 WebCore::RenderLayerCompositor::computeAncestorClippingStack(WebCore::RenderLayer const&, WebCore::RenderLayer const*) const::$_61::operator()(WebCore::RenderLayer const&, bool, bool) const 3 com.apple.WebCore 0x3310d7ddc WebCore::AncestorTraversal WebCore::traverseAncestorLayers<WebCore::RenderLayerCompositor::computeAncestorClippingStack(WebCore::RenderLayer const&, WebCore::RenderLayer const*) const::$_61>(WebCore::RenderLayer const&, WebCore::RenderLayerCompositor::computeAncestorClippingStack(WebCore::RenderLayer const&, WebCore::RenderLayer const*) const::$_61&&) 4 com.apple.WebCore 0x3310d7cac WebCore::RenderLayerCompositor::computeAncestorClippingStack(WebCore::RenderLayer const&, WebCore::RenderLayer const*) const 5 com.apple.WebCore 0x3310bb4d8 WebCore::RenderLayerCompositor::updateAncestorClippingStack(WebCore::RenderLayer const&, WebCore::RenderLayer const*) const 6 com.apple.WebCore 0x3310acae8 WebCore::RenderLayerBacking::updateAncestorClipping(bool, WebCore::RenderLayer const*) 7 com.apple.WebCore 0x3310b2310 WebCore::RenderLayerBacking::updateConfiguration(WebCore::RenderLayer const*) 8 com.apple.WebCore 0x3310c9e60 WebCore::RenderLayerCompositor::updateBackingAndHierarchy(WebCore::RenderLayer&, WTF::Vector<WTF::Ref<WebCore::GraphicsLayer, WTF::RawPtrTraits<WebCore::GraphicsLayer>, WTF::DefaultRefDerefTraits<WebCore::GraphicsLayer>>, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, WebCore::RenderLayerCompositor::UpdateBackingTraversalState&, WebCore::ScrollingTreeState&, WTF::OptionSet<WebCore::RenderLayerCompositor::UpdateLevel>) 9 com.apple.WebCore 0x3310ca3a8 WebCore::RenderLayerCompositor::updateBackingAndHierarchy(WebCore::RenderLayer&, WTF::Vector<WTF::Ref<WebCore::GraphicsLayer, WTF::RawPtrTraits<WebCore::GraphicsLayer>, WTF::DefaultRefDerefTraits<WebCore::GraphicsLayer>>, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, WebCore::RenderLayerCompositor::UpdateBackingTraversalState&, WebCore::ScrollingTreeState&, WTF::OptionSet<WebCore::RenderLayerCompositor::UpdateLevel>) 10 com.apple.WebCore 0x3310ca3a8 WebCore::RenderLayerCompositor::updateBackingAndHierarchy(WebCore::RenderLayer&, WTF::Vector<WTF::Ref<WebCore::GraphicsLayer, WTF::RawPtrTraits<WebCore::GraphicsLayer>, WTF::DefaultRefDerefTraits<WebCore::GraphicsLayer>>, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, WebCore::RenderLayerCompositor::UpdateBackingTraversalState&, WebCore::ScrollingTreeState&, WTF::OptionSet<WebCore::RenderLayerCompositor::UpdateLevel>) 11 com.apple.WebCore 0x3310ca3a8 WebCore::RenderLayerCompositor::updateBackingAndHierarchy(WebCore::RenderLayer&, WTF::Vector<WTF::Ref<WebCore::GraphicsLayer, WTF::RawPtrTraits<WebCore::GraphicsLayer>, WTF::DefaultRefDerefTraits<WebCore::GraphicsLayer>>, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, WebCore::RenderLayerCompositor::UpdateBackingTraversalState&, WebCore::ScrollingTreeState&, WTF::OptionSet<WebCore::RenderLayerCompositor::UpdateLevel>) 12 com.apple.WebCore 0x3310ca3a8 WebCore::RenderLayerCompositor::updateBackingAndHierarchy(WebCore::RenderLayer&, WTF::Vector<WTF::Ref<WebCore::GraphicsLayer, WTF::RawPtrTraits<WebCore::GraphicsLayer>, WTF::DefaultRefDerefTraits<WebCore::GraphicsLayer>>, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, WebCore::RenderLayerCompositor::UpdateBackingTraversalState&, WebCore::ScrollingTreeState&, WTF::OptionSet<WebCore::RenderLayerCompositor::UpdateLevel>) 13 com.apple.WebCore 0x3310ca3a8 WebCore::RenderLayerCompositor::updateBackingAndHierarchy(WebCore::RenderLayer&, WTF::Vector<WTF::Ref<WebCore::GraphicsLayer, WTF::RawPtrTraits<WebCore::GraphicsLayer>, WTF::DefaultRefDerefTraits<WebCore::GraphicsLayer>>, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, WebCore::RenderLayerCompositor::UpdateBackingTraversalState&, WebCore::ScrollingTreeState&, WTF::OptionSet<WebCore::RenderLayerCompositor::UpdateLevel>) 14 com.apple.WebCore 0x3310ca3a8 WebCore::RenderLayerCompositor::updateBackingAndHierarchy(WebCore::RenderLayer&, WTF::Vector<WTF::Ref<WebCore::GraphicsLayer, WTF::RawPtrTraits<WebCore::GraphicsLayer>, WTF::DefaultRefDerefTraits<WebCore::GraphicsLayer>>, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, WebCore::RenderLayerCompositor::UpdateBackingTraversalState&, WebCore::ScrollingTreeState&, WTF::OptionSet<WebCore::RenderLayerCompositor::UpdateLevel>) 15 com.apple.WebCore 0x3310c73f0 WebCore::RenderLayerCompositor::updateCompositingLayers(WebCore::CompositingUpdateType, WebCore::RenderLayer*) 16 com.apple.WebCore 0x3303377a4 WebCore::LocalFrameView::updateCompositingLayersAfterScrolling() 17 com.apple.WebCore 0x33066ad24 WebCore::ScrollView::completeUpdatesAfterScrollTo(WebCore::IntSize const&) 18 com.apple.WebCore 0x33066b038 WebCore::ScrollView::scrollTo(WebCore::IntPoint const&) 19 com.apple.WebCore 0x33033d910 WebCore::LocalFrameView::scrollTo(WebCore::IntPoint const&) 20 com.apple.WebCore 0x33066a7dc WebCore::ScrollView::setScrollOffset(WebCore::IntPoint const&) 21 com.apple.WebCore 0x330671944 WebCore::ScrollableArea::scrollPositionChanged(WebCore::IntPoint const&) 22 com.apple.WebCore 0x330671e50 WebCore::ScrollableArea::setScrollPositionFromAnimation(WebCore::IntPoint const&)
Simon Fraser (smfr)
Comment 2
2024-09-13 09:53:29 PDT
I don't think "reestablishing socket connection" is directly relevant; it's content changes that happen as a consequence that trigger the assertion. I assume this is debug-only?
Ethan Wu
Comment 3
2024-09-13 18:08:39 PDT
The content will indeed be refreshed during the process of reestablishing the connection. This problem not only occurs in the debug version, but also in the webit that comes with the Mac system, but the probability of occurrence seems to be lower than that of the debug version. Initially, we used the webkit that comes with the Max system, but there is a probability of a white screen. We want to locate whether it is a problem with the front-end code, so I compiled the source code of webkit locally for debugging today, and then found the crash problem here.
Alexey Proskuryakov
Comment 4
2024-09-16 09:08:56 PDT
There is only one assertion in this function, so duping to a bug that tracks it failing. As Simon said, this assertion failure is entirely unrelated to WebSockets. It may or may not be related to the white screen issue. *** This bug has been marked as a duplicate of
bug 249117
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug