You are not logged in.

#1 2017-05-03 09:31:23

onecmc
Member
Registered: 2017-05-03
Posts: 10

[SOLVED] Chromium crashes on audio output

Hi everyone,

thanks for participating in the arch community, after years of mucking around and never being quite happy with the software I use day to day I finally feel like I've "arrived".

I'm having a problem with chromium since version 56- I'd frozen version 55 but the dependencies will no longer support it so I have to actually fix the problem.

chromium runs as normal until I do something that plays HTML5 audio, like visit youtube or soundcloud or another media site. I do not have flash installed, so HTML5 audio is the only audio available. Silent HTML5 video works fine, but video that has an audio track causes the crash.

Before the crash, chromium posts the following message

[4382:4633:0503/110141.635208:FATAL:pulse_output.cc(136)] Check failed: bytes_to_fill == static_cast<size_t>(params_.GetBytesPerBuffer()) (65472 vs. 65536)

Followed by a stack trace.

#0 0x55c79a94e006 <unknown>
#1 0x55c79a96740e <unknown>
#2 0x55c79916f002 <unknown>
#3 0x7f955550ad57 <unknown>
#4 0x7f954ee18ba1 <unknown>
#5 0x7f954ee18f2b pa_pdispatch_run
#6 0x7f95554eba6e <unknown>
#7 0x7f954ee1b997 <unknown>
#8 0x7f954ee1e5eb <unknown>
#9 0x7f954ee1e989 <unknown>
#10 0x7f954ee1f20a <unknown>
#11 0x7f955550099c pa_mainloop_dispatch
#12 0x7f9555500d9c pa_mainloop_iterate
#13 0x7f9555500e40 pa_mainloop_run
#14 0x7f955550ee29 <unknown>
#15 0x7f954ee2efe8 <unknown>
#16 0x7f955b17e2e7 start_thread
#17 0x7f9552ef554f __GI___clone

Received signal 6
#0 0x55c79a94e006 <unknown>
#1 0x55c79a94e3b9 <unknown>
#2 0x7f955b188fe0 <unknown>
#3 0x7f9552e3ca10 __GI_raise
#4 0x7f9552e3e13a __GI_abort
#5 0x55c79a94db15 <unknown>
#6 0x55c79a96759d <unknown>
#7 0x55c79916f002 <unknown>
#8 0x7f955550ad57 <unknown>
#9 0x7f954ee18ba1 <unknown>
#10 0x7f954ee18f2b pa_pdispatch_run
#11 0x7f95554eba6e <unknown>
#12 0x7f954ee1b997 <unknown>
#13 0x7f954ee1e5eb <unknown>
#14 0x7f954ee1e989 <unknown>
#15 0x7f954ee1f20a <unknown>
#16 0x7f955550099c pa_mainloop_dispatch
#17 0x7f9555500d9c pa_mainloop_iterate
#18 0x7f9555500e40 pa_mainloop_run
#19 0x7f955550ee29 <unknown>
#20 0x7f954ee2efe8 <unknown>
#21 0x7f955b17e2e7 start_thread
#22 0x7f9552ef554f __GI___clone
  r8: 0000000000000000  r9: 00007f95109a0c20 r10: 0000000000000008 r11: 0000000000000246
 r12: 00007f95109a10f0 r13: 00007f95109a1598 r14: 00007f95109a10a0 r15: 0000000000000000
  di: 0000000000000002  si: 00007f95109a0c20  bp: 00007f95109a1090  bx: 0000000000000006
  dx: 0000000000000000  ax: 0000000000000000  cx: 00007f9552e3ca10  sp: 00007f95109a0c20
  ip: 00007f9552e3ca10 efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
 trp: 0000000000000000 msk: fffffffe7ffbfedf cr2: 0000000000000000
[end of stack trace]

65472 seems to be some kind of magic number for pulseaudio, since searching for it on google yields links to various pulseaudio issues. I tried starting chromium with --audio-buffer-size 32000 but the error message is the same.

On Google Chrome, the error happens under the same circumstances, but "Trace/breakpoint trap (core dumped)" is displayed as a message.

Thanks for any help!

Carlo

Last edited by onecmc (2017-05-08 08:51:54)

Offline

#2 2017-05-08 08:51:30

onecmc
Member
Registered: 2017-05-03
Posts: 10

Re: [SOLVED] Chromium crashes on audio output

Okay I found a workaround, run chromium with an explicit audio buffer size:

chromium --audio-buffer-size=2048

I made it permanent like so:

sudo sh -c 'echo "exec `which chromium` --audio-buffer-size=2048" > /usr/local/bin/chromium && sudo chmod +x /usr/local/bin/chromium '

I will most likely remove it after every chromium upgrade to check if it's fixed yet and rerun the code above if it's not.

sudo rm /usr/local/bin/chromium

I also have some more arch computers and the problem doesn't happen on those, but I have no idea why not.

There is also a bug report in the chromium project.

Last edited by onecmc (2017-05-08 11:09:34)

Offline

Board footer

Powered by FluxBB