X2Go Bug report logs - #422
Windows PulseAudio 3.0 and later fail to start due to missing cookie

version graph

Package: x2goclient; Maintainer for x2goclient is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goclient is src:x2goclient.

Reported by: Michael DePaulo <mikedep333@gmail.com>

Date: Thu, 30 Jan 2014 00:35:01 UTC

Severity: normal

Tags: build-win32, pending

Found in version 4.0.1.3

Fixed in version 4.0.2.0

Done: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#422: Just Create the .config/pulse/ dir!
Reply-To: Michael DePaulo <mikedep333@gmail.com>, 422@bugs.x2go.org
Resent-From: Michael DePaulo <mikedep333@gmail.com>
Resent-To: x2go-dev@lists.berlios.de
Resent-CC: X2Go Developers <x2go-dev@lists.berlios.de>
X-Loop: owner@bugs.x2go.org
Resent-Date: Fri, 14 Mar 2014 05:25:01 +0000
Resent-Message-ID: <handler.422.B422.139477470027934@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 422
X-X2Go-PR-Package: x2goclient
X-X2Go-PR-Keywords: build-win32
Received: via spool by 422-submit@bugs.x2go.org id=B422.139477470027934
          (code B ref 422); Fri, 14 Mar 2014 05:25:01 +0000
Received: (at 422) by bugs.x2go.org; 14 Mar 2014 05:25:00 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM,
	T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham version=3.3.2
Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178])
	by ymir (Postfix) with ESMTPS id 8A70F5DB21
	for <422@bugs.x2go.org>; Fri, 14 Mar 2014 06:24:59 +0100 (CET)
Received: by mail-lb0-f178.google.com with SMTP id s7so1420111lbd.9
        for <422@bugs.x2go.org>; Thu, 13 Mar 2014 22:24:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:date:message-id:subject:from:to:content-type;
        bh=W430feAvvvt9JaRbtIhr9LqnpBfsyTaB60vLbqUugHM=;
        b=iVQTzqqG6jvInH9AZgvFuog05OavLQYgfRj9l1QN238cKSTWeggUvk3itHixJMNDYo
         OZYbvkjnfIzKvL7c9xw5xhcOY9SKuIGqsQfGxLdYHqkENfNWp37mJHnzWi2Lt0FYd/rC
         IenXjj68PSW62/YvV2EiFYr5qiZPdGvaPQhQP4sp/RkxZD2H5zmPUXo67dR0yDVRhk/o
         7fbdJFCX+1mxPzSChB5t++gADM3APHltn1omYjjK2+c7FB8M+YQ5LhwHOtTFDG1OFoUY
         g83gBKJKFNyBMypvuvQzrJih4vq2OMugHJEA+tohBnHd81AfVdYX6D9P/E6di84W9ryM
         jnpw==
MIME-Version: 1.0
X-Received: by 10.152.23.227 with SMTP id p3mr602073laf.31.1394774698885; Thu,
 13 Mar 2014 22:24:58 -0700 (PDT)
Received: by 10.114.176.105 with HTTP; Thu, 13 Mar 2014 22:24:58 -0700 (PDT)
Date: Fri, 14 Mar 2014 01:24:58 -0400
Message-ID: <CAMKht8gYNDdbrT7M5YtMT3PqS-i8SVRCQ2FsCkogy-b1wn0UiA@mail.gmail.com>
From: Michael DePaulo <mikedep333@gmail.com>
To: 422@bugs.x2go.org
Content-Type: text/plain; charset=ISO-8859-1
After spending lots of time debugging this issue, largely involving
comparing the debug output from pulseaudio.exe, I believe I've
determined a simple fix.

I observed that if I create this directory ahead of time, the
pulseaudio.exe process launched by x2goclient.exe creates the "cookie"
file under it & stays running.
C:\Users\mike\.x2go\pulse\.config\pulse\

Therefore, I believe a simple fix for this bug is for x2goclient.exe,
regardless of what version of pulseaudio.exe is installed, to:
1. Create that directory (if it DNE).
2. Include logic around onmainwindow.cpp:5149 to use the cookie at
that path. If the cookie is not in that location, fall back to
".pulse-cookie". We already have this logic for Linux.

I plan to write, test, and (hopefully) commit this fix tomorrow night.

Note that we cannot override the cookie location due to PulseAudio Bug 75006:
https://bugs.freedesktop.org/show_bug.cgi?id=75006

Note that although I am not sure why PulseAudio.exe is incapable of
creating this file when launched by x2goclient.exe, compared to when
it is launched by cmd.exe, I believe this is still safe approach to
solving the bug.
I say this because PulseAudio devs's comments & commit messages make
it clear that they support both the directory already existing, and
the directory not already existing.
For example:
http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/pulsecore/authkey.c?id=a91359956f166005749247eaa5f4001a4555689d

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Fri Apr 19 12:58:47 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.