Bug 261618

Summary: [ New Test ] (260462@main): [ macOS wk1 debug ] ASSERTION FAILED: !needsLayout() WebCore::Widget::SecurityOriginPaintPolicy, WebCore::EventRegionContext
Product: WebKit Reporter: Karl Rackler <rackler>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: simon.fraser, webkit-bot-watchers-bugzilla, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Karl Rackler 2023-09-15 13:04:47 PDT
Description:
imported/w3c/web-platform-tests/preload/link-header-preload-non-html.html

Is a flaky crash on macOS ToT and since 260462@main when the test was added.  The test was added as part of web-platform-tests/preload resync and 260462@main is not the cause of the Assertion, but just when the test was added and uncovered a pre-existing condition.

This issue can be bisected to 260462@main using the command: 
run-webkit-tests --debug -f --clobber-old-results --exit-after-n-failures 1  --force  --child-processes=5 --iterations=50 -1  imported/w3c/web-platform-tests/preload/link-header-preload-non-html.html

History:
https://results.webkit.org/?suite=layout-tests&test=imported%2Fw3c%2Fweb-platform-tests%2Fpreload%2Flink-header-preload-non-html.html&platform=mac&flavor=wk1&style=debug&recent=false

Crash Log:
No crash log found.

stdout:

stderr:
ASSERTION FAILED: !needsLayout()
/OpenSource/Source/WebCore/page/LocalFrameView.cpp(4828) : virtual void WebCore::LocalFrameView::paintContents(WebCore::GraphicsContext &, const WebCore::IntRect &, WebCore::Widget::SecurityOriginPaintPolicy, WebCore::RegionContext *)
1   0x125a3df29 WTFCrash
2   0x1770313cb WTFCrashWithInfo(int, char const*, char const*, int)
3   0x17b8283b5 WebCore::LocalFrameView::paintContents(WebCore::GraphicsContext&, WebCore::IntRect const&, WebCore::Widget::SecurityOriginPaintPolicy, WebCore::RegionContext*)
4   0x113c015e7 -[WebFrame(WebInternal) _drawRect:contentsOnly:]
5   0x113c25353 -[WebHTMLView drawSingleRect:]
6   0x113c25999 -[WebHTMLView drawRect:]
7   0x7ff812447690 _NSViewDrawRect
8   0x7ff812c272fa -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:]
9   0x113c191f6 -[WebHTMLView(WebPrivate) _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:]
10  0x7ff812c27648 -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:]
11  0x7ff812c27648 -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:]
12  0x7ff812c27648 -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:]
13  0x7ff812c1fc67 __47-[NSView displayRectIgnoringOpacity:inContext:]_block_invoke
14  0x7ff812344f47 NSPerformVisuallyAtomicChange
15  0x7ff8125ae462 -[NSView displayRectIgnoringOpacity:inContext:]
16  0x179764636 WebCore::Widget::paint(WebCore::GraphicsContext&, WebCore::IntRect const&, WebCore::Widget::SecurityOriginPaintPolicy, WebCore::RegionContext*)
17  0x17baa02b3 WebCore::ScrollView::paint(WebCore::GraphicsContext&, WebCore::IntRect const&, WebCore::Widget::SecurityOriginPaintPolicy, WebCore::RegionContext*)
18  0x17c47bdb5 WebCore::RenderWidget::paintContents(WebCore::PaintInfo&, WebCore::LayoutPoint const&)
19  0x17c47c656 WebCore::RenderWidget::paint(WebCore::PaintInfo&, WebCore::LayoutPoint const&)
20  0x17c343f17 WebCore::RenderLayer::paintForegroundForFragmentsWithPhase(WebCore::PaintPhase, WTF::Vector<WebCore::LayerFragment, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> const&, WebCore::GraphicsContext&, WebCore::RenderLayer::LayerPaintingInfo const&, WTF::OptionSet<WebCore::PaintBehavior>, WebCore::RenderObject*)
21  0x17c341c30 WebCore::RenderLayer::paintForegroundForFragments(WTF::Vector<WebCore::LayerFragment, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> const&, WebCore::GraphicsContext&, WebCore::GraphicsContext&, WebCore::LayoutRect const&, bool, WebCore::RenderLayer::LayerPaintingInfo const&, WTF::OptionSet<WebCore::PaintBehavior>, WebCore::RenderObject*)
22  0x17c33dd62 WebCore::RenderLayer::paintLayerContents(WebCore::GraphicsContext&, WebCore::RenderLayer::LayerPaintingInfo const&, WTF::OptionSet<WebCore::RenderLayer::PaintLayerFlag>)
23  0x17c363045 WebCore::RenderLayerBacking::paintIntoLayer(WebCore::GraphicsLayer const*, WebCore::GraphicsContext&, WebCore::IntRect const&, WTF::OptionSet<WebCore::PaintBehavior>, WebCore::RegionContext*)::$_33::operator()(WebCore::RenderLayer&, WTF::OptionSet<WebCore::RenderLayer::PaintLayerFlag>) const
24  0x17c36296b WebCore::RenderLayerBacking::paintIntoLayer(WebCore::GraphicsLayer const*, WebCore::GraphicsContext&, WebCore::IntRect const&, WTF::OptionSet<WebCore::PaintBehavior>, WebCore::RegionContext*)
25  0x17c363d70 WebCore::RenderLayerBacking::paintContents(WebCore::GraphicsLayer const*, WebCore::GraphicsContext&, WebCore::FloatRect const&, WTF::OptionSet<WebCore::GraphicsLayerPaintBehavior>)
26  0x17bc752fc WebCore::GraphicsLayer::paintGraphicsLayerContents(WebCore::GraphicsContext&, WebCore::FloatRect const&, WTF::OptionSet<WebCore::GraphicsLayerPaintBehavior>)
27  0x17bd72e2e WebCore::GraphicsLayerCA::platformCALayerPaintContents(WebCore::PlatformCALayer*, WebCore::GraphicsContext&, WebCore::FloatRect const&, WTF::OptionSet<WebCore::GraphicsLayerPaintBehavior>)
28  0x179471bed WebCore::PlatformCALayer::drawLayerContents(WebCore::GraphicsContext&, WebCore::PlatformCALayer*, WTF::Vector<WebCore::FloatRect, 5ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, WTF::OptionSet<WebCore::GraphicsLayerPaintBehavior>)
29  0x179541908 -[WebLayer drawInContext:]
30  0x7ff816b27092 CABackingStoreUpdate_
31  0x7ff816b89655 invocation function for block in CA::Layer::display_()
Comment 1 Radar WebKit Bug Importer 2023-09-15 13:05:54 PDT
<rdar://problem/115569139>
Comment 2 EWS 2023-09-15 13:15:43 PDT
Test gardening commit 268035@main (78e70e5f16a9): <https://commits.webkit.org/268035@main>

Reviewed commits have been landed. Closing PR #17824 and removing active labels.