Cannot run Chrome nor Chromium

I want to run Google Chrome to read my Gmail as it is more optimized than Firefox for that.

I tried to install Chrome in an isolated shell.

env NIX_ALLOW_UNFREE=1 nix shell --impure nixpkgs#google-chrome

Then, I run google-chrome-stable which crashes after printing the following.

ac: Unknown GPU, using 0 for raster_config
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
[1015/092649.046425:ERROR:process_memory_range.cc(75)] read out of range
[242314:242314:1015/092649.187014:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.ScreenSaver.GetActive: object_path= /org/freedesktop/ScreenSaver: org.freedesktop.DBus.Error.NotSupported: This method is not part of the idle inhibition specification: https://specifications.freedesktop.org/idle-inhibit-spec/latest/
[242314:242314:1015/092649.371443:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=139
ac: Unknown GPU, using 0 for raster_config
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
[1015/092649.480400:ERROR:process_memory_range.cc(75)] read out of range
[242314:242314:1015/092649.813286:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=139
ac: Unknown GPU, using 0 for raster_config
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
[1015/092649.913922:ERROR:process_memory_range.cc(75)] read out of range
[242314:242314:1015/092650.248759:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=139
ac: Unknown GPU, using 0 for raster_config
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
[1015/092650.338924:ERROR:process_memory_range.cc(75)] read out of range
[242314:242314:1015/092650.736074:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=139
ac: Unknown GPU, using 0 for raster_config
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
[1015/092650.854160:ERROR:process_memory_range.cc(75)] read out of range
[242314:242314:1015/092651.283120:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=139
ac: Unknown GPU, using 0 for raster_config
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
[1015/092651.391864:ERROR:process_memory_range.cc(75)] read out of range
[242314:242314:1015/092651.792934:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=139
ac: Unknown GPU, using 0 for raster_config
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
[1015/092651.833116:ERROR:process_memory_range.cc(75)] read out of range
[242314:242314:1015/092652.157865:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=139
ac: Unknown GPU, using 0 for raster_config
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
[1015/092652.198291:ERROR:process_memory_range.cc(75)] read out of range
[242314:242314:1015/092652.497838:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=139
ac: Unknown GPU, using 0 for raster_config
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
[1015/092652.537955:ERROR:process_memory_range.cc(75)] read out of range
[242314:242314:1015/092652.865803:ERROR:gpu_process_host.cc(980)] GPU process exited unexpectedly: exit_code=139
[242314:242314:1015/092652.865839:FATAL:gpu_data_manager_impl_private.cc(436)] GPU process isn't usable. Goodbye.
[1015/092652.879736:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1015/092652.880208:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1015/092652.880232:ERROR:process_memory_range.cc(75)] read out of range
fish: Job 1, 'google-chrome-stable' terminated by signal SIGTRAP (Déroutement de suivi/point d'arrêt)

I tried to disable the use of the GPU (my laptop is a ASUS Zenbook 14 with AMD GPU and CPU), by using the --no-gpu, and then --disable-gpu options, but I reached the same outcome.

I also tried to install chromium instead.

nix shell nixpkgs#chromium

But I get the same output (I have not diffed them, but they look very much the same).

I’ve searched some related issues with AMD gpu, another chrome-based browser, but the matter seems quite complicated to me, so I am asking for some feedback here first.

Thanks!

2 Likes

I’m experiencing the same issue with brave (chromium based) and framework 16 with AMD ATI Phoenix1 for more or less the same need and as you I didn’t find anything.

2 Likes

I am having the same problem as Wayfire. So this issue is not chromium exclusive

1 Like

Thanks for your reply.
I had once again a similar issue with jellyfin-media-player.

❯ jellyfinmediaplayer 
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
libpng warning: iCCP: known incorrect sRGB profile
Listening to socket: "/tmp/jmp_pmpUniqueApplication_adam.sock"
Signal handlers installed successfully.
Logging to  /home/adam/.local/share/jellyfinmediaplayer/logs/jellyfinmediaplayer.log
ac: Unknown GPU, using 0 for raster_config
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
fish: Job 1, 'jellyfinmediaplayer' terminated by signal SIGSEGV (Erreur de frontière d'adresse)

The same reference to amdgcn-- is made in the error message.

Therefore, it seems to be related to softwares which use AMD GPU.

In this thread, the issue was experienced so far when running

  • chromium
  • google-chrome,
  • wayfire
  • brave
  • jellyfin-media-player

I ran into the exact same issue with Chrome yesterday after updating channels.

It was the same issue as [Tracking] AMD GPUs and NixOS - 'Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)'. · Issue #343806 · NixOS/nixpkgs · GitHub and the suggestion to override mesa with stable channel worked for me

Interesting, I was always on stable channel (nixos nixos-24.05 release nixos-24.05.5993.cd3e8833d706
) to which corresponds mesa 24.0.7, so that’s not my case.
Later I wanna try to reproduce the error described in the issue tracking with an unstable channel that you mentioned and see if there is something in common in the two situation.

1 Like

I confirm that, at least in my case, the error is not related to the usage of an unstable channel

flatpaks is a way to go

Thanks @Gaditone , I might give a try to flatpaks.
But the fact that the above mentioned software was working with previous releases of NixOS suggests it’s a Nix installation issue.
I unfortunately have a limited contribution to this at the moment, due to my lack of knowledge in Nix and software using GPU acceleration (as it seems to be the root cause of this issue), so I appreciate your feedback, guys.

Update:
I am now experiencing the same issue with Brave and mpv.
Strangely, nix shell nixpkgs#mpv --command mpv "https://www.youtube.com/watch?v=dQw4w9WgXcQ" works.
I experience the issue with all other following ways.

  • nix-shell -p brave (or mpv)
  • Adding brave or mpv in my ~/.config/home-manager/home.nix then home-manager switch

PS: haven’t tried @Gaditone 's solution of flatpak yet, because I am a bit reluctant to relying on another mechanism and complexifying my system, but the problem seems to get worse, so might give it a try very soon.

Are you on NixOS or anther distro?
If NixOS, do you have basic config like hardware.opengl.enable = true; etc? Share your system config and GPU info.

Thanks for your feedback @waffle8946, you’ve put me on the track towards the solution.

I tried adding as you suggested hardware.opengl.enable = true but nixos-rebuild failed, because the option had been renamed in NixOS 24.11 release.

So I double checked my nix channels and found out I only had updated nixpkgs to 24.11, while nixos was still on 24.05.

sudo nix-channels --add https://channels.nixos.org/nixos-24.11 nixos
sudo nix-channels --add https://nixos.org/channels/nixos-24.11 nixpkgs # was already ok but to ensure.
sudo nix-channels --update
sudo nixos-rebuild switch

And I can finally enjoy google chrome, brave and mpv :smiley:

I finally added hardware.opengl.enable = true; which was missing in my config, although I do have AMD Radeon GPU built in.

Get rid of the nixpkgs channel, you should just have the nixos root channel.

1 Like