Chromium won't launch

I’m using Nix on top of GuixSD, so some issues could relate to this. I’ve installed Firefox and Chromium via Nix. Firefox works perfectly, but when I try to launch Chromium, I get the following error:

(process:27664): Gtk-WARNING **: 09:40:54.209: Locale not supported by C library.
        Using the fallback 'C' locale.
Fontconfig error: Cannot load default config file
[27664:27679:0803/094054.388499:ERROR:bus.cc(394)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[27698:27698:0803/094054.600242:ERROR:gl_surface_glx.cc(86)] glXGetFBConfigs failed.
[27698:27698:0803/094054.600494:ERROR:gl_surface_glx.cc(126)] Failed to get GLXConfig
[27698:27698:0803/094054.600602:ERROR:gl_surface_glx.cc(448)] CreateDummyWindow(gfx::GetXDisplay()) failed
[27698:27698:0803/094054.600716:ERROR:gl_initializer_x11.cc(157)] GLSurfaceGLX::InitializeOneOff failed.
[27698:27698:0803/094054.613682:ERROR:viz_main_impl.cc(201)] Exiting GPU process due to errors during initialization
[27664:27676:0803/094054.638611:ERROR:browser_gpu_channel_host_factory.cc(119)] Failed to launch GPU process.
[27664:27751:0803/094054.793724:ERROR:bus.cc(394)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[27664:27664:0803/094054.877669:FATAL:platform_font_linux.cc(83)] Check failed: InitDefaultFont(). Could not find the default font
#0 0x55aa473f570e base::debug::StackTrace::StackTrace()
#1 0x55aa4737e327 logging::LogMessage::~LogMessage()
#2 0x55aa47811528 gfx::PlatformFontLinux::PlatformFontLinux()
#3 0x55aa478118ce gfx::PlatformFont::CreateDefault()
#4 0x55aa47807751 gfx::Font::Font()
#5 0x55aa4780a34b gfx::FontList::GetDefaultImpl()
#6 0x55aa4780a431 gfx::FontList::FontList()
#7 0x55aa478238c6 gfx::RenderText::RenderText()
#8 0x55aa4782a901 gfx::RenderTextHarfBuzz::RenderTextHarfBuzz()
#9 0x55aa4781c7cf gfx::RenderText::CreateHarfBuzzInstance()
#10 0x55aa48a7063e views::corewm::TooltipAura::TooltipAura()
#11 0x55aa48a450df views::DesktopWindowTreeHostX11::CreateTooltip()
#12 0x55aa48a76a95 views::DesktopNativeWidgetAura::InitNativeWidget()
#13 0x55aa49782585 DesktopBrowserFrameAura::InitNativeWidget()
#14 0x55aa48a3b2e7 views::Widget::Init()
#15 0x55aa4970a7f7 BrowserFrame::InitBrowserFrame()
#16 0x55aa495e4a49 BrowserWindow::CreateBrowserWindow()
#17 0x55aa494ed12c Browser::Browser()
#18 0x55aa495112e1 StartupBrowserCreatorImpl::OpenTabsInBrowser()
#19 0x55aa4951311e StartupBrowserCreatorImpl::RestoreOrCreateBrowser()
#20 0x55aa4951351c StartupBrowserCreatorImpl::DetermineURLsAndLaunch()
#21 0x55aa495138a7 StartupBrowserCreatorImpl::Launch()
#22 0x55aa4950f81a StartupBrowserCreator::LaunchBrowser()
#23 0x55aa4951059a StartupBrowserCreator::ProcessCmdLineImpl()
#24 0x55aa49510c00 StartupBrowserCreator::Start()
#25 0x55aa4729cc45 ChromeBrowserMainParts::PreMainMessageLoopRunImpl()
#26 0x55aa4729d76c ChromeBrowserMainParts::PreMainMessageLoopRun()
#27 0x55aa45a44b02 content::BrowserMainLoop::PreMainMessageLoopRun()
#28 0x55aa45eb2d03 content::StartupTaskRunner::RunAllTasksNow()
#29 0x55aa45a46103 content::BrowserMainLoop::CreateStartupTasks()
#30 0x55aa45a4a439 content::BrowserMainRunnerImpl::Initialize()
#31 0x55aa45a43e35 content::BrowserMain()
#32 0x55aa46fe1b84 content::RunBrowserProcessMain()
#33 0x55aa46fe43ff content::ContentMainRunnerImpl::Run()
#34 0x55aa46fee982 service_manager::Main()
#35 0x55aa46fe16a5 content::ContentMain()
#36 0x55aa44d93c09 ChromeMain
#37 0x7f526087bb8e __libc_start_main
#38 0x55aa44d93a7a _start

Received signal 6
#0 0x55aa473f570e base::debug::StackTrace::StackTrace()
#1 0x55aa44d72fc0 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#2 0x55aa473f5ac7 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x7f526088ec50 <unknown>
#4 0x7f526088ebe0 __GI_raise
#5 0x7f526088fdc1 __GI_abort
#6 0x55aa473f5645 base::debug::BreakDebugger()
#7 0x55aa4737e29c logging::LogMessage::~LogMessage()
#8 0x55aa47811528 gfx::PlatformFontLinux::PlatformFontLinux()
#9 0x55aa478118ce gfx::PlatformFont::CreateDefault()
#10 0x55aa47807751 gfx::Font::Font()
#11 0x55aa4780a34b gfx::FontList::GetDefaultImpl()
#12 0x55aa4780a431 gfx::FontList::FontList()
#13 0x55aa478238c6 gfx::RenderText::RenderText()
#14 0x55aa4782a901 gfx::RenderTextHarfBuzz::RenderTextHarfBuzz()
#15 0x55aa4781c7cf gfx::RenderText::CreateHarfBuzzInstance()
#16 0x55aa48a7063e views::corewm::TooltipAura::TooltipAura()
#17 0x55aa48a450df views::DesktopWindowTreeHostX11::CreateTooltip()
#18 0x55aa48a76a95 views::DesktopNativeWidgetAura::InitNativeWidget()
#19 0x55aa49782585 DesktopBrowserFrameAura::InitNativeWidget()
#20 0x55aa48a3b2e7 views::Widget::Init()
#21 0x55aa4970a7f7 BrowserFrame::InitBrowserFrame()
#22 0x55aa495e4a49 BrowserWindow::CreateBrowserWindow()
#23 0x55aa494ed12c Browser::Browser()
#24 0x55aa495112e1 StartupBrowserCreatorImpl::OpenTabsInBrowser()
#25 0x55aa4951311e StartupBrowserCreatorImpl::RestoreOrCreateBrowser()
#26 0x55aa4951351c StartupBrowserCreatorImpl::DetermineURLsAndLaunch()
#27 0x55aa495138a7 StartupBrowserCreatorImpl::Launch()
#28 0x55aa4950f81a StartupBrowserCreator::LaunchBrowser()
#29 0x55aa4951059a StartupBrowserCreator::ProcessCmdLineImpl()
#30 0x55aa49510c00 StartupBrowserCreator::Start()
#31 0x55aa4729cc45 ChromeBrowserMainParts::PreMainMessageLoopRunImpl()
#32 0x55aa4729d76c ChromeBrowserMainParts::PreMainMessageLoopRun()
#33 0x55aa45a44b02 content::BrowserMainLoop::PreMainMessageLoopRun()
#34 0x55aa45eb2d03 content::StartupTaskRunner::RunAllTasksNow()
#35 0x55aa45a46103 content::BrowserMainLoop::CreateStartupTasks()
#36 0x55aa45a4a439 content::BrowserMainRunnerImpl::Initialize()
#37 0x55aa45a43e35 content::BrowserMain()
#38 0x55aa46fe1b84 content::RunBrowserProcessMain()
#39 0x55aa46fe43ff content::ContentMainRunnerImpl::Run()
#40 0x55aa46fee982 service_manager::Main()
#41 0x55aa46fe16a5 content::ContentMain()
#42 0x55aa44d93c09 ChromeMain
#43 0x7f526087bb8e __libc_start_main
#44 0x55aa44d93a7a _start
  r8: 0000000000000000  r9: 00007ffedae4b610 r10: 0000000000000008 r11: 0000000000000246
 r12: 00007ffedae4b890 r13: 00007ffedae4ba90 r14: 00007ffedae4bf10 r15: 00007ffedae4bf00
  di: 0000000000000002  si: 00007ffedae4b610  bp: 00007ffedae4b850  bx: 00007ffedae4bf08
  dx: 0000000000000000  ax: 0000000000000000  cx: 00007f526088ebe0  sp: 00007ffedae4b688
  ip: 00007f526088ebe0 efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000007
 trp: 000000000000000e msk: 0000000000000000 cr2: 000000100001f5d8
[end of stack trace]
Calling _exit(1). Core file will not be generated.

You are missing the opengl drivers. Those are usually setup through nixos. You can try GitHub - guibou/nixGL: A wrapper tool for nix OpenGL application instead.

1 Like