Bug 236434 - [GStreamer] WebKit crashes on camera release
Summary: [GStreamer] WebKit crashes on camera release
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: WebKit Local Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-02-10 03:21 PST by Lukas Mittermeier
Modified: 2022-11-05 08:53 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Mittermeier 2022-02-10 03:21:03 PST
The WebKit crashes sometimes, when I try to release the camera within a WebRTC Session. I'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:<Video_0x7f9c98474780:pool0:src:allocator> 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:<Video_0x7f9c98474780:pool0:src> failed to allocate buffer
0:00:17.919534019    53 0x7f9d08008120 WARN              bufferpool gstbufferpool.c:305:do_alloc_buffer:<Video_0x7f9c98474780:pool0:src> alloc function failed

It'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.
Comment 1 Philippe Normand 2022-02-13 12:06:18 PST
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
Comment 2 Lukas Mittermeier 2022-02-14 00:11:32 PST
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't really found a solution for it (it's really a huge project ;-) )
Comment 3 Radar WebKit Bug Importer 2022-02-17 03:21:14 PST
<rdar://problem/89078551>
Comment 4 Philippe Normand 2022-03-02 08:53:36 PST
Is this with no one else in the room or with another participant?
Comment 5 Philippe Normand 2022-04-29 03:51:00 PDT
Ping?
Comment 6 Philippe Normand 2022-08-16 11:52:11 PDT
Hello?
Comment 7 Philippe Normand 2022-11-05 08:53:28 PDT
No reply, closing. Feel free to reopen this bug if the issue remains reproducible.