Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
google-chrome fails, suddenly
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Cellmate
n00b
n00b


Joined: 01 Dec 2009
Posts: 39
Location: Germany

PostPosted: Thu Jan 04, 2024 12:34 am    Post subject: google-chrome fails, suddenly Reply with quote

I have a puzzling problem that I don't even begin to understand. The following: Sometimes after updating an (external) driver or any of the system components, the following happens (after a while, not necessarily immediately):

google-chrome suddenly has catastrophic rendering errors. It is then no longer usable at all, because things are missing or are hopelessly shifted. This is strange, it is the only GUI program that shows problems, no other, not even Wine, all the rest works normally, including KDE/Plasma and glxgears. Even stranger though is that google-chrome-beta is still working normally at the same time. Always.

I've tried downgrading all the ebuilds in question, but that has never worked. I assume this happens not due to the kernel, or at least booting with the old kernel does not lead to an improvement.

About the frequency: This has already happened about 7 times, at intervals of >6 weeks.

The phenomenon usually disappears after google-chrome has been updated. Re-installing the current version does not help. In the recent events google-chrome had not been updated from the portage tree in the days prior.

Since Firefox still works I could use that instead, but my company's website only works well with Google Chrome.

What am I doing wrong? Or what can I do to diagnose the problem? Could it be possible that Chrome is simply aged and this is then result of a kill switch? (Google offers a newer version than what is in the portage tree. 120.0.6099.199 vs 120.0.6099.129)

PS. Sry maybe it's the wrong forum when I think about it. Could somebody move this thread to a better suitable forum?
Back to top
View user's profile Send private message
myga
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2023
Posts: 99

PostPosted: Sun Jan 07, 2024 4:29 am    Post subject: Reply with quote

Yesterday, I unexpectedly encountered a peculiar situation. Both Gentoo and Mint, two different Linux distributions, were impacted by an unusual bug. To investigate further, I conducted tests on three web browsers - Librewolf, Brave, and Dillo - and surprisingly, all of them exhibited the same problem. The only common factor between these two operating systems was the presence of an NVIDIA GPU. Consequently, I decided to switch to 'nouveau' drivers on my Mint machine, which successfully resolved the issue.

However, I did not take the same action for Gentoo. Interestingly, when I logged in later in the evening, the problem had mysteriously resolved itself without me performing any updates or altering any settings.

It is worth noting that the Windows operating system remained unaffected by this issue, which is indeed a cause for concern.
Back to top
View user's profile Send private message
mega_flow
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jun 2016
Posts: 84
Location: Belgium

PostPosted: Sun Jan 07, 2024 6:15 am    Post subject: Reply with quote

I got a week ago the same problems with google-chrome and spotify, on a intel gpu and wayland ( nvidia woks fine ) a track it down to vulkan update. delete .cache/spotify and .config/google-chrome fix it. but a cople days later google-chrome broke again
a fix that seems to hold for google-chrome is a setting in chrome://flags/ enable:vulkan and force wayland in Preferred Ozone platform
_________________
Intel(R) Core(TM) i7-10875H - GeForce GTX 1660 Ti Mobile
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2720

PostPosted: Sun Jan 07, 2024 6:30 am    Post subject: Reply with quote

myga wrote:
However, I did not take the same action for Gentoo. Interestingly, when I logged in later in the evening, the problem had mysteriously resolved itself without me performing any updates or altering any settings.
Do you mean it resolved itself after a reboot, or it's something you had already tried once? If this is the same machine with three OS then I guess you did though.

NVIDIA wants the loaded kernel modules to match with the version of the userspace libraries, and if both distros updated it at same time on different machines, then I could imagine them getting the same problem until reboot.

If not that, then it does happen (rarely) that cards enters a weird/broken state -- esp. when switching OS with a reboot rather than hard power off. It can resolve itself after a said hard power off (for at least few minutes). Sometime nouveau or another OS may workaround it given it initialize things differently. I've had this happen before with my old 560ti, and other times with a network card.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2720

PostPosted: Sun Jan 07, 2024 6:46 am    Post subject: Reply with quote

NVIDIA aside, this reminds me of bug #921368, albeit the killswitch/conspiracy bit feels like a stretch. Something broken with shader cache or similar maybe with specific display drivers that trigger after a while maybe? Updates may invalidate the cache, just a rough guess anyway.

Not something I've observed when I use it myself anyway, even if outdated (not that I really browse with google-chrome, I just start it a bit now and then to check if it's not broken when I test nvidia-drivers updates in a passthrough VM -- and sometime I don't bother updating it in that VM).
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Thu Jan 11, 2024 6:34 am    Post subject: Reply with quote

I suspect, I might be the victim as well.
I posted here:
https://forums.gentoo.org/viewtopic-t-1166880.html

But I suspect latest "Google-chrome-stable" does not work well with Intel processor with build in GPU.
I have: "12th Gen Intel(R) Core(TM) i5-12400"
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1441
Location: Earth

PostPosted: Thu Jan 11, 2024 8:19 pm    Post subject: Reply with quote

Quote:
google-chrome suddenly has catastrophic rendering errors

like disorted pictures + glitches and such ?

remove ~/.config/chromium/Default/GPUCache <<< the Cache folder and it'll be gone.

8)
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Thu Jan 11, 2024 8:38 pm    Post subject: Reply with quote

CooSee wrote:
Quote:
google-chrome suddenly has catastrophic rendering errors

like disorted pictures + glitches and such ?

remove ~/.config/chromium/Default/GPUCache <<< the Cache folder and it'll be gone.

8)


I tried both: google-chrome (bin) and chromium they both behave the same way.
I did remove: ~/.config/chromium
and : ~/.config/google-chrome
directory and didn't make any difference; mouse and keyboard are not responding, I have a suspicion it is related to intel i5-cpu build with GPU video.
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1441
Location: Earth

PostPosted: Thu Jan 11, 2024 8:57 pm    Post subject: Reply with quote

Quote:
mouse and keyboard are not responding

is there anykind of output, while starting chrome via terminal ?

and also look at chrome://gpu/ - errors or failure infos are at the end.

and chrome://device-log/ <<< what does it say on your system ?

which desktop are you using - X11 or wayland ?

8)
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Thu Jan 11, 2024 9:32 pm    Post subject: Reply with quote

CooSee wrote:
Quote:
mouse and keyboard are not responding

is there anykind of output, while starting chrome via terminal ?

and also look at chrome://gpu/ - errors or failure infos are at the end.

and chrome://device-log/ <<< what does it say on your system ?

which desktop are you using - X11 or wayland ?

8)


When I start "google-chrome-stable" from command line, there are no errors.
I'm using X11 with XFCE

"dmesg" is not showing anything related to google-chrome or DBUS errors
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1441
Location: Earth

PostPosted: Thu Jan 11, 2024 10:07 pm    Post subject: Reply with quote

Quote:
I'm using X11 with XFCE

this also happening on other GUI's too ?

sorry, but i use a hyprland only system with dotfiles from https://github.com/prasanthrangan/hyprdots without xwayland!

so, i can't test some stuff :(

have you tried chrome with new user on XFCE ?

8)
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Thu Jan 11, 2024 10:21 pm    Post subject: Reply with quote

CooSee wrote:
Quote:
I'm using X11 with XFCE

this also happening on other GUI's too ?

sorry, but i use a hyprland only system with dotfiles from https://github.com/prasanthrangan/hyprdots without xwayland!

so, i can't test some stuff :(

have you tried chrome with new user on XFCE ?

8)


I have a box setup with two bookable hard drives (dual booting) both running gentoo + xfce and on both google-chrome-stable acting the same, keyboard and mouse are not responding all other programs runs fine including firefox.
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1441
Location: Earth

PostPosted: Thu Jan 11, 2024 11:06 pm    Post subject: Reply with quote

Quote:
both running gentoo + xfce and on both google-chrome-stable acting the same

some update must have break something.

please look what got updated in the last couple of days, e.g genlop --list --date 5 days ago

is there any difference if you start via chrome --enable-input ? <<< from https://peter.sh/experiments/chromium-command-line-switches/#enable-features

this also happening if you use chrome only and no other apps ?

8)
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Thu Jan 11, 2024 11:21 pm    Post subject: Reply with quote

CooSee wrote:
Quote:
both running gentoo + xfce and on both google-chrome-stable acting the same

some update must have break something.

please look what got updated in the last couple of days, e.g genlop --list --date 5 days ago

is there any difference if you start via chrome --enable-input ? <<< from https://peter.sh/experiments/chromium-command-line-switches/#enable-features

this also happening if you use chrome only and no other apps ?

8)


When I start it from command line: google-chrome-stable --enable-input it starts but no keyboard or mouse response
These are new installations, so there is no history of previous apps.
And yes, it only happens with google-chrome app.
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1441
Location: Earth

PostPosted: Thu Jan 11, 2024 11:35 pm    Post subject: Reply with quote

is your user in input group ?

and what about the keyb & mouse settings in XFCE - have you tried some things ?

8)

EDIT:

do you use a file, e.g
Code:
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "de"
        Option "XkbVariant" "nodeadkeys"
EndSection

/etc/xorg.conf.d/00-keyboard.conf ?

EDIT1:

just a weird wild guess:

do you have gnome-keyring installed ?

IIRC chrome is also using keyring at first start and maybe the gk-window is in the background and awaiting input.

please try via chrome --password-store=basic
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Fri Jan 12, 2024 4:35 am    Post subject: Reply with quote

CooSee wrote:
is your user in input group ?

and what about the keyb & mouse settings in XFCE - have you tried some things ?

8)

EDIT:
do you use a file, e.g
Code:
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "de"
        Option "XkbVariant" "nodeadkeys"
EndSection

/etc/xorg.conf.d/00-keyboard.conf ?

EDIT1:

just a weird wild guess:

do you have gnome-keyring installed ?

IIRC chrome is also using keyring at first start and maybe the gk-window is in the background and awaiting input.

please try via chrome --password-store=basic


None of other systems have group "input" never heard of it.

Yes, gnome-keyring is installed

starting it with: "google-chrome-stable --password-store=basic " has no effect, keyboard is not responding nor mouse.

/etc/xorg.conf.d/00-keyboard.conf don't have this file, on any of my system.

On one of my other systems I'm running: www-client/google-chrome-120.0.6099.109 and don't have any problems with keyboard input or mouse.
Back to top
View user's profile Send private message
mega_flow
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jun 2016
Posts: 84
Location: Belgium

PostPosted: Fri Jan 12, 2024 10:41 am    Post subject: Reply with quote

gnome got update in portage to 45 as stable on amd64 And use a new keyboard lib . is this the 1 to break chrome for u ?
this file got Unmerging... (gnome-base/libgnomekbd-3.28.1) on my system. but chrome still works normally me
Is flatpak google-chrome maybe a option
_________________
Intel(R) Core(TM) i7-10875H - GeForce GTX 1660 Ti Mobile
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Fri Jan 12, 2024 1:44 pm    Post subject: Reply with quote

mega_flow wrote:
gnome got update in portage to 45 as stable on amd64 And use a new keyboard lib . is this the 1 to break chrome for u ?
this file got Unmerging... (gnome-base/libgnomekbd-3.28.1) on my system. but chrome still works normally me
Is flatpak google-chrome maybe a option


Hm..., I don't think it is the problem, none of my systems have gnome-base/libgnomekbd installed.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Sun Jan 21, 2024 6:40 pm    Post subject: Reply with quote

Try to go to "Settings -> Systems" and switch off "Use hardware acceleration when available". (Afterwards you need to restart google-chrome.)
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Sun Jan 21, 2024 7:00 pm    Post subject: Reply with quote

mv wrote:
Try to go to "Settings -> Systems" and switch off "Use hardware acceleration when available". (Afterwards you need to restart google-chrome.)


Are you talking about setting in "google-chrome" or XFCE?
google-chrome - is not responding at all after starting, in XFCE - Application --> Settings --> System
there is no such things as "Use hardware acceleration when available"

I think you are talking about "google-chrome", the default it is OFF in new browser, it is a new installation so should be OFF, but I have no way of checking as it is not responding.
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Wed Jan 24, 2024 8:14 am    Post subject: Reply with quote

I had problems with chrome, suddenly it start but there aren't visible open window, I solve the problem by starting it with this command

Code:
google-chrome-stable %U --disable-gpu --disable-software-rasterizer


try it, to check it solve for you too
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Wed Jan 24, 2024 1:49 pm    Post subject: Reply with quote

luna80 wrote:
I had problems with chrome, suddenly it start but there aren't visible open window, I solve the problem by starting it with this command

Code:
google-chrome-stable %U --disable-gpu --disable-software-rasterizer


try it, to check it solve for you too


THANK YOU! It worked!
google-chrome-stable is working as normal.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum