X2Go Bug report logs - #384
Sound stopped working on Linux X2Goclient, or: Lookin' For Cookie In All The Wrong Places

version graph

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

Reported by: Stefan Baur <newsgroups.mail2@stefanbaur.de>

Date: Mon, 30 Dec 2013 00:15:01 UTC

Severity: important

Tags: pending

Found in version 4.0.1.2

Fixed in version 4.0.1.3

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

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):

Received: (at submit) by bugs.x2go.org; 30 Dec 2013 00:10:22 +0000
From newsgroups.mail2@stefanbaur.de  Mon Dec 30 01:10:21 2013
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS
	autolearn=ham version=3.3.2
Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171])
	by ymir (Postfix) with ESMTP id 85CDA5DB1C
	for <submit@bugs.x2go.org>; Mon, 30 Dec 2013 01:10:21 +0100 (CET)
Received: from [192.168.0.3] (HSI-KBW-149-172-200-27.hsi13.kabel-badenwuerttemberg.de [149.172.200.27])
	by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis)
	id 0MZysF-1Vk15818Xv-00KymX; Mon, 30 Dec 2013 01:10:21 +0100
Message-ID: <52C0BA00.3090208@stefanbaur.de>
Date: Mon, 30 Dec 2013 01:10:40 +0100
From: Stefan Baur <newsgroups.mail2@stefanbaur.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
MIME-Version: 1.0
To: submit@bugs.x2go.org
Subject: Sound stopped working on Linux X2Goclient, or: Lookin' For Cookie
 In All The Wrong Places
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V02:K0:vXWLljF1KJs+ZdHLvEALcSnnn2wrGS5Sdy84o1ODoaC
 kU2/JTKxBBCORYaL3uexXa8Gm/qcj06drSeqdIBCBRopuQqx7S
 Qh1JP+WhXzh3QQ4UUeXWysaFd7uw3t7Lr3a/1TGo9dRIVJCCFU
 QcaeBR+3jNeWs4FMVeXuwzFmu5hzT9cgoqO6cylAWHpIuaw/mR
 mqwskYFEsZF/6tzTLz2fQ7d6VpC63759EJdo4a2f3J/2IRahtN
 HM9ePZSIXEmundrnQIJaKEjE5vHrPFxslr5yB30ilzE/bOW25O
 Y2Y46APKrGCoqQK8g31y6lUXDHrqacjf0jVIADPg9dnLT67RLW
 /CACunBWxRZ0wZx5x0amuJgo+GJTwTO8yE03qfBD5
package: x2goclient
severity: important
version:4.0.1.2

With X2Goclient 4.0.1.2, sound stopped working on Linux clients. Windows 
clients were unaffected.

Manually copying over the .pulse-cookie file while the session was 
running fixed the issue.
Thanks to sunweaver (Mike#1) and dowdle on IRC, enough info was gathered 
that I could put two and two together as to what went wrong.
Initial theory was that a patch was added for pulseaudio 4 (which keeps 
the .pulse-cookie file in a different location), but said patch wouldn't 
check for the version of pulseaudio actually installed on the client.  
Debian Wheezy shipping with a 2.x release of pulseaudio, the location to 
copy the file from wouldn't exist, which would explain the behavior we'd 
seen.

Close, but no cookie. (Pun intended.)

stracing x2goclient shows this:

username@mycutelittletestmachine:~/.config/pulse$ grep -i cookie stracelog
read(7, "\0\0\0\4\300\250\0\264\0\0010\0\22MIT-MAGIC-COOKIE-1\0"..., 
4096) = 317
writev(6, [{"l\0\v\0\0\0\22\0\20\0\0\0", 12}, {"", 0}, 
{"MIT-MAGIC-COOKIE-1", 18}, {"\0\0", 2}, 
{"=[\272)\364\376\331l\327\242\365\307\302\2\17J", 16}, {"", 0}], 6) = 48
stat64("/home/username.config/pulse/cookie", 0xbfacb180) = -1 ENOENT (No 
such file or directory)
stat64("/home/username.pulse-cookie", 0xbfacb180) = -1 ENOENT (No such 
file or directory)

So while it DOES attempt to check both possible locations, it actually 
checks in /home/username.config/pulse/cookie and 
/home/username.pulse-cookie while it should check in 
/home/username/.config/pulse/cookie and /home/username/.pulse-cookie - 
the slash between username and directory is missing.

Please fix ASAP.

-Stefan
PS: If anyone actually remembers the game title the second part of the 
subject is referencing: Complimentary cookie for you!


Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Nov 21 18:25:20 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.