<?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>140022</bug_id>
          
          <creation_ts>2014-12-31 17:08:42 -0800</creation_ts>
          <short_desc>http/tests/media/track-in-band-hls-metadata.html is very flaky</short_desc>
          <delta_ts>2019-11-05 07:01:48 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>140827</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>ryanhaddad</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1058296</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-12-31 17:08:42 -0800</bug_when>
    <thetext>http/tests/media/track-in-band-hls-metadata.html is very flaky on Yosemite. It:
- times out (mostly on bots);
- crashes (with ASan in WebKit1);
- fails (with ASan in WebKit2).

When timing out on bots, there isn&apos;t a canplaythrough event dispatched.

When failing on ASan/WebKit2, an extra canplaythrough event is dispatched:
@@ -11,6 +11,10 @@
 EXPECTED (track.kind == &apos;metadata&apos;) OK
 EXPECTED (track.mode == &apos;disabled&apos;) OK
 RUN(track.mode = &apos;hidden&apos;)
+EVENT(canplaythrough)
+
+** Start playback, wait for all cues to load
+RUN(video.play())
 EVENT(canplaythrough)
 
 ** Start playback, wait for all cues to load

The crash looks like this:

==65650==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000044 (pc 0x000112728914 bp 0x7fff5376ff70 sp 0x7fff5376fec0 T0)
    #0 0x112728913 in WTF::MediaTime::isValid const MediaTime.h:92
    #1 0x112724518 in WTF::MediaTime::isInvalid const MediaTime.h:93
    #2 0x112721083 in WTF::MediaTime::compare const MediaTime.cpp:388
    #3 0x112722d09 in WTF::MediaTime::operator&gt;= const MediaTime.cpp:359
    #4 0x123738982 in WebCore::InbandMetadataTextTrackPrivateAVF::updatePendingCueEndTimes InbandMetadataTextTrackPrivateAVF.cpp:73
    #5 0x1273df3f9 in WebCore::MediaPlayerPrivateAVFoundationObjC::metadataDidArrive MediaPlayerPrivateAVFoundationObjC.mm:2735
    #6 0x12751f1e3 in WTF::FunctionWrapper&lt;void &gt;::operator Functional.h:274
    #7 0x12751ec20 in WTF::BoundFunctionImpl&lt;WTF::FunctionWrapper&lt;void &gt;, void &gt;::operator Functional.h:550
    #8 0x12750f696 in WTF::Function&lt;void &gt;::operator const Functional.h:704
    #9 0x127463ed0 in -[WebCoreAVFMovieObserver observeValueForKeyPath:ofObject:change:context:]::$_7::operator const MediaPlayerPrivateAVFoundationObjC.mm:3030
    #10 0x127463ceb in std::__1::__function::__func&lt;-[WebCoreAVFMovieObserver observeValueForKeyPath:ofObject:change:context:]::$_7, std::__1::allocator&lt;-[WebCoreAVFMovieObserver observeValueForKeyPath:ofObject:change:context:]::$_7&gt;, void &gt;::operator __functional_base:413
    #11 0x11d4e2ef9 in std::__1::function&lt;void &gt;::operator const functional:1756
    #12 0x127366a03 in WebCore::MediaPlayerPrivateAVFoundation::dispatchNotification MediaPlayerPrivateAVFoundation.cpp:903
    #13 0x12736734f in WebCore::MediaPlayerPrivateAVFoundation::scheduleMainThreadNotification MediaPlayerPrivateAVFoundation.cpp:813
    #14 0x1273ec9e9 in -[WebCoreAVFMovieObserver observeValueForKeyPath:ofObject:change:context:] MediaPlayerPrivateAVFoundationObjC.mm:3025
    #15 0x7fff89493c72 in NSKeyValueNotifyObserver (in Foundation) + 381
    #16 0x7fff894909a1 in NSKeyValueWillChange (in Foundation) + 627
    #17 0x7fff894978d0 in -[NSObject(NSKeyValueObserverNotification) willChangeValueForKey:] (in Foundation) + 215
    #18 0x7fff90c11c74 in -[AVPlayerItem willChangeValueForKey:] (in AVFoundation) + 85
    #19 0x7fff90c85937 in __avplayeritem_fpItemNotificationCallback_block_invoke (in AVFoundation) + 2668
    #20 0x10c99d816 in __wrap_dispatch_async_block_invoke (in libclang_rt.asan_osx_dynamic.dylib) + 246
    #21 0x7fff915cc322 in _dispatch_call_block_and_release (in libdispatch.dylib) + 11
    #22 0x7fff915c7c12 in _dispatch_client_callout (in libdispatch.dylib) + 7
    #23 0x7fff915d3cbe in _dispatch_main_queue_callback_4CF (in libdispatch.dylib) + 860
    #24 0x7fff8f1c0c58 in __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ (in CoreFoundation) + 8
    #25 0x7fff8f17d2ee in __CFRunLoopRun (in CoreFoundation) + 2158
    #26 0x7fff8f17c837 in CFRunLoopRunSpecific (in CoreFoundation) + 295
    #27 0x10c5533ad in runTest DumpRenderTree.mm:1921</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1238003</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-10-08 13:17:39 -0700</bug_when>
    <thetext>This test is still a flaky timeout across all mac queues. Marked such in http://trac.webkit.org/projects/webkit/changeset/206958</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1587376</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2019-11-05 07:01:48 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 140827 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>