From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gFhIFja5iGReBAAASxT56A (envelope-from ) for ; Tue, 13 Jun 2023 20:45:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0PMlFja5iGSvMAAAauVa8A (envelope-from ) for ; Tue, 13 Jun 2023 20:45:10 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1563DEA22 for ; Tue, 13 Jun 2023 20:45:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q8ynT-0007Ih-LC; Tue, 13 Jun 2023 03:50:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8ynQ-0007IO-7z for help-guix@gnu.org; Tue, 13 Jun 2023 03:50:32 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8ynN-0002d5-Hi for help-guix@gnu.org; Tue, 13 Jun 2023 03:50:31 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id DC65D240106 for ; Tue, 13 Jun 2023 09:50:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1686642625; bh=9+m54pTF/59Sl9ey0h2R9RWOPkxw5iq5N2/7UW5h59U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=h4WgeluwZd6YQafjMZ6MHtIapGEm4YXn9S1QzPgkXqM6JqUn4BoKcMCL0q4VRGNRb HaRDq6D7mH3jt36eZLq0tCepAJ5UzRE+jGjZ/VfYMI3hVPYBlPMXQCjnD2DM9LI1nN +drcYWm5hvM4bPQwCbVoDNDBI6TLUoP60sP5HCdXSFkhVO5T0i+mTjWHhavNwjlxcI I7aPLoa3jsAI0AXGROF6Z+mmso5g/LB2aJA2xzbzdoBpiYCxJWOmxtGRunuSdjbY6z 1mKa/1XkAKhyrQAp8bbnPY3Qeg+H0DCdbv6kVjgkBQ4CopKaPysa//uhNJID8fyZUP TnNFkAo7h6EkQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QgLM03w4Tz9rxP; Tue, 13 Jun 2023 09:50:20 +0200 (CEST) References: <87y1kozvny.fsf@robbyzambito.me> From: Guillaume Le Vaillant To: Robby Zambito Cc: Ott Joon , help-guix@gnu.org Subject: Re: OBS Studio memory leak Date: Tue, 13 Jun 2023 07:31:48 +0000 In-reply-to: <87y1kozvny.fsf@robbyzambito.me> Message-ID: <874jnbn6mk.fsf@kitej> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.67.36.66; envelope-from=glv@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686681910; a=rsa-sha256; cv=none; b=qcrmRlhJqrYxv6CEqY6RlOtSuO3oWpPoRLAmRzG9HnZagH/rapCury3L6YpNquJ5hRL+2h lHWHjjosbmz9fEgvjxKWbO4UqmWYciKXRKD/Ny8eSpcq129lwqrah6A1ZTC76LIP+dB61j eepmrvdgU98yhUlhmGwABu2mfyF2ar1Q4ImHbSKjvjdQMwxPTJfX0Ai+OKvwXpvpVpd9AX zklOKPUctkWm7TNBW6FrTOCi72EeGwlmLvkt7NOZ/II0/JD8E2k+Wu2obN7TRqVybP/eqc qP6C6/zpOounKXCNbdYltWQEMlYXQBdcFNTXRwBurLIlqm9Y9uqlpLksUsf7CQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=h4Wgeluw; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686681910; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/RJVjVPQasGQae+RMQNW6Nu7FQ22S2/cOV90HQ0hziY=; b=uzMzMRiITmbZd6EYHc8LAtPpRRDk4BhWJMhD6cI7IQILml8YRvfdGbWvL+f53jrU2LiXNu 65NE03li9qkr8vkOTdbIptlTF+OauvTH+xHAXlVVzKwn+yWMX+8p13foWR6LbA2YsjLX9n CBhfY0umZ6aVEzX440AIukNll5GqWxSKcgIclwG+/fIzueWmUcA/m7iY09terVCGG25rzL ms94bEELBQN6pjzHP6wC2BBkVAaq0yck4bgXelPRhswnBjs1y8/dhXx1QkSDcenxYvgXvr /ccbQE+anRSUErqF90CeqB7b+B7zJVOj0DHSZFPu+3UWV6bcR61zniTthY3FRw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=h4Wgeluw; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -9.89 X-Spam-Score: -9.89 X-Migadu-Queue-Id: 1563DEA22 X-TUID: FejPsDSEJQFy --=-=-= Content-Type: text/plain Robby Zambito skribis: > Ott Joon writes: > >> Hey there >> >> I have the exact same issue and I think this has to do with >> gstreamer. Some other programs are also affected by this bug. What >> seems to happen is the gst-plugin-scanner starts searching for plugins >> and just doesn't finish and leaks memory a ton. My 128GB of RAM will >> be full in seconds if I launch anything that uses gstreamer. Even >> virt-manager if you have gst-plugin-* packages installed as then the >> gst-plugin-scanner is awakened. I had to remove them or unset >> GST_PLUGIN_SYSTEM_PATH. Unfortunately OBS seems to have this feature >> built in, so it's not something you can remove. This is all I know at >> the moment. >> >> Ott > > Hi Ott, > > Thanks for the lead. I tried pinning gstreamer and gst-plugins-base to > older versions available in Guix, and removing gst-plugins-base from > being an input to OBS (though I'm not positive this removes it from all > recursive inputs), but I'm still having the issue :( > > Here is what I have so far: > > (let ((parent (specification->package "obs"))) > (package > (inherit parent) > (inputs (modify-inputs (package-inputs parent) > (replace "gstreamer" > ((options->transformation '((with-version . "gstreamer=1.20.3"))) > (specification->package "gstreamer"))) > (replace "gst-plugins-base" > ((options->transformation '((with-version . "gst-plugins-base=1.20.3"))) > (specification->package "gst-plugins-base"))))))) > > Also tried with (remove "gst-plugins-base") instead of the replace. > > Robby Hi, I don't know if its related, but I have a big memory leak issue with vlc. When trying to play a video with it, if the video output module it set to gl or vdpau_display, it consumes all the RAM of the machine in a few seconds (and I have to kill it fast to prevent the machine from hanging). However if I force the video output module to xcb_xv, it works fine. Do you have the same issue with vlc? If yes, it may indicate a bug with video acceleration (VA-API/VDPAU or mesa). PS: My machine's GPU is an AMD Radeon RX 6800 XT. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCZIgfsw8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j81mAD/YN0MbYNPSBrMNqdRFWasjckhsj5i7OU+sAQK OizavJQA/0w/V1pUCK//YGtBEFVUnk6oIIfLPvQABgzQv3cLTjxF =8adf -----END PGP SIGNATURE----- --=-=-=--