Closed tudorapo closed 5 years ago
Playing a wav file with mpv, with dtrace enabled results in this:
[ao/alsa] Write error: File descriptor in bad state 1573163160.560 [apulse 22074] Z pa_stream_set_underflow_callback [apulse] [error] do_connect_pcm: can't get initial hw parameters for playback device "default". Error code 1 (Operation not permitted) [apulse] [error] do_connect_pcm: failed to open ALSA device. Apulse does no resampling or format conversion, leaving that task to ALSA plugins. Ensure that selected device is capable of playing a particular sample format at a particular rate. They have to be supported by either hardware directly, or by "plug" and "dmix" ALSA plugins which will perform required conversions on CPU. 1573163160.561 [apulse 22074] Z pa_context_errno c=0x55de53b8cf70 ALSA lib pcm_pulse.c:743:(pulse_prepare) PulseAudio: Unable to create stream: Oops.
It was pulseaudi which sneaked up to the system, apt purge pulseaudio pulseaudio-utils fixed it. Sorry for the noise.
Hi!
Apulse/sound stopped working, emitting this error:
[apulse] [error] do_connect_pcm: can't get initial hw parameters for playback device "default". Error code 1 (Operation not permitted) [apulse] [error] do_connect_pcm: failed to open ALSA device. Apulse does no resampling or format conversion, leaving that task to ALSA plugins. Ensure that selected device is capable of playing a particular sample format at a particular rate. They have to be supported by either hardware directly, or by "plug" and "dmix" ALSA plugins which will perform required conversions on CPU. [Child 26930, MediaDecoderStateMachine #1] WARNING: 7f341e9fe230 OpenCubeb() failed to init cubeb: file /builds/worker/workspace/build/src/dom/media/AudioStream.cpp, line 313 [Child 26930, MediaDecoderStateMachine #1] WARNING: Decoder=7f3421d1b400 [OnMediaSinkAudioError]: file /builds/worker/workspace/build/src/dom/media/MediaDecoderStateMachine.cpp, line 3639
The relevant configuration is:
user_pref("security.sandbox.content.syscall_whitelist", "16"); user_pref("security.sandbox.content.write_path_whitelist", "/dev/snd/");
I tried to debug it with MOZ_SANDBOX_LOGGING=1, and I can see plenty of chatter, but nothing about and around the attempts at making sound.
Apulse is the latest version in devuan, 0.1.12-2.
What else I can do to debug further?