From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <bug-guix-bounces+larch=yhetil.org@gnu.org>
Received: from mp2 ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms11 with LMTPS
	id 6nbKIw1EZF9WfAAA0tVLHw
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 18 Sep 2020 05:22:21 +0000
Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp2 with LMTPS
	id 2DNwHw1EZF8LDgAAB5/wlQ
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 18 Sep 2020 05:22:21 +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 E7C4A9401D0
	for <larch@yhetil.org>; Fri, 18 Sep 2020 05:22:20 +0000 (UTC)
Received: from localhost ([::1]:56584 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 1kJ8qg-0006Nk-Ss
	for larch@yhetil.org; Fri, 18 Sep 2020 01:22:18 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:35556)
 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 1kJ8qQ-0006NW-T1
 for bug-guix@gnu.org; Fri, 18 Sep 2020 01:22:03 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:57086)
 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 1kJ8qQ-0003vk-Jf
 for bug-guix@gnu.org; Fri, 18 Sep 2020 01:22:02 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1kJ8qQ-0002T6-Eo
 for bug-guix@gnu.org; Fri, 18 Sep 2020 01:22:02 -0400
X-Loop: help-debbugs@gnu.org
Subject: bug#43420: icecat causes pulseaudio to crash
Resent-From: Mark H Weaver <mhw@netris.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-guix@gnu.org
Resent-Date: Fri, 18 Sep 2020 05:22:02 +0000
Resent-Message-ID: <handler.43420.B43420.16004065169467@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: Nathan Dehnel <ncdehnel@gmail.com>
Received: via spool by 43420-submit@debbugs.gnu.org id=B43420.16004065169467
 (code B ref 43420); Fri, 18 Sep 2020 05:22:02 +0000
Received: (at 43420) by debbugs.gnu.org; 18 Sep 2020 05:21:56 +0000
Received: from localhost ([127.0.0.1]:40399 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1kJ8qK-0002Sd-E8
 for submit@debbugs.gnu.org; Fri, 18 Sep 2020 01:21:56 -0400
Received: from world.peace.net ([64.112.178.59]:53022)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mhw@netris.org>) id 1kJ8qH-0002SO-Sf
 for 43420@debbugs.gnu.org; Fri, 18 Sep 2020 01:21:54 -0400
Received: from mhw by world.peace.net with esmtpsa
 (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92)
 (envelope-from <mhw@netris.org>)
 id 1kJ8qB-00058m-B6; Fri, 18 Sep 2020 01:21:47 -0400
From: Mark H Weaver <mhw@netris.org>
In-Reply-To: <CAEEhgEuG=rxLm+M2QmJtfJ1BRnynwsMkpes0QZ3k+NpRONt0Hg@mail.gmail.com>
References: <CAEEhgEt3vMm4Eu-wiecdTGeurvrbLWwrZ14GaxtH5rvgh_ErLQ@mail.gmail.com>
 <87imce9jah.fsf@netris.org>
 <CAEEhgEuG=rxLm+M2QmJtfJ1BRnynwsMkpes0QZ3k+NpRONt0Hg@mail.gmail.com>
Date: Fri, 18 Sep 2020 01:20:29 -0400
Message-ID: <87d02j8xtz.fsf@netris.org>
MIME-Version: 1.0
Content-Type: text/plain
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-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=none;
	dmarc=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: -1.01
X-TUID: yio8FKpOYIiD

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