<?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>236434</bug_id>
          
          <creation_ts>2022-02-10 03:21:03 -0800</creation_ts>
          <short_desc>[GStreamer] WebKit crashes on camera release</short_desc>
          <delta_ts>2022-11-05 08:53:28 -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>WebRTC</component>
          <version>WebKit Local Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <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="Lukas Mittermeier">lukas</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>philn</cc>
    
    <cc>pnormand</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1839581</commentid>
    <comment_count>0</comment_count>
    <who name="Lukas Mittermeier">lukas</who>
    <bug_when>2022-02-10 03:21:03 -0800</bug_when>
    <thetext>The WebKit crashes sometimes, when I try to release the camera within a WebRTC Session. I&apos;m not sure, if it is a gstreamer or a WebKit Problem.

During my Debugging I got this log-Messages from gstreamer periodically every 100ms:

0:00:17.919461061    53 0x7f9d08008120 WARN           v4l2allocator gstv4l2allocator.c:559:gst_v4l2_allocator_create_buf:&lt;Video_0x7f9c98474780:pool0:src:allocator&gt; error creating a new buffer: No buffer space available
0:00:17.919521415    53 0x7f9d08008120 ERROR         v4l2bufferpool gstv4l2bufferpool.c:479:gst_v4l2_buffer_pool_alloc_buffer:&lt;Video_0x7f9c98474780:pool0:src&gt; failed to allocate buffer
0:00:17.919534019    53 0x7f9d08008120 WARN              bufferpool gstbufferpool.c:305:do_alloc_buffer:&lt;Video_0x7f9c98474780:pool0:src&gt; alloc function failed

It&apos;s a local WPEWebKit Build on a 20.04 Ubuntu with Wayland.

Steps to reproduce:
1. Open a WebRTC-Session with for example BigBlueButton: https://test.bigbluebutton.org
2. Enable and disable the Camera, the camera hast to be released (not the case with jitsi)

Expected result:
The camera is disabled and the session is ongoing

Actual result:
The website hangs and the memory usage is increasing in small junks over time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1841054</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2022-02-13 12:06:18 -0800</bug_when>
    <thetext>Which WPEWebKit version is this? Can you confirm this is either a build from trunk of webkit.org or a release from wpewebkit.org?

A memory leak was fixed recently, but is unlikely to be ported to 2.34. See https://bugs.webkit.org/show_bug.cgi?id=234134</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1841153</commentid>
    <comment_count>2</comment_count>
    <who name="Lukas Mittermeier">lukas</who>
    <bug_when>2022-02-14 00:11:32 -0800</bug_when>
    <thetext>I pulled from the git Repo from webkit.org and the last commit I tested was 6b83c7b5201f4afd64492a9ebb94134ba3138a2b (Wed Feb 9 13:49:12 2022 +0000).

I already had a look to the Issue in the sourcecode if I can fix it, but up to now I haven&apos;t really found a solution for it (it&apos;s really a huge project ;-) )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1842802</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-02-17 03:21:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/89078551&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1847436</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2022-03-02 08:53:36 -0800</bug_when>
    <thetext>Is this with no one else in the room or with another participant?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1865393</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2022-04-29 03:51:00 -0700</bug_when>
    <thetext>Ping?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1891715</commentid>
    <comment_count>6</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2022-08-16 11:52:11 -0700</bug_when>
    <thetext>Hello?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1910533</commentid>
    <comment_count>7</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2022-11-05 08:53:28 -0700</bug_when>
    <thetext>No reply, closing. Feel free to reopen this bug if the issue remains reproducible.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>