Opened 8 months ago

Closed 8 months ago

#32583 closed defect (duplicate)

No sound "failed to init cubeb"

Reported by: perceptron Owned by: tbb-team
Priority: Medium Milestone:
Component: Applications/Tor Browser Version: Tor: 0.4.1.6
Severity: Normal Keywords: no_sound cubeb
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Tor-Browser 9.0.1 is unable to play sound on Linux.
GNU/Linux 4.19.85 #1 SMP
Distribution: Slackware 64 Current

Pulseaudio 13.0 is installed and running in user mode.

In standard Firefox 70.0.1 and 68.2.0 ESR there is no such problem.

Pulseaudio debug output shows no sign of any requests to access to sink.

Fully replicable on fresh Slackware installation. No configuration changes needed.

Child Tickets

Attachments (1)

tor_log.log (7.4 KB) - added by perceptron 8 months ago.
Startup verbose log

Download all attachments as: .zip

Change History (11)

Changed 8 months ago by perceptron

Attachment: tor_log.log added

Startup verbose log

comment:1 Changed 8 months ago by arma

Hm!

A couple of random google searches for 'cubeb slackware' point me to
https://www.linuxquestions.org/questions/slackware-14/firefox-in-current-alsa-sound-4175622116/
and
https://support.mozilla.org/en-US/questions/1209964
which suggests a possible sandboxing problem.

That second url has the intriguing statement "pulseaudio is running. Removing '--disallow-module-loading' solves my problem. This security measure is in Slackware's rc.pulseaudio. I'll tell them about it."

comment:2 Changed 8 months ago by arma

https://www.linuxquestions.org/questions/linux-software-2/no-sound-in-firefox-61-a-4175633217/ has some more people struggling with slackware, firefox, and pulseaudio.

comment:3 Changed 8 months ago by perceptron

Hi,

'--disallow-module-loading' in Slackware is used only if pulseaudio is run in system mode(as root)
In user mode there is no such restriction.

I've tried other tips from first link, didn't help. I'm unwilling to lowering sandbox.content.level.

comment:4 in reply to:  3 Changed 8 months ago by arma

Replying to perceptron:

I'm unwilling to lowering sandbox.content.level.

That might still be a good thing to try, once, to see if it works. You'll learn more about the issue either way.

comment:5 Changed 8 months ago by perceptron

Of course
switching security.sandbox.content.level to 0 didn't change anything.

separately switched media.cubeb.sandbox to false
And now warning with cubeb look like this:

[Child 22393, MediaPlayback #2] WARNING: 7f6508698120 Can't get cubeb context!: file /var/tmp/build/firefox-5e83d0a74e4d/dom/media/AudioStream.cpp, line 351
[Child 22393, MediaPlayback #2] WARNING: Decoder=7f65053acc00 [OnMediaSinkAudioError]: file /var/tmp/build/firefox-5e83d0a74e4d/dom/media/MediaDecoderStateMachine.cpp, line 3639

Also in Tor-browser on youtube.com page (which I use for testing purposes) now claims that Pulseaudio isn't installed(browser shows popup message)

It is like, because of sandboxing, Browser is unable to detect/communicate with Pulseaudio.

Last edited 8 months ago by perceptron (previous) (diff)

comment:6 Changed 8 months ago by perceptron

Ok, I've managed to get sound running in Tor-Browser.
It works ok if Pulseaudio is started in system mode.

Also I've found more precise problem analysis and its bypass in defect 29360.

Pulseaudio in user mode prevents connection from Tor-Browser as its have wrong auth-cookie.
Copying or creating a symlink to the proper ".esd_auth" from user's $HOME allows Browser to use sound server.

comment:7 Changed 8 months ago by pili

Resolution: worksforme
Status: newclosed

Sounds like this is working for you now, please re-open if this is not the case.

comment:8 Changed 8 months ago by pili

actually, I'm told this sounds like a duplicate of #29360

comment:9 Changed 8 months ago by pili

Resolution: worksforme
Status: closedreopened

comment:10 Changed 8 months ago by pili

Resolution: duplicate
Status: reopenedclosed
Note: See TracTickets for help on using tickets.