New issue
Advanced search Search tips

Issue 830947 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

:FATAL:x11_event_source.cc(104)] Check failed: display_ when running content_unittests over ssh

Project Member Reported by awdf@chromium.org, Apr 9 2018

Issue description

I'm working remotely, using the Secure Shell App to ssh to my Linux machine from my Mac via the browser (https://chrome.google.com/webstore/detail/secure-shell-app/pnhechapfaindjhompbnflcldabbghjo)

editing with vim and building works fine but when I try to run the tests over ssh it fails with the following error:

e.g.
 ninja -C out/LinuxDebug -j2000 -l20 content_unittests && time out/LinuxDebug/content_unittests --gtest_filter="*RTCRtpSenderTest*"

[25850:25850:0409/235335.264732:566828105821:FATAL:x11_event_source.cc(104)] Check failed: display_. 
#0 0x7f8731f8155d base::debug::StackTrace::StackTrace()
#1 0x7f8731f7fb1c base::debug::StackTrace::StackTrace()
#2 0x7f873200692a logging::LogMessage::~LogMessage()
#3 0x7f8719683411 ui::X11EventSource::X11EventSource()
#4 0x7f8719693611 ui::X11EventSourceGlib::X11EventSourceGlib()
#5 0x7f8719693dd9 ui::PlatformEventSource::CreateDefault()
#6 0x7f8728b2a205 aura::Env::Init()
#7 0x7f8728b2a066 aura::Env::CreateInstance()
#8 0x000003892fdc aura::AuraTestSuiteSetup::AuraTestSuiteSetup()
#9 0x0000035755e3 content::UnitTestTestSuite::UnitTestTestSuite()
#10 0x0000023db524 main
#11 0x7f871b32e2b1 __libc_start_main
#12 0x000000b5002a _start

works fine over Chrome Remote Desktop though.

The fun thing is that even interactive_ui_tests run fine, with the correct command line args, so how come content_unittests can't be run? Are there similar magic command line args that would make it work? (I tried '--use-headless-config' as per  Issue 480040  but it didn't help).
 

Comment 1 by awdf@chromium.org, Apr 12 2018

Status: WontFix (was: Untriaged)
Aha, discovered that adding 'xvfb-run -s "-screen 0 1024x768x24"' before the command to run tests avoids this issue :)

ie.

ninja -C out/LinuxDebug -j2000 -l20 content_unittests && xvfb-run -s "-screen 0 1024x768x24" out/LinuxDebug/content_unittests --gtest_filter="*BlinkNotificationServiceImplTest.GetNotifications*" -v

This seems a fine workaround, hence WontFixing this bug.

Sign in to add a comment