Can't get Google Chrome working in CentOS 7

Issues related to applications and software problems
Locke_42
Posts: 6
Joined: 2017/01/11 18:43:09

Re: Can't get Google Chrome working in CentOS 7

Post by Locke_42 » 2017/01/11 22:38:07

I have a core dump, but I've never used gdb before.

This is what I got when I launched gdb:

Code: Select all

(gdb) core-file /var/lib/jenkins/core.3124 
[New LWP 3124]
[New LWP 3131]
[New LWP 3142]
[New LWP 3143]
[New LWP 3144]
[New LWP 3145]
[New LWP 3141]
[New LWP 3148]
[New LWP 3149]
[New LWP 3146]
[New LWP 3152]
[New LWP 3147]
[New LWP 3157]
[New LWP 3151]
[New LWP 3158]
[New LWP 3153]
[New LWP 3160]
[New LWP 3154]
[New LWP 3171]
[New LWP 3156]
[New LWP 3190]
[New LWP 3155]
[New LWP 3150]
Core was generated by `/opt/google/chrome/chrome --enable-logging=stderr'.
Program terminated with signal 4, Illegal instruction.
#0  0x00007f883526bc4b in ?? ()
(gdb) 

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can't get Google Chrome working in CentOS 7

Post by TrevorH » 2017/01/11 23:14:00

Looking at that, I can see that it doesn't have debug symbols in it so it's going to be of limited use. I don't think I'm able to guide you through how to use gdb but I bet that there are plenty of tutorials you can find via google. For the lack of debug info, it's possible that the Google yum repo that you used to install chrome might also have e..g chrome-debuginfo packages that you can install to add them and then gdb will tell you a lot more info about the crash.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

bhunbhun
Posts: 1
Joined: 2017/01/13 09:50:32

Re: Can't get Google Chrome working in CentOS 7

Post by bhunbhun » 2017/01/13 10:01:02

TL;DR Try installing chromium-browser and check if it runs / fix configuration problems to get chromium-browser running in the same environment, which can be easier to fix due to better error messages.

--

Hi, I've had something similar with an automated build where both centos/epel7 and Google Chrome are being updated automatically with each build.

google-chrome-stable failed to launch with error messages along the lines of:

Code: Select all

[root@selenium /]# google-chrome-stable --version
Google Chrome 55.0.2883.87 
[root@selenium /]# google-chrome-stable          
[8037:8053:0113/105454:ERROR:bus.cc(427)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
Illegal instruction (core dumped)
[root@selenium /]# dmesg | tail
[16331549.240189] traps: chrome[32713] trap invalid opcode ip:561a6ec8ac4b sp:7ffdf034f640 error:0 in chrome[561a6c468000+6612000]
so i compared it to a default chromium install environment, which is the same version as the google provided one, which failed to start too, but with a different error message:

Code: Select all

[root@selenium /]# chromium-browser 
[8197:8209:0113/105829:ERROR:bus.cc(427)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[8197:8197:0113/105829:FATAL:platform_font_linux.cc(63)] Check failed: typeface. Could not find any font: Nimbus Sans L, sans
#0 0x7fa8c02e44ae base::debug::StackTrace::StackTrace()
#1 0x7fa8c02fff87 logging::LogMessage::~LogMessage()
#2 0x7fa8bd56e0d1 <unknown>
#3 0x7fa8bd56e530 gfx::PlatformFontLinux::PlatformFontLinux()
#4 0x7fa8bd56e886 gfx::PlatformFont::CreateDefault()
#5 0x7fa8bd55f739 gfx::Font::Font()
#6 0x7fa8bd562626 gfx::FontList::GetDefaultImpl()
#7 0x7fa8bd562739 gfx::FontList::FontList()
#8 0x7fa8bcee6cf3 ui::ResourceBundle::GetFontListWithDelta()
#9 0x7fa8b4388c11 views::Label::Label()
#10 0x7fa8b439af32 views::MessageBoxView::Init()
#11 0x55a9411488c3 <unknown>
#12 0x55a941148c02 <unknown>
#13 0x55a941123d92 <unknown>
#14 0x55a9406c0536 <unknown>
#15 0x55a9405b10b3 <unknown>
#16 0x55a9406c4bf9 <unknown>
#17 0x55a9406c59b4 <unknown>
#18 0x7fa8bafcecfc content::BrowserMainLoop::PreMainMessageLoopRun()
#19 0x7fa8bb2cd139 content::StartupTaskRunner::RunAllTasksNow()
#20 0x7fa8bafd0476 content::BrowserMainLoop::CreateStartupTasks()
#21 0x7fa8bafd4f31 <unknown>
#22 0x7fa8bafce112 content::BrowserMain()
#23 0x7fa8bb5b21b4 <unknown>
#24 0x7fa8bb5b1509 content::ContentMain()
#25 0x55a94012747c ChromeMain
#26 0x7fa8ab4d6b35 __libc_start_main
#27 0x55a940127344 <unknown>
Apparently a font was missing, so I installed the related font packages which somehow don't get installed anymore:

Code: Select all

yum -y install  liberation-mono-fonts  liberation-narrow-fonts liberation-sans-fonts  liberation-serif-fonts
After installing both chromium and Google Chrome worked fine.

Molt
Posts: 1
Joined: 2017/06/14 08:11:47

Re: Can't get Google Chrome working in CentOS 7

Post by Molt » 2017/06/14 08:19:06

I plan to test CentOS, download Google Chrome https://yumdownload.com/google-chrome and try to eliminate FTP connection errors, but if I can`t manage, I'll be happy to contact you for help. And follow the next updates. Thanks! :)

Post Reply