From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <bug-guix-bounces+larch=yhetil.org@gnu.org>
Received: from mp1 ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms11 with LMTPS
	id KAJ9NXFqZF/uNQAA0tVLHw
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 18 Sep 2020 08:06:09 +0000
Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp1 with LMTPS
	id kKFHMXFqZF+WRQAAbx9fmQ
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 18 Sep 2020 08:06:09 +0000
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 3ACD8940415
	for <larch@yhetil.org>; Fri, 18 Sep 2020 08:06:09 +0000 (UTC)
Received: from localhost ([::1]:53706 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	id 1kJBPE-0006Qa-2d
	for larch@yhetil.org; Fri, 18 Sep 2020 04:06:08 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:42902)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1kJ9OI-0003Lf-EH
 for bug-guix@gnu.org; Fri, 18 Sep 2020 01:57:02 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:57106)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1kJ9OI-0008RR-4H
 for bug-guix@gnu.org; Fri, 18 Sep 2020 01:57:02 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1kJ9OI-0003P0-3V
 for bug-guix@gnu.org; Fri, 18 Sep 2020 01:57:02 -0400
X-Loop: help-debbugs@gnu.org
Subject: bug#43420: icecat causes pulseaudio to crash
Resent-From: Nathan Dehnel <ncdehnel@gmail.com>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-guix@gnu.org
Resent-Date: Fri, 18 Sep 2020 05:57:02 +0000
Resent-Message-ID: <handler.43420.B43420.160040857513016@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 43420
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Mark H Weaver <mhw@netris.org>
Received: via spool by 43420-submit@debbugs.gnu.org id=B43420.160040857513016
 (code B ref 43420); Fri, 18 Sep 2020 05:57:02 +0000
Received: (at 43420) by debbugs.gnu.org; 18 Sep 2020 05:56:15 +0000
Received: from localhost ([127.0.0.1]:40419 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1kJ9NX-0003Ns-5L
 for submit@debbugs.gnu.org; Fri, 18 Sep 2020 01:56:15 -0400
Received: from mail-wr1-f48.google.com ([209.85.221.48]:35264)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ncdehnel@gmail.com>) id 1kJ9NU-0003Nc-OD
 for 43420@debbugs.gnu.org; Fri, 18 Sep 2020 01:56:13 -0400
Received: by mail-wr1-f48.google.com with SMTP id e16so4327366wrm.2
 for <43420@debbugs.gnu.org>; Thu, 17 Sep 2020 22:56:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; 
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=3/7RP85skArC0N8ZETcGXpcgjMqLE5sDbiaQxRdSJ34=;
 b=ebXQ2NCu34O1xunlX3Y34QA2wCVM9tNwHnSJHOB+DAFiZZVJcwg8jWr3KxA1b9US7b
 Ip8cpEg81YwHL46U4nI0b1Yel3yFUcApYo0JaMkIMD9kF4jLebn4cJLUadt8l782VV6+
 RjhTY8CH1XkXMmOSP+4hGTH+5Dmc93IgEEbX8f5f0TyjS/V5+KgmeQCM+XUC+qzTIzq+
 hbIGkJRdKzBl93n/nKQlHHb8jCXuaxoJN5jAxzagFLTqVPwbS1ZRv21BQ1htH+NqZ09V
 tOLhsoPrXopUH/nOHsI34eOCtGj7SwUuxhlRUOizK4YXIUqODcRc5bf0OdcjiSTXPoWR
 ep5g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=3/7RP85skArC0N8ZETcGXpcgjMqLE5sDbiaQxRdSJ34=;
 b=WSRqtd7svByAAUmYLtGdocdBgkJ6qPMCM4F+ip2yPaQ7eUCatc/es4msycesiSqGy7
 m4X37a8APIi7WULz6tIZvydx4Z56/DNWHJ0i7LzIPHlR+u6zccnNKMFX35b28LKoBzsd
 3sWjZ6AuG2N60qoV8MP7B9BZrUlLFobej7Xij1jtrjDGprwBkbavYERENFs5ROCxvtxS
 GBn+wUfcRCCiKjVyk5rHbawpggilBG5jbmKUUQgz8xoFnB0Mv+LQubYNrgBjpUIGUmDG
 qKCQU460FZk4VMBlgGr8kCAHpjcI1JHMpKuUp8D0hrKD9KFaFyyK7TEyVYQJ3MCb946G
 taDA==
X-Gm-Message-State: AOAM530CAaBVkhYjpn2YT1NVhIw45Re2neUVM6SfT2GRTwTve2nKrN9W
 Wb55EqLU1BfLdk6yN/otUhjjPkwIOauEggRojZtRAe2b2jm6iQ==
X-Google-Smtp-Source: ABdhPJwLrTaAyojLUIxqH5tJiQLmmnqV6ccjO73dfU6alsNMi1afEGyDtq1I3mbu9qh7WbVVaVoNImrmmFHdnM68lGI=
X-Received: by 2002:adf:fa02:: with SMTP id m2mr35516144wrr.273.1600408566620; 
 Thu, 17 Sep 2020 22:56:06 -0700 (PDT)
MIME-Version: 1.0
References: <CAEEhgEt3vMm4Eu-wiecdTGeurvrbLWwrZ14GaxtH5rvgh_ErLQ@mail.gmail.com>
 <87imce9jah.fsf@netris.org>
 <CAEEhgEuG=rxLm+M2QmJtfJ1BRnynwsMkpes0QZ3k+NpRONt0Hg@mail.gmail.com>
 <87d02j8xtz.fsf@netris.org>
In-Reply-To: <87d02j8xtz.fsf@netris.org>
From: Nathan Dehnel <ncdehnel@gmail.com>
Date: Fri, 18 Sep 2020 00:55:55 -0500
Message-ID: <CAEEhgEuzq1LPQ5FqeYRhkvf5FR8hfKSf5NXt=g83=4LgfX9rRA@mail.gmail.com>
Content-Type: multipart/alternative; boundary="0000000000001be49b05af902867"
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-Spam-Score: -1.0 (-)
X-Mailman-Approved-At: Fri, 18 Sep 2020 04:05:56 -0400
X-BeenThere: bug-guix@gnu.org
List-Id: Bug reports for GNU Guix <bug-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-guix>
List-Post: <mailto:bug-guix@gnu.org>
List-Help: <mailto:bug-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=subscribe>
Cc: 43420@debbugs.gnu.org
Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org
Sender: "bug-Guix" <bug-guix-bounces+larch=yhetil.org@gnu.org>
X-Scanner: scn0
Authentication-Results: aspmx1.migadu.com;
	dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=ebXQ2NCu;
	dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none);
	spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org
X-Spam-Score: 0.09
X-TUID: IVjbO2qN1S6S

--0000000000001be49b05af902867
Content-Type: text/plain; charset="UTF-8"

Removing ~/.config/pulse fixed it, I think because it removed a config file
that was loading a couple of modules.

Try this:

1. start JACK1
2. pulseaudio -L module-jack-source -L module-jack-sink
3. open icecat and mess around with the seekbar

On Fri, Sep 18, 2020 at 12:21 AM Mark H Weaver <mhw@netris.org> wrote:

> Hi Nathan,
>
> Nathan Dehnel <ncdehnel@gmail.com> writes:
> > Pulseaudio is set to autospawn by default, which is maybe why it seems
> like
> > nothing is happening on your computer. Maybe try disabling autospawn and
> > try running pulse in a shell.
>
> In my previous tests, I ran pulseaudio from a shell, but I did not
> disable autospawn.  I've now done a second round of more careful tests.
>
> First, I disabled autospawn, ran pulseaudio from a shell capturing its
> output, and made sure it was the only pulseaudio server running.  I then
> performed the same tests that I described in my last email, using
> icecat-68.12.0-guix0-preview1 with a fresh profile.  I made sure that
> only one pulseaudio server was running, and that icecat was really
> talking to it.  These tests were done on a Guix system based on commit
> 098593e61d0e3ddd8b3dc2225301d6020bf9446b (Sep 7) of Guix's master
> branch.  I had two videos playing simultaneously, seeked around in the
> videos, switched tabs, etc, and my pulseaudio server did not crash.  Its
> output was only one line, printed during startup:
>
> --8<---------------cut here---------------start------------->8---
> E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed:
> org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not
> provided by any .service files
> --8<---------------cut here---------------end--------------->8---
>
> I'm not hitting the assertion failure that you are:
>
> --8<---------------cut here---------------start------------->8---
> E: [pulseaudio] module-stream-restore.c: Assertion
> 'pa_hashmap_put(u->dbus_entries, de->entry_name, de) == 0' failed at
> modules/module-stream-restore.c:1406, function subscribe_callback().
> Aborting.
> --8<---------------cut here---------------end--------------->8---
>
> Here's the failing assertion in its context:
>
>
> https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/blob/v13.0/src/modules/module-stream-restore.c#L1406
>
> I looked for reports of this assertion failing, and found this:
>
>   https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1267234
>
> In the third comment, someone reported experiencing crashes with the
> same assertion failure, and that removing their ~/.pulse fixed the
> problem:
>
>
> https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1267234/comments/3
>
> That was in 2014.  Since then, it looks like ~/.pulse has been moved,
> possibly to ~/.config/pulse.
>
> I also found an earlier report from 2012 of this assertion failing,
>
>   https://bugs.freedesktop.org/show_bug.cgi?id=44522
>
> and the brief summary is that fixing it involved making the code in
> module-stream-restore more robust in its handling of upgrades from an
> older version of a database.  I'm guessing that this refers to the
> database files in ~/.config/pulse, with the older location, still
> honored, being ~/.pulse.
>
> So, my next suggestion is to kill pulseaudio, delete (or moving out of
> the way) both ~/.pulse and ~/.config/pulse, restart it, and then see if
> you can still reproduce the problem.
>
> If you *can* still reproduce it, then it's time to provide much more
> detailed information about your system, any relevant customizations or
> oddities to your setup, whether you're running Guix on top of another
> system and if so which system, 'guix describe' output, the precise
> versions (and hashes) of pulseaudio and icecat, and precise instructions
> on how to reproduce the problem from a fresh icecat profile.
>
>      Thanks,
>        Mark
>

--0000000000001be49b05af902867
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Removing ~/.config/pulse fixed it, I think because it=
 removed a config file that was loading a couple of modules.</div><div><br>=
</div><div>Try this:</div><div><br></div><div>1. start JACK1<br></div><div>=
2. pulseaudio -L module-jack-source -L module-jack-sink</div><div>3. open i=
cecat and mess around with the seekbar<br></div></div><br><div class=3D"gma=
il_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Sep 18, 2020 at 12:=
21 AM Mark H Weaver &lt;<a href=3D"mailto:mhw@netris.org">mhw@netris.org</a=
>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px=
 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi =
Nathan,<br>
<br>
Nathan Dehnel &lt;<a href=3D"mailto:ncdehnel@gmail.com" target=3D"_blank">n=
cdehnel@gmail.com</a>&gt; writes:<br>
&gt; Pulseaudio is set to autospawn by default, which is maybe why it seems=
 like<br>
&gt; nothing is happening on your computer. Maybe try disabling autospawn a=
nd<br>
&gt; try running pulse in a shell.<br>
<br>
In my previous tests, I ran pulseaudio from a shell, but I did not<br>
disable autospawn.=C2=A0 I&#39;ve now done a second round of more careful t=
ests.<br>
<br>
First, I disabled autospawn, ran pulseaudio from a shell capturing its<br>
output, and made sure it was the only pulseaudio server running.=C2=A0 I th=
en<br>
performed the same tests that I described in my last email, using<br>
icecat-68.12.0-guix0-preview1 with a fresh profile.=C2=A0 I made sure that<=
br>
only one pulseaudio server was running, and that icecat was really<br>
talking to it.=C2=A0 These tests were done on a Guix system based on commit=
<br>
098593e61d0e3ddd8b3dc2225301d6020bf9446b (Sep 7) of Guix&#39;s master<br>
branch.=C2=A0 I had two videos playing simultaneously, seeked around in the=
<br>
videos, switched tabs, etc, and my pulseaudio server did not crash.=C2=A0 I=
ts<br>
output was only one line, printed during startup:<br>
<br>
--8&lt;---------------cut here---------------start-------------&gt;8---<br>
E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.=
DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .serv=
ice files<br>
--8&lt;---------------cut here---------------end---------------&gt;8---<br>
<br>
I&#39;m not hitting the assertion failure that you are:<br>
<br>
--8&lt;---------------cut here---------------start-------------&gt;8---<br>
E: [pulseaudio] module-stream-restore.c: Assertion &#39;pa_hashmap_put(u-&g=
t;dbus_entries, de-&gt;entry_name, de) =3D=3D 0&#39; failed at modules/modu=
le-stream-restore.c:1406, function subscribe_callback().<br>
Aborting.<br>
--8&lt;---------------cut here---------------end---------------&gt;8---<br>
<br>
Here&#39;s the failing assertion in its context:<br>
<br>
=C2=A0 <a href=3D"https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/bl=
ob/v13.0/src/modules/module-stream-restore.c#L1406" rel=3D"noreferrer" targ=
et=3D"_blank">https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/blob/v=
13.0/src/modules/module-stream-restore.c#L1406</a><br>
<br>
I looked for reports of this assertion failing, and found this:<br>
<br>
=C2=A0 <a href=3D"https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug=
/1267234" rel=3D"noreferrer" target=3D"_blank">https://bugs.launchpad.net/u=
buntu/+source/pulseaudio/+bug/1267234</a><br>
<br>
In the third comment, someone reported experiencing crashes with the<br>
same assertion failure, and that removing their ~/.pulse fixed the<br>
problem:<br>
<br>
=C2=A0 <a href=3D"https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug=
/1267234/comments/3" rel=3D"noreferrer" target=3D"_blank">https://bugs.laun=
chpad.net/ubuntu/+source/pulseaudio/+bug/1267234/comments/3</a><br>
<br>
That was in 2014.=C2=A0 Since then, it looks like ~/.pulse has been moved,<=
br>
possibly to ~/.config/pulse.<br>
<br>
I also found an earlier report from 2012 of this assertion failing,<br>
<br>
=C2=A0 <a href=3D"https://bugs.freedesktop.org/show_bug.cgi?id=3D44522" rel=
=3D"noreferrer" target=3D"_blank">https://bugs.freedesktop.org/show_bug.cgi=
?id=3D44522</a><br>
<br>
and the brief summary is that fixing it involved making the code in<br>
module-stream-restore more robust in its handling of upgrades from an<br>
older version of a database.=C2=A0 I&#39;m guessing that this refers to the=
<br>
database files in ~/.config/pulse, with the older location, still<br>
honored, being ~/.pulse.<br>
<br>
So, my next suggestion is to kill pulseaudio, delete (or moving out of<br>
the way) both ~/.pulse and ~/.config/pulse, restart it, and then see if<br>
you can still reproduce the problem.<br>
<br>
If you *can* still reproduce it, then it&#39;s time to provide much more<br=
>
detailed information about your system, any relevant customizations or<br>
oddities to your setup, whether you&#39;re running Guix on top of another<b=
r>
system and if so which system, &#39;guix describe&#39; output, the precise<=
br>
versions (and hashes) of pulseaudio and icecat, and precise instructions<br=
>
on how to reproduce the problem from a fresh icecat profile.<br>
<br>
=C2=A0 =C2=A0 =C2=A0Thanks,<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0Mark<br>
</blockquote></div>

--0000000000001be49b05af902867--