<?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>185005</bug_id>
          
          <creation_ts>2018-04-25 16:05:32 -0700</creation_ts>
          <short_desc>[WPE][EME] Crashes on different eme-related layout tests for WPE Debug build</short_desc>
          <delta_ts>2018-10-15 02:19:22 -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>WPE WebKit</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>158836</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bandou.yacine</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>calvaris</cc>
    
    <cc>cturner</cc>
    
    <cc>psaavedra</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1417833</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2018-04-25 16:05:32 -0700</bug_when>
    <thetext>We just added a Debug tester for WPE and it is aborting early due to many crashes on EME related tests.

  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-destroy-persistent-license.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-persistent-license-events.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-persistent-license.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-retrieve-destroy-persistent-license.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-retrieve-persistent-license.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-encrypted-clear-sources.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-encrypted-clear.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-events.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-multikey-sequential-readyState.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-multikey-sequential.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-multikey.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-multisession.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-setMediaKeys-after-src.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-setMediaKeys-immediately.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-setMediaKeys-onencrypted.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-two-videos.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary-waitingforkey.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-playback-temporary.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-reset-src-after-setmediakeys.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-setmediakeys-again-after-playback.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-setmediakeys-again-after-resetting-src.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-setmediakeys-multiple-times-with-different-mediakeys.https.html [ Crash ]
  imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-waiting-for-a-key.https.html [ Crash ]
  imported/w3c/web-platform-tests/html/semantics/selectors/pseudo-classes/dir.html [ Crash ]
  media/encrypted-media/clearKey/clearKey-cenc-audio-playback-mse.html [ Crash ]
  media/encrypted-media/clearKey/clearKey-cenc-video-playback-mse.html [ Crash ]
  media/encrypted-media/clearKey/clearKey-encrypted-cenc-event-mse.html [ Crash ]
  media/encrypted-media/clearKey/clearKey-message-cenc-event-mse.html [ Crash ]

https://build.webkit.org/results/WPE%20Linux%2064-bit%20Debug%20(Tests)/r231014%20(4)/results.html

Example of crash log:


STDERR: ASSERTION FAILED: WTF::isMainThread()
STDERR: /home/buildbot/wpe/wpe-linux-64-debug/build/Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp(429) : void WebCore::AppendPipeline::setAppendState(WebCore::AppendPipeline::AppendState)
STDERR: 1   0x7f0249f324df WTFCrash
STDERR: 2   0x7f0248cbf6e8 WebCore::AppendPipeline::setAppendState(WebCore::AppendPipeline::AppendState)
STDERR: 
STDERR: (WPEWebProcess:53190): GLib-GObject-WARNING **: g_object_set_is_valid_property: object class &apos;WebKitMediaSrc&apos; has no property named &apos;current-audio&apos;
STDERR: ASSERTION FAILED: !m_cdmInstance
STDERR: /home/buildbot/wpe/wpe-linux-64-debug/build/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp(1210) : virtual void WebCore::MediaPlayerPrivateGStreamerBase::cdmInstanceAttached(WebCore::CDMInstance&amp;)
STDERR: 3   0x7f0248cbeb13 WebCore::AppendPipeline::handleNeedContextSyncMessage(_GstMessage*)
STDERR: 1   0x7f0249f324df WTFCrash
STDERR: 4   0x7f0248cbd971
STDERR: 2   0x7f02489ca178 WebCore::MediaPlayerPrivateGStreamerBase::cdmInstanceAttached(WebCore::CDMInstance&amp;)
STDERR: 5   0x7f0235b699fe ffi_call_unix64
STDERR: 3   0x7f0248123929 WebCore::MediaPlayer::cdmInstanceAttached(WebCore::CDMInstance&amp;)
STDERR: 6   0x7f0235b6868d ffi_call
STDERR: 4   0x7f0247a85dad WebCore::HTMLMediaElement::mediaEngineWasUpdated()
STDERR: 7   0x7f0239272f58 g_cclosure_marshal_generic
STDERR: 5   0x7f0247a78fe6 WebCore::HTMLMediaElement::pendingActionTimerFired()
STDERR: 8   0x7f0239272745 g_closure_invoke
STDERR: 6   0x7f0247abdb70 void std::__invoke_impl&lt;void, void (WebCore::HTMLMediaElement::* const&amp;)(), WebCore::HTMLMediaElement*&amp;&gt;(std::__invoke_memfun_deref, void (WebCore::HTMLMediaElement::* const&amp;)(), WebCore::HTMLMediaElement*&amp;)
STDERR: 9   0x7f02392845c2
STDERR: 7   0x7f0247abda95 std::result_of&lt;void (WebCore::HTMLMediaElement::* const&amp;(WebCore::HTMLMediaElement*&amp;))()&gt;::type std::__invoke&lt;void (WebCore::HTMLMediaElement::* const&amp;)(), WebCore::HTMLMediaElement*&amp;&gt;(void (WebCore::HTMLMediaElement::* const&amp;)(), WebCore::HTMLMediaElement*&amp;)
STDERR: 10  0x7f023928d161 g_signal_emit_valist
STDERR: 11  0x7f023928d572 g_signal_emit
STDERR: 8   0x7f0247abd9ec decltype (__invoke((*this)._M_pmf, (forward&lt;WebCore::HTMLMediaElement*&amp;&gt;)({parm#1}))) std::_Mem_fn_base&lt;void (WebCore::HTMLMediaElement::*)(), true&gt;::operator()&lt;WebCore::HTMLMediaElement*&amp;&gt;(WebCore::HTMLMediaElement*&amp;) const
STDERR: 12  0x7f023a55f98a gst_bus_sync_signal_handler
STDERR: 13  0x7f023a55fc4c gst_bus_post
STDERR: 14  0x7f023a574c38
STDERR: 15  0x7f023a551e3d
STDERR: 16  0x7f023a577973 gst_element_post_message
STDERR: 17  0x7f023a552169
STDERR: 18  0x7f023a59cd1c
STDERR: 19  0x7f023a54fa78
STDERR: 20  0x7f023a55fc23 gst_bus_post
STDERR: 21  0x7f023a574c38
STDERR: 22  0x7f023a577973 gst_element_post_message
STDERR: 23  0x7f01d8799c5c
STDERR: 24  0x7f01d879b65d
STDERR: 25  0x7f01d87b83c8
STDERR: 9   0x7f0247abd7b4 void std::_Bind&lt;std::_Mem_fn&lt;void (WebCore::HTMLMediaElement::*)()&gt; (WebCore::HTMLMediaElement*)&gt;::__call&lt;void, , 0ul&gt;(std::tuple&lt;&gt;&amp;&amp;, std::_Index_tuple&lt;0ul&gt;)
STDERR: 26  0x7f023a5904b6
STDERR: 27  0x7f023a5986a2 gst_pad_push
STDERR: 28  0x7f023a687c25
STDERR: 29  0x7f023a5c3371
STDERR: 30  0x7f02391be53e
STDERR: 31  0x7f02391bdb65
STDERR: LEAK: 1 WebPageProxy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1417842</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2018-04-25 16:14:23 -0700</bug_when>
    <thetext>Marked affected tests in https://trac.webkit.org/changeset/231030</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1420481</commentid>
    <comment_count>2</comment_count>
    <who name="Yacine Bandou">bandou.yacine</who>
    <bug_when>2018-05-03 17:39:10 -0700</bug_when>
    <thetext>Once the decryptor moved from AppendPipeline to Playbackpipeline and patches 185242 and 185244 will be fixed, these tests will no longer crash and some one will pass.
see 185277</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1469157</commentid>
    <comment_count>3</comment_count>
    <who name="Charlie Turner">cturner</who>
    <bug_when>2018-10-15 02:19:22 -0700</bug_when>
    <thetext>(In reply to Yacine Bandou from comment #2)
&gt; Once the decryptor moved from AppendPipeline to Playbackpipeline and patches
&gt; 185242 and 185244 will be fixed, these tests will no longer crash and some
&gt; one will pass.
&gt; see 185277

This move has happened, those patches have landed, and there&apos;s no longer and crashes from a local run here. Closing!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>