<?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>168116</bug_id>
          
          <creation_ts>2017-02-10 07:25:46 -0800</creation_ts>
          <short_desc>[GStreamer][MSE] Crash on yet another wrong player selection for non MSE content when there are no suitable codecs</short_desc>
          <delta_ts>2018-02-26 09:06:40 -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>WebCore Misc.</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=166733</see_also>
          <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="Xabier Rodríguez Calvar">calvaris</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>eocanha</cc>
    
    <cc>pnormand</cc>
    
    <cc>vchipirras</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1275320</commentid>
    <comment_count>0</comment_count>
    <who name="Xabier Rodríguez Calvar">calvaris</who>
    <bug_when>2017-02-10 07:25:46 -0800</bug_when>
    <thetext>I am running the following local HTML on MiniBrowser:

&lt;html&gt;
  &lt;body&gt;
    &lt;video src=&quot;https://media.w3.org/2010/05/sintel/trailer.mp4&quot;
           controls autoplay/&gt;
  &lt;/body&gt;
&lt;/html&gt;

with GST_INSTALL_PLUGINS_HELPER environment variable pointing to a file with:

#!/bin/sh

echo &quot;Installation of gst plugin requested...&quot;
echo $@

exit 0

as recommended on bug https://bugs.webkit.org/show_bug.cgi?id=147822#c14

and I am getting:


#0  0x00007f27af596c0b in WebCore::MediaPlayerPrivateGStreamerMSE::buffered() const () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#1  0x00007f27af15e401 in WebCore::MediaPlayer::buffered() () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#2  0x00007f27aee55e04 in WebCore::HTMLMediaElement::buffered() const () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#3  0x00007f27af63f079 in WebCore::RenderThemeGtk::paintMediaSliderTrack(WebCore::RenderObject const&amp;, WebCore::PaintInfo const&amp;, WebCore::IntRect const&amp;) ()
   from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#4  0x00007f27af370d9d in WebCore::RenderTheme::paint(WebCore::RenderBox const&amp;, WebCore::ControlStates&amp;, WebCore::PaintInfo const&amp;, WebCore::LayoutRect const&amp;) ()
   from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#5  0x00007f27af24ffe4 in WebCore::RenderBox::paintBoxDecorations(WebCore::PaintInfo&amp;, WebCore::LayoutPoint const&amp;) () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#6  0x00007f27af2168cf in WebCore::RenderBlock::paintObject(WebCore::PaintInfo&amp;, WebCore::LayoutPoint const&amp;) () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#7  0x00007f27af215fe3 in WebCore::RenderBlock::paint(WebCore::PaintInfo&amp;, WebCore::LayoutPoint const&amp;) () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#8  0x00007f27af289082 in WebCore::RenderElement::paintAsInlineBlock(WebCore::PaintInfo&amp;, WebCore::LayoutPoint const&amp;) () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#9  0x00007f27af21656f in WebCore::RenderBlock::paintChild(WebCore::RenderBox&amp;, WebCore::PaintInfo&amp;, WebCore::LayoutPoint const&amp;, WebCore::PaintInfo&amp;, bool, WebCore::RenderBlock::PaintBlockType) ()
   from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#10 0x00007f27af29830e in WebCore::RenderFlexibleBox::paintChildren(WebCore::PaintInfo&amp;, WebCore::LayoutPoint const&amp;, WebCore::PaintInfo&amp;, bool) ()
   from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#11 0x00007f27af216b09 in WebCore::RenderBlock::paintObject(WebCore::PaintInfo&amp;, WebCore::LayoutPoint const&amp;) () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#12 0x00007f27af215fe3 in WebCore::RenderBlock::paint(WebCore::PaintInfo&amp;, WebCore::LayoutPoint const&amp;) () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#13 0x00007f27af2e6089 in WebCore::RenderLayer::paintForegroundForFragmentsWithPhase(WebCore::PaintPhase, WTF::Vector&lt;WebCore::LayerFragment, 1ul, WTF::CrashOnOverflow, 16ul&gt; const&amp;, WebCore::GraphicsContext&amp;, WebCore::RenderLayer::LayerPaintingInfo const&amp;, unsigned int, WebCore::RenderObject*) () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#14 0x00007f27af2e346a in WebCore::RenderLayer::paintForegroundForFragments(WTF::Vector&lt;WebCore::LayerFragment, 1ul, WTF::CrashOnOverflow, 16ul&gt; const&amp;, WebCore::GraphicsContext&amp;, WebCore::GraphicsContext&amp;, WebCore::LayoutRect const&amp;, bool, WebCore::RenderLayer::LayerPaintingInfo const&amp;, unsigned int, WebCore::RenderObject*, bool) () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#15 0x00007f27af2e0066 in WebCore::RenderLayer::paintLayerContents(WebCore::GraphicsContext&amp;, WebCore::RenderLayer::LayerPaintingInfo const&amp;, unsigned int) ()
   from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#16 0x00007f27af2f8ece in WebCore::RenderLayerBacking::paintIntoLayer(WebCore::GraphicsLayer const*, WebCore::GraphicsContext&amp;, WebCore::IntRect const&amp;, unsigned int, unsigned int) ()
   from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#17 0x00007f27af2f9187 in WebCore::RenderLayerBacking::paintContents(WebCore::GraphicsLayer const*, WebCore::GraphicsContext&amp;, unsigned int, WebCore::FloatRect const&amp;) ()
   from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#18 0x00007f27af150f2c in WebCore::GraphicsLayer::paintGraphicsLayerContents(WebCore::GraphicsContext&amp;, WebCore::FloatRect const&amp;) ()
   from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#19 0x00007f27af5c694f in non-virtual thunk to WebCore::CoordinatedGraphicsLayer::tiledBackingStorePaint(WebCore::GraphicsContext&amp;, WebCore::IntRect const&amp;) ()
   from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#20 0x00007f27af5c84a4 in WebCore::Tile::paintToSurfaceContext(WebCore::GraphicsContext&amp;) () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#21 0x00007f27ae927287 in WebKit::UpdateAtlasSurfaceClient::paintToSurfaceContext(WebCore::GraphicsContext&amp;) () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#22 0x00007f27ae91f335 in WebKit::ThreadSafeCoordinatedSurface::paintToSurface(WebCore::IntRect const&amp;, WebCore::CoordinatedSurface::Client&amp;) ()
   from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#23 0x00007f27ae9271a8 in WebKit::UpdateAtlas::paintOnAvailableBuffer(WebCore::IntSize const&amp;, unsigned int&amp;, WebCore::IntPoint&amp;, WebCore::CoordinatedSurface::Client&amp;) ()
   from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#24 0x00007f27ae9244a9 in WebKit::CompositingCoordinator::paintToSurface(WebCore::IntSize const&amp;, unsigned int, unsigned int&amp;, WebCore::IntPoint&amp;, WebCore::CoordinatedSurface::Client&amp;) ()
   from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#25 0x00007f27af5c838c in WebCore::Tile::updateBackBuffer() () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#26 0x00007f27af5c9454 in WebCore::TiledBackingStore::updateTileBuffers() () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#27 0x00007f27af5c901d in WebCore::TiledBackingStore::createTiles(WebCore::IntRect const&amp;, WebCore::IntRect const&amp;, float) () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#28 0x00007f27af5c8722 in WebCore::TiledBackingStore::createTilesIfNeeded(WebCore::IntRect const&amp;, WebCore::IntRect const&amp;) () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#29 0x00007f27af5c7199 in WebCore::CoordinatedGraphicsLayer::updateContentBuffers() () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#30 0x00007f27af5c7072 in WebCore::CoordinatedGraphicsLayer::updateContentBuffersIncludingSubLayers() () from /home/calvaris/gnome/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1275321</commentid>
    <comment_count>1</comment_count>
    <who name="Xabier Rodríguez Calvar">calvaris</who>
    <bug_when>2017-02-10 07:27:24 -0800</bug_when>
    <thetext>I forgot to say that I say &quot;no&quot; to codec installation, which I think is irrelevant, and I removed libgstfaad.so and libgstlibav.so to force caps negotiation to fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1402065</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2018-02-26 09:06:40 -0800</bug_when>
    <thetext>I can&apos;t reproduce this issue, the MSE player isn&apos;t created here.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>