<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>259544</bug_id>
          
          <creation_ts>2023-07-26 20:13:59 -0700</creation_ts>
          <short_desc>[ macOS Debug WK2 ] ASSERT call in RenderVTTCue.cpp causing flaky crash (media/modern-media-controls/tracks-support/text-track-selected-via-media-api.html)</short_desc>
          <delta_ts>2023-08-02 08:56:48 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=259545</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=259546</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ben Schwartz">ben_schwartz</reporter>
          <assigned_to name="Eric Carlson">eric.carlson</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1968379</commentid>
    <comment_count>0</comment_count>
    <who name="Ben Schwartz">ben_schwartz</who>
    <bug_when>2023-07-26 20:13:59 -0700</bug_when>
    <thetext>media/modern-media-controls/tracks-support/text-track-selected-via-media-api.html

This test is a flaky crash on macOS debug wk2 builds.

HISTORY:

https://results.webkit.org/?suite=layout-tests&amp;test=media%2Fmodern-media-controls%2Ftracks-support%2Ftext-track-selected-via-media-api.html&amp;style=debug

CRASH LOG TEXT:

ASSERTION FAILED: firstChild()
rendering/RenderVTTCue.cpp(380) : void WebCore::RenderVTTCue::repositionGenericCue()
1   0x34c189939 WTFCrash
2   0x2f35f572b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x2f93e78cd WebCore::RenderVTTCue::repositionGenericCue()
4   0x2f93e7317 WebCore::RenderVTTCue::layout()
5   0x2f80c9f83 WebCore::RenderElement::layoutIfNeeded()
6   0x2f9130049 WebCore::RenderBlock::layoutPositionedObject(WebCore::RenderBox&amp;, bool, bool)
7   0x2f912ec1f WebCore::RenderBlock::layoutPositionedObjects(bool, bool)
8   0x2f912e7f7 WebCore::RenderBlock::simplifiedLayout()
9   0x2f914908a WebCore::RenderBlockFlow::layoutBlock(bool, WebCore::LayoutUnit)
10  0x2f912cf78 WebCore::RenderBlock::layout()
11  0x2f84945c8 WebCore::LocalFrameViewLayoutContext::performLayout()
12  0x2f8472296 WebCore::LocalFrameViewLayoutContext::layout()
13  0x2f738c93d WebCore::Document::resolveStyle(WebCore::Document::ResolveStyleType)
14  0x2f738d71d WebCore::Document::updateStyleIfNeeded()
15  0x2f848daeb WebCore::LocalFrameView::updateLayoutAndStyleIfNeededRecursive()
16  0x2f84fe93c WebCore::Page::layoutIfNeeded()
17  0x2f84ff145 WebCore::Page::updateRendering()
18  0x3230e0d81 WebKit::WebPage::updateRendering()
19  0x322177e1c WebKit::TiledCoreAnimationDrawingArea::updateRendering(WebKit::TiledCoreAnimationDrawingArea::UpdateRenderingType)
20  0x32217c477 WebKit::TiledCoreAnimationDrawingArea::renderingUpdateRunLoopCallback()
21  0x32217e928 WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea(WebKit::WebPage&amp;, WebKit::WebPageCreationParameters const&amp;)::$_0::operator()() const
22  0x32217e8c9 WTF::Detail::CallableWrapper&lt;WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea(WebKit::WebPage&amp;, WebKit::WebPageCreationParameters const&amp;)::$_0, void&gt;::call()
23  0x2f3615442 WTF::Function&lt;void ()&gt;::operator()() const
24  0x2f8768ff2 WebCore::RunLoopObserver::runLoopObserverFired()
25  0x2f88755cd WebCore::RunLoopObserver::runLoopObserverFired(__CFRunLoopObserver*, unsigned long, void*)
26  0x7ff810883500 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
27  0x7ff810883392 __CFRunLoopDoObservers
28  0x7ff810881e90 CFRunLoopRunSpecific
29  0x7ff8116e0d3a -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
30  0x7ff81176b787 -[NSRunLoop(NSRunLoop) run]
31  0x7ff810505786 _xpc_objc_main
com.apple.WebKit.WebContent.Development terminated (pid 25405) for reason: crash
LEAK: 2 WebPageProxy

CRASH LOG LINK:

https://build.webkit.org/results/Apple-Monterey-Debug-WK2-Tests/266326@main%20(8297)/media/modern-media-controls/tracks-support/text-track-selected-via-media-api-crash-log.txt

CAUSE/PERMALINK:

This bug is caused by an ASSERT call not functioning properly. See: https://github.com/WebKit/WebKit/blame/0ef0801e78b627d421da475271e6f9385e18af4c/Source/WebCore/rendering/RenderVTTCue.cpp#L380</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1968380</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-07-26 20:14:09 -0700</bug_when>
    <thetext>&lt;rdar://problem/112951082&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1968381</commentid>
    <comment_count>2</comment_count>
    <who name="Ben Schwartz">ben_schwartz</who>
    <bug_when>2023-07-26 20:23:07 -0700</bug_when>
    <thetext>I have marked this test as a flaky crash while this issue is investigated. (Link: https://github.com/WebKit/WebKit/pull/16127)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1968881</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-07-31 10:45:47 -0700</bug_when>
    <thetext>Test gardening commit 266431@main (ec91d98d727f): &lt;https://commits.webkit.org/266431@main&gt;

Reviewed commits have been landed. Closing PR #16127 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1969267</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2023-08-02 07:41:10 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/16315</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1969274</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-08-02 08:56:46 -0700</bug_when>
    <thetext>Committed 266513@main (83a6562ec0c7): &lt;https://commits.webkit.org/266513@main&gt;

Reviewed commits have been landed. Closing PR #16315 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>