New issue
Advanced search Search tips

Issue 678948 link

Starred by 5 users

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

chrome --headless shouldn't crash if there is no soundcard.

Project Member Reported by alexclarke@chromium.org, Jan 6 2017

Issue description

Chrome Version: 57.0.2970.0
OS: Linux

We are getting reports of a crash when running chrome within a docker container that doesn't have sound support

Running with " --headless --no-sandbox --disable-gpu --dump-dom http://atelyeah.de"

Getting following output:

[0106/101342.673341:WARNING:audio_manager.cc(317)] Multiple instances of AudioManager detected
[0106/101342.674094:WARNING:audio_manager.cc(278)] Multiple instances of AudioManager detected
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
[0106/101347.339336:WARNING:alsa_util.cc(24)] PcmOpen: default,No such file or directory
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
[0106/101347.347175:WARNING:alsa_util.cc(24)] PcmOpen: plug:default,No such file or directory
Segmentation fault
 
Owner: skyos...@chromium.org
Status: Started (was: Available)
Turns out this has nothing to do with audio. The actual crash is caused by the power save blocker not being able to talk to X11.
Project Member

Comment 2 by bugdroid1@chromium.org, Jan 17 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/28b1bf2e4e780f510109ca4b1d61e72f024232aa

commit 28b1bf2e4e780f510109ca4b1d61e72f024232aa
Author: skyostil <skyostil@chromium.org>
Date: Tue Jan 17 20:04:10 2017

power save blocker: Don't try to block power saving in headless mode

When running headless mode, there's no need to block power saving as
there is no available display server. This patch makes PowerSaveBlocker
early-out in such a case (on X11).

BUG= 678948 

Review-Url: https://codereview.chromium.org/2631153003
Cr-Commit-Position: refs/heads/master@{#444118}

[modify] https://crrev.com/28b1bf2e4e780f510109ca4b1d61e72f024232aa/device/power_save_blocker/BUILD.gn
[modify] https://crrev.com/28b1bf2e4e780f510109ca4b1d61e72f024232aa/device/power_save_blocker/DEPS
[modify] https://crrev.com/28b1bf2e4e780f510109ca4b1d61e72f024232aa/device/power_save_blocker/power_save_blocker_x11.cc

Status: Fixed (was: Started)

Comment 4 Deleted

Sign in to add a comment