Bug 215226

Summary: [ iOS wk2 Debug ] fast/text/basic/001.html is a flaky crash
Product: WebKit Reporter: Hector Lopez <hector_i_lopez>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=209450

Description Hector Lopez 2020-08-06 10:54:32 PDT
fast/text/basic/001.html

This test is a flakey crash according to history. The first occurrence of a crash is at r259156.

History:
https://results.webkit.org/?suite=layout-tests&test=fast%2Ftext%2Fbasic%2F001.html&limit=50000&platform=ios&style=debug

Crash Log:
https://build.webkit.org/results/Apple%20iPadOS%2013%20Simulator%20Debug%20WK2%20(Tests)/r265322%20(3046)/fast/text/basic/001-crash-log.txt

Application Specific Information:
CoreSimulator 704.12 - Device: Managed 9 (7EAA01F1-5DC5-44F9-A199-B4C4029FF5B3) - Runtime: iOS 13.4 (17E255) - DeviceType: iPad (5th generation)
CRASHING TEST: fast/text-autosizing/ios/idempotentmode/viewport-change-relayout.html

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.JavaScriptCore      	0x0000000121f41b8e WTFCrash + 14 (Assertions.cpp:295)
1   com.apple.WebCore             	0x000000012972737b WTFCrashWithInfo(int, char const*, char const*, int) + 27
2   com.apple.WebCore             	0x000000012cf09c41 WebCore::Page::recomputeTextAutoSizingInAllFrames() + 145 (Page.cpp:3254)
3   com.apple.WebKit              	0x000000010dc3aea6 WebKit::WebPage::textAutoSizingAdjustmentTimerFired() + 38 (WebPage.cpp:7115)
4   com.apple.WebKit              	0x000000010dc76dd7 decltype(*(std::__1::forward<WebKit::WebPage*&>(fp0)).*fp()) std::__1::__invoke<void (WebKit::WebPage::*&)(), WebKit::WebPage*&, void>(void (WebKit::WebPage::*&)(), WebKit::WebPage*&) + 119 (type_traits:4366)
5   com.apple.WebKit              	0x000000010dc76d50 std::__1::__bind_return<void (WebKit::WebPage::*)(), std::__1::tuple<WebKit::WebPage*>, std::__1::tuple<>, __is_valid_bind_return<void (WebKit::WebPage::*)(), std::__1::tuple<WebKit::WebPage*>, std::__1::tuple<> >::value>::type std::__1::__apply_functor<void (WebKit::WebPage::*)(), std::__1::tuple<WebKit::WebPage*>, 0ul, std::__1::tuple<> >(void (WebKit::WebPage::*&)(), std::__1::tuple<WebKit::WebPage*>&, std::__1::__tuple_indices<0ul>, std::__1::tuple<>&&) + 64 (functional:2716)
6   com.apple.WebKit              	0x000000010dc76d09 std::__1::__bind_return<void (WebKit::WebPage::*)(), std::__1::tuple<WebKit::WebPage*>, std::__1::tuple<>, __is_valid_bind_return<void (WebKit::WebPage::*)(), std::__1::tuple<WebKit::WebPage*>, std::__1::tuple<> >::value>::type std::__1::__bind<void (WebKit::WebPage::*&)(), WebKit::WebPage*>::operator()<>() + 41 (functional:2749)
Comment 1 Radar WebKit Bug Importer 2020-08-06 10:54:53 PDT
<rdar://problem/66635041>
Comment 2 Hector Lopez 2020-08-06 10:59:55 PDT
Test expectation added while investigated:

https://trac.webkit.org/changeset/265337/webkit
Comment 3 Ryan Haddad 2020-08-06 14:37:53 PDT
ASSERTION FAILED: settings().textAutosizingEnabled() && settings().textAutosizingUsesIdempotentMode()
./page/Page.cpp(3254) : void WebCore::Page::recomputeTextAutoSizingInAllFrames()
1   0x29db3cb89 WTFCrash
2   0x2a532237b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x2a8b04c41 WebCore::Page::recomputeTextAutoSizingInAllFrames()
4   0x28993aea6 WebKit::WebPage::textAutoSizingAdjustmentTimerFired()
Comment 4 Ryan Haddad 2020-08-06 14:38:21 PDT

*** This bug has been marked as a duplicate of bug 209450 ***