Bug 28931

Summary: chromium couldn´t connect to pulseaudio
Product: Mageia Reporter: Anjelika Hueva <desire1824>
Component: RPM PackagesAssignee: Christiaan Welvaart <cjw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: davidwhodgins, ouaurelien
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: chromium-browser-stable-89.0.4389.128-1.mga9.src.rpm CVE:
Status comment:

Description Anjelika Hueva 2021-05-15 18:17:28 CEST
Description: Browser won´t play any sounds and when it started couldn´t connect to pulseaudio.


Version-Release number of selected component (if applicable): chromium-browser-stable-89.0.4389.128-1.mga9


Failed to create secure directory (/run/user/1000/pulse): Operation not permitted
ALSA lib pcm_direct.c:2014:(snd1_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)
[52116:52116:0515/185157.374016:ERROR:alsa_util.cc(204)] PcmOpen: default,Invalid argument
ALSA lib pcm_direct.c:2014:(snd1_pcm_direct_parse_open_conf) The field ipc_gid must be a valid group (create group audio)
[52116:52116:0515/185157.382503:ERROR:alsa_util.cc(204)] PcmOpen: plug:default,Invalid argument
The futex facility returned an unexpected error code.
Received signal 6
#0 0x557df82ae5e9 base::debug::CollectStackTrace()
#1 0x557df81fd1b6 base::debug::StackTrace::StackTrace()
#2 0x557df82ae029 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x7fab105e29d0 (/usr/lib64/libpthread-2.33.so+0x129cf)
#4 0x7fab0c5f8c1d __GI_raise
#5 0x7fab0c5e4526 __GI_abort
#6 0x7fab0c638570 __libc_message
#7 0x7fab0c638592 __GI___libc_fatal
#8 0x7fab105e46ac __futex_abstimed_wait_common64
#9 0x7fab105de468 __pthread_cond_wait
#10 0x557df82be6d7 base::ConditionVariable::Wait()
#11 0x557df82bf488 base::WaitableEvent::TimedWait()
#12 0x557df82bf60f base::WaitableEvent::Wait()
#13 0x557df821a3a5 base::MessagePumpDefault::Run()
#14 0x557df82814e0 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run()
#15 0x557df824aa9c base::RunLoop::Run()
#16 0x557df7bcb4e1 content::UtilityMain()
#17 0x557df7fea548 content::RunZygote()
#18 0x557df7feb0b8 content::ContentMainRunnerImpl::Run()
#19 0x557df7fe8967 content::RunContentProcess()
#20 0x557df7fe90b2 content::ContentMain()
#21 0x557df3d90f75 ChromeMain
#22 0x7fab0c5e57dd __libc_start_main
#23 0x557df3d90dba _start
  r8: 0000000000000000  r9: 00007ffc365ee780 r10: 0000000000000008 r11: 0000000000000246
 r12: 00007ffc365ee9e0 r13: 0000000000001000 r14: 0000000000000000 r15: 00007fab105f8000
  di: 0000000000000002  si: 00007ffc365ee780  bp: 00007fab0c772a90  bx: 00007fab09c92c40
  dx: 0000000000000000  ax: 0000000000000000  cx: 00007fab0c5f8c1d  sp: 00007ffc365ee7f8
  ip: 00007fab0c5f8c1d efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
 trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]


Steps to Reproduce:
1. Launch the browser and play the audio.
Comment 1 Lewis Smith 2021-05-15 20:44:27 CEST
> The field ipc_gid must be a valid group (create group audio)
Obvious question: do you have this group? My system does.

I wonder whether this is related to Bug 28891, since that complains about Chromium sound on Mageia 8 - but the same version: 89.0.4389.128-1.

CC: (none) => lewyssmith, ouaurelien
Status: NEW => NEEDINFO

Comment 2 Dave Hodgins 2021-05-15 21:22:07 CEST
The setup package that provides the /etc/group file includes audio::81: among
the 30 groups defined on all Mageia installs, so everyone has the audio group
unless they've explicitly removed the group.

Whether or not users are members of the audio group is up to the system
administrator.

I don't have any cauldron installs yet. Probably best to ask in the dev ml
or wait to see if it gets fixed. Cauldron is in early development for Mageia 9,
so expected to be very unstable.

CC: (none) => davidwhodgins

Comment 3 Aurelien Oudelet 2021-05-16 02:14:59 CEST
@reporter,

What desktop do you use?

Could you install inxi (urpmi inxi) and paste here output of this command:

$ inxi -SAxx
Comment 4 Anjelika Hueva 2021-05-16 12:48:48 CEST
(In reply to Aurelien Oudelet from comment #3)
> @reporter,
> 
> What desktop do you use?
> 
> Could you install inxi (urpmi inxi) and paste here output of this command:
> 
> $ inxi -SAxx

Hello!

inxi output:

System:    Host: dhcppc0 Kernel: 5.12.4-desktop-1.mga9 x86_64 bits: 64 compiler: gcc v: 11.1.1 Desktop: KDE Plasma 5.21.5 
           tk: Qt 5.15.2 wm: kwin_x11 dm: LightDM, SDDM Distro: Mageia 9 mga9 
Audio:     Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Lenovo driver: snd_hda_intel v: kernel 
           bus-ID: 00:1b.0 chip-ID: 8086:1e20 
           Sound Server-1: ALSA v: k5.12.4-desktop-1.mga9 running: yes 
           Sound Server-2: sndio v: N/A running: no 
           Sound Server-3: JACK v: 1.9.18 running: no 
           Sound Server-4: PulseAudio v: 14.2.0-4.mga9 running: yes 
           Sound Server-5: PipeWire v: 0.3.23 running: no
Comment 5 Anjelika Hueva 2021-05-16 13:02:26 CEST
(In reply to Lewis Smith from comment #1)
> > The field ipc_gid must be a valid group (create group audio)
> Obvious question: do you have this group? My system does.
> 
> I wonder whether this is related to Bug 28891, since that complains about
> Chromium sound on Mageia 8 - but the same version: 89.0.4389.128-1.

Group audio is created.
I´m trying to other builds of chromium.
Latest build from here: 
https://download-chromium.appspot.com/?platform=Linux_x64&type=snapshots - 
Have the same issue.
But in chromium build installed from flatpak all works perfectly.
Comment 6 Anjelika Hueva 2021-05-16 14:19:39 CEST
I´m look around and find this thread:
https://bugs.gentoo.org/699776
and that patch: https://699776.bugs.gentoo.org/attachment.cgi?id=595694
Think, maybe it was cause of that but could not verify it on a deal.
Thanks for understanding.
Comment 7 Anjelika Hueva 2021-05-16 17:23:48 CEST
Find the quick workaround! Run chromium-browser with --disable-features=AudioServiceOutOfProcess.

https://bugs.chromium.org/p/chromium/issues/detail?id=1066799
Comment 8 Lewis Smith 2021-05-17 20:55:37 CEST
Thank you Anjelika for all your research.

This looks sensible to assign to Christiaan.

Assignee: bugsquad => cjw
Status: NEEDINFO => NEW

Comment 9 Christiaan Welvaart 2021-05-24 11:17:24 CEST
I added this option (--disable-features=AudioServiceOutOfProcess) in the cauldron build's wrapper script for now, since I still don't know what the cause is of the audio problems.
Lewis Smith 2021-05-25 21:14:55 CEST

CC: lewyssmith => (none)

Comment 10 Christiaan Welvaart 2023-06-27 18:27:31 CEST
No need to keep this bug open since the problem is resolved and the option may not even be needed anymore. Resolving as fixed.

Status: NEW => RESOLVED
Resolution: (none) => FIXED