Open mobergmann opened 2 months ago
I get the same problem with some electron-based apps from nixos-unstable and rarely find hints to similar problems (like this).
I have encountered the same problem with: morgen, obsidian and todoist-electron about a week ago. Switched back to stable for them and they keep working.
In common or maybe relevant:
linuxPackages_latest
but the mentioned packages from unstable)Common error message:
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)
Followed by (depending on your shell)
zsh: segmentation fault (core dumped)
I'm not sure where to report this cause I'm not sure if it's related to an upstream electron issue (chrome had related issues recently) or one of the circumstances, or all of them and I am waiting for an electron update in unstable to see if it is fixed by then.
Edit: might be gpu- and libva-related. Github issue search finds chrome, signal, visual studio code startup-, and jellyfin encoding issues. But not a lot.
Same problem with mpv.
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)
zsh: segmentation fault (core dumped)
The system is 24.05 stable 44a71ff39c182edaf25a7ace5c9454e7cba2c658
but mpv is from unstable. AMD GPU RX 5700. When locking unstable packages at 71e91c409d1e654808b2621f28a327acfdad8dc2
works but any update to unstable brakes mpv.
Same here with Brave version 1.69.162 from unstable
❯ brave
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)
[0914/092126.405725:ERROR:process_memory_range.cc(75)] read out of range
...
Edit: According to this post over at Signal Desktop https://github.com/signalapp/Signal-Desktop/issues/6855#issuecomment-2118305464
Someone fixed the error by removing old Mesa drivers. Mentioned here:
https://dev1galaxy.org/viewtopic.php?pid=46495#p46495
I wonder if there is something similar going on for us :thinking:
Edit2: There is also this post on a Debian bug tracker, which seems to confirm the direction this being an issue with Mesa
https://lists.debian.org/debian-x/2024/05/msg00010.html
Assuming all this is the same issue of course.
I see my issue was mentioned. This happens to me with dwl
and 1Password's GUI. If I switch the 1Password package to nixpkgs-unstable
's _1password-gui-beta
package, it works.
But it's a bit annoying I have this happen randomly.
Having the same issue with cage:
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)
Followed by a seg fault
Does also happen with onlyoffice desktopeditors
QApplication: invalid style override passed, ignoring it.
(DesktopEditors:445938): Gtk-WARNING **: 11:54:52.356: gtk_disable_setlocale() must be called before gtk_init()
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)
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)```
Following the link above and then to another forum, I found that this works for me:
LIBVA_DRIVER_NAME="vdpau" code
For instance.
Would love an explanation of what this env var does in comparison to above thread.
Interestingly, latest chromium build worked fine in Ubuntu 24.04 for instance (w/ amdgpu) but Chrome official Google release did not. VS Code broken. Basically any electron junk broken and I guess anything using Blink ?
But Slack worked - which is also electron. Maybe they disable GPU acceleration in their build?
I can confirm the LIBVA_DRIVER_NAME="vdpau" fixed this for google-chrome and signal-desktop for me. For me this problem was caused on an ubuntu 24.04 system with a 7800XT. All was fine until I installed AMD's ROCm.
Describe the bug
When launching (unstable) anytype (from terminal or gnome) the GUI is not appearing/ no window is spawned. I updated my system and the next day it stopped working. It seems as some (probably the usual) background processes are started. When running the anytype AppImage, from their website, with appimage-run, the problem does not occure. I have an AMD GPU, if that is important. I also removed the
~/.config/anytype/
directory to reduce the likely hood of an configuration error.Steps To Reproduce
I am not sure, but the steps to reproduce the behavior on my system are:
Expected behavior
A GUI/Window appearing.
Screenshots
Additional context
None
Notify maintainers
@running-grass
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.