From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 18 01:56:15 2020 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 ) 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 ) 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: <87imce9jah.fsf@netris.org> <87d02j8xtz.fsf@netris.org> In-Reply-To: <87d02j8xtz.fsf@netris.org> From: Nathan Dehnel Date: Fri, 18 Sep 2020 00:55:55 -0500 Message-ID: Subject: Re: bug#43420: icecat causes pulseaudio to crash To: Mark H Weaver Content-Type: multipart/alternative; boundary="0000000000001be49b05af902867" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43420 Cc: 43420@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --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 wrote: > Hi Nathan, > > Nathan Dehnel 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
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 i= cecat 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 <
n= cdehnel@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 a= nd
> try running pulse in a shell.

In my previous tests, I ran pulseaudio from a shell, but I did not
disable autospawn.=C2=A0 I've now done a second round of more careful t= ests.

First, I disabled autospawn, ran pulseaudio from a shell capturing its
output, and made sure it was the only pulseaudio server running.=C2=A0 I th= en
performed the same tests that I described in my last email, using
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
talking to it.=C2=A0 These tests were done on a Guix system based on commit=
098593e61d0e3ddd8b3dc2225301d6020bf9446b (Sep 7) of Guix's master
branch.=C2=A0 I had two videos playing simultaneously, seeked around in the=
videos, switched tabs, etc, and my pulseaudio server did not crash.=C2=A0 I= ts
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 .serv= ice 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-&g= t;dbus_entries, de->entry_name, de) =3D=3D 0' failed at modules/modu= le-stream-restore.c:1406, function subscribe_callback().
Aborting.
--8<---------------cut here---------------end--------------->8---

Here's the failing assertion in its context:

=C2=A0 https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/blob/v= 13.0/src/modules/module-stream-restore.c#L1406

I looked for reports of this assertion failing, and found this:

=C2=A0 https://bugs.launchpad.net/u= buntu/+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:

=C2=A0 https://bugs.laun= chpad.net/ubuntu/+source/pulseaudio/+bug/1267234/comments/3

That was in 2014.=C2=A0 Since then, it looks like ~/.pulse has been moved,<= br> possibly to ~/.config/pulse.

I also found an earlier report from 2012 of this assertion failing,

=C2=A0 https://bugs.freedesktop.org/show_bug.cgi= ?id=3D44522

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.=C2=A0 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<= br> versions (and hashes) of pulseaudio and icecat, and precise instructions on how to reproduce the problem from a fresh icecat profile.

=C2=A0 =C2=A0 =C2=A0Thanks,
=C2=A0 =C2=A0 =C2=A0 =C2=A0Mark
--0000000000001be49b05af902867--