Bug 242465

Summary: css/css-values/calc-width-table-* WPT assert on debug
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Tim Nguyen (:ntim) 2022-07-07 11:32:54 PDT
[1/6] imported/w3c/web-platform-tests/css/css-values/calc-text-indent-intrinsic-1.html failed unexpectedly (reference mismatch maxDifference=255; totalPixels=265)
[2/6] imported/w3c/web-platform-tests/css/css-values/calc-width-table-auto-1.html failed unexpectedly (com.apple.WebKit.WebContent.Development crashed [pid=49963])
[3/6] imported/w3c/web-platform-tests/css/css-values/calc-width-table-fixed-1.html failed unexpectedly (com.apple.WebKit.WebContent.Development crashed [pid=49979])
Comment 1 Tim Nguyen (:ntim) 2022-07-07 11:38:08 PDT
only the 2 last are crashes, my bad
Comment 2 zalan 2022-07-07 12:08:52 PDT
stacktraces, please.
Comment 3 Radar WebKit Bug Importer 2022-07-14 11:33:15 PDT
<rdar://problem/97025578>
Comment 4 Tim Nguyen (:ntim) 2023-05-10 23:08:57 PDT
ASSERTION FAILED: !isCalculated()
/Volumes/Data/Code/Safari/OpenSource/Source/WebCore/platform/Length.h(335) : float WebCore::Length::value() const
1   0x1340817d8 WTFCrash
2   0x14a537014 PAL::AXCustomContentFunction()
3   0x14c5969e8 WebCore::Length::value() const
4   0x14f69481c WebCore::AutoTableLayout::recalcColumn(unsigned int)
5   0x14f695998 WebCore::AutoTableLayout::fullRecalc()
6   0x14f695be0 WebCore::AutoTableLayout::computeIntrinsicLogicalWidths(WebCore::LayoutUnit&, WebCore::LayoutUnit&, WebCore::TableIntrinsics)
7   0x14f9b567c WebCore::RenderTable::computeIntrinsicLogicalWidths(WebCore::LayoutUnit&, WebCore::LayoutUnit&, WebCore::TableIntrinsics) const
8   0x14f9b56b8 WebCore::RenderTable::computeIntrinsicLogicalWidths(WebCore::LayoutUnit&, WebCore::LayoutUnit&) const
9   0x14f9b578c WebCore::RenderTable::computePreferredLogicalWidths()
10  0x14f7e176c WebCore::RenderBox::maxPreferredLogicalWidth() const
11  0x14f9b0a18 WebCore::RenderTable::updateLogicalWidth()
12  0x14f9b2224 WebCore::RenderTable::layout()
13  0x14f7c598c WebCore::RenderBlockFlow::layoutBlockChild(WebCore::RenderBox&, WebCore::RenderBlockFlow::MarginInfo&, WebCore::LayoutUnit&, WebCore::LayoutUnit&)
14  0x14f7c4a7c WebCore::RenderBlockFlow::layoutBlockChildren(bool, WebCore::LayoutUnit&)
15  0x14f7c2b68 WebCore::RenderBlockFlow::layoutInFlowChildren(bool, WebCore::LayoutUnit&, WebCore::LayoutUnit&, WebCore::LayoutUnit&)
16  0x14f7c1bdc WebCore::RenderBlockFlow::layoutBlock(bool, WebCore::LayoutUnit)
17  0x14f7a29d8 WebCore::RenderBlock::layout()
18  0x14f7c598c WebCore::RenderBlockFlow::layoutBlockChild(WebCore::RenderBox&, WebCore::RenderBlockFlow::MarginInfo&, WebCore::LayoutUnit&, WebCore::LayoutUnit&)
19  0x14f7c4a7c WebCore::RenderBlockFlow::layoutBlockChildren(bool, WebCore::LayoutUnit&)
20  0x14f7c2b68 WebCore::RenderBlockFlow::layoutInFlowChildren(bool, WebCore::LayoutUnit&, WebCore::LayoutUnit&, WebCore::LayoutUnit&)
21  0x14f7c1bdc WebCore::RenderBlockFlow::layoutBlock(bool, WebCore::LayoutUnit)
22  0x14f7a29d8 WebCore::RenderBlock::layout()
23  0x14f7c598c WebCore::RenderBlockFlow::layoutBlockChild(WebCore::RenderBox&, WebCore::RenderBlockFlow::MarginInfo&, WebCore::LayoutUnit&, WebCore::LayoutUnit&)
24  0x14f7c4a7c WebCore::RenderBlockFlow::layoutBlockChildren(bool, WebCore::LayoutUnit&)
25  0x14f7c2b68 WebCore::RenderBlockFlow::layoutInFlowChildren(bool, WebCore::LayoutUnit&, WebCore::LayoutUnit&, WebCore::LayoutUnit&)
26  0x14f7c1bdc WebCore::RenderBlockFlow::layoutBlock(bool, WebCore::LayoutUnit)
27  0x14f7a29d8 WebCore::RenderBlock::layout()
28  0x14fa1dc40 WebCore::RenderView::layout()
29  0x14ed08b54 WebCore::LocalFrameViewLayoutContext::performLayout()
30  0x14ece5670 WebCore::LocalFrameViewLayoutContext::layout()
31  0x14ddb7874 WebCore::Document::implicitClose()
com.apple.WebKit.WebContent.Development terminated (pid 67776) for reason: crash
LEAK: 1 WebPageProxy
Comment 5 Ahmad Saleem 2023-10-26 15:43:05 PDT
Both below are fixed by Alan:

[2/6] imported/w3c/web-platform-tests/css/css-values/calc-width-table-auto-1.html failed unexpectedly (com.apple.WebKit.WebContent.Development crashed [pid=49963])
[3/6] imported/w3c/web-platform-tests/css/css-values/calc-width-table-fixed-1.html failed unexpectedly (com.apple.WebKit.WebContent.Development crashed [pid=49979])

as for 'calc-text-indent-intrinsic-1', it is still failing in STP181.

https://wpt.fyi/results/css/css-values/calc-text-indent-intrinsic-1.html?label=experimental&label=master&aligned=