-
-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chromium: add rpath to libGLESv2.so from libANGLE #269345
chromium: add rpath to libGLESv2.so from libANGLE #269345
Conversation
Result of 2 packages built:
|
So far this seems to work, just got a Chromium build completed. Going to try an Electron app (Element Desktop) because that wasn't fixed for me either by the previous fix I don't think. Sorta tangential note, is there a good way to detect this kind of condition, a |
I got a local copy of this PR and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now after testing both chromium and element-desktop, I can say that this seems to properly solve the problem so far. I'll try testing one of the other chromium-based derivations, but LGTM.
edit: Actually I guess Electron is the only thing that explicitly does chromium.override
. So yeah. LGTM!
9aa576a
to
1a78569
Compare
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release-23.11
git worktree add -d .worktree/backport-269345-to-release-23.11 origin/release-23.11
cd .worktree/backport-269345-to-release-23.11
git switch --create backport-269345-to-release-23.11
git cherry-pick -x 1a7856976554fcdc27027c02bfd4b2c626d563be |
Thank you! 💜 |
Successfully created backport PR for |
I mean I actually confirmed that was what was happening via Sure enough when I compared the ld loads of working and non-working chromium, libEGL was getting pulled in by libcairo early on in the working one but not the non-working one |
(I also had to end up spending more time than I would like to think about in the ANGLE code and https://source.chromium.org/, to trace back what is going on in |
Thanks a lot! |
I seem to still be having this on the Spotify client for some reason, I tested Brave as a another reference and no such issue. Is there going to be a wait until this fix is out for every application? Seems to be refusing to run over 60 FPS on my high refresh rate monitor for this reason as a side effect unfortunately, not a deal breaker but would be nice to see it fixed I guess. However, I acknowledge I had similar issue with Chromium and it not locking to my monitors refresh rate last time I used NixOS months ago, but regardless that seems fixed in Brave (could be updates, or either me switching to AMD in that time and not to mention I am using Wayland now but it's same in XOrg) and the error saying it can't locate OpenGL appears |
spotify is not using our electron packaging, but simply downloading the official snap package and patching it, so this change does not affect (fix or break) it. |
Strange, well it's broken there it appears. Should I make a issue somewhere or something? |
Yes, you can create an issue, make sure to mention the nixos revision ( |
I'm on nixos-unstable and for me, beeper, element and slack (all electron apps) are still not rendering correctly. I guess their packages have to be updated? 🤔 This PR is in unstable though according to Some days ago I tried to update my flake reference to the PR that was superseded by this one, but it took too long for me to build and I didn't want to annoy my coworkers with my fan on 100% for such a long time 😅 |
This comment was marked as duplicate.
This comment was marked as duplicate.
1 similar comment
slack, beeper => proprietary apps that we extract and use their bundled electron. has nothing to do with this PR, open a respective issue for each app. Element: what nixpkgs commit are you on exactly? |
yeah I figured. Although coincidentally they stopped working around the same time I searched nixpkgs issues and found that preceding PR. let me grab the commit hash... |
complete `nix flake info` outputResolved URL: git+file:///home/nanashi/Documents/projects/sysconf Locked URL: git+file:///home/nanashi/Documents/projects/sysconf Path: /nix/store/ljg8h42v5d1s9yyqpzqcr54brn965176-source Revision: 23cbf666bacb96c5a58dae91cd7e1e3fd7110b8b-dirty Last modified: 2023-07-31 12:24:34 Inputs: ├───agenix: github:ryantm/agenix/daf42cb35b2dc614d1551e37f96406e4c4a2d3e4 │ ├───darwin: github:lnl7/nix-darwin/87b9d090ad39b25b2400029c64825fc2a8868943 │ │ └───nixpkgs follows input 'agenix/nixpkgs' │ ├───home-manager: github:nix-community/home-manager/32d3e39c491e2f91152c84f8ad8b003420eab0a1 │ │ └───nixpkgs follows input 'agenix/nixpkgs' │ └───nixpkgs follows input 'nixpkgs' ├───devenv: github:cachix/devenv/c8778e3dc30eb9043e218aaa3861d42d4992de77 │ ├───flake-compat: github:edolstra/flake-compat/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9 │ ├───nix: github:domenkozar/nix/7c91803598ffbcfe4a55c44ac6d49b2cf07a527f │ │ ├───lowdown-src: github:kristapsdz/lowdown/d2c2b44ff6c27b936ec27358a2653caaef8f73b8 │ │ ├───nixpkgs follows input 'devenv/nixpkgs' │ │ └───nixpkgs-regression: github:NixOS/nixpkgs/215d4d0fd80ca5163643b03a33fde804a29cc1e2 │ ├───nixpkgs follows input 'nixpkgs' │ └───pre-commit-hooks: github:cachix/pre-commit-hooks.nix/6881eb2ae5d8a3516e34714e7a90d9d95914c4dc │ ├───flake-compat follows input 'devenv/flake-compat' │ ├───flake-utils: github:numtide/flake-utils/5aed5285a952e0b949eb3ba02c12fa4fcfef535f │ ├───gitignore: github:hercules-ci/gitignore.nix/a20de23b925fd8264fd7fad6454652e142fd7f73 │ │ └───nixpkgs follows input 'devenv/pre-commit-hooks/nixpkgs' │ ├───nixpkgs follows input 'devenv/nixpkgs' │ └───nixpkgs-stable: github:NixOS/nixpkgs/9b8e5abb18324c7fe9f07cb100c3cd4a29cda8b8 ├───emacs-overlay: github:nix-community/emacs-overlay/2527e1367b92eea59652378b88108b162484e7d1 │ ├───flake-utils: github:numtide/flake-utils/ff7b65b44d01cf9ba6a71320833626af21126384 │ │ └───systems: github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e │ ├───nixpkgs: github:NixOS/nixpkgs/5a09cb4b393d58f9ed0d9ca1555016a8543c2ac8 │ └───nixpkgs-stable: github:NixOS/nixpkgs/d2e4de209881b38392933fabf303cde3454b0b4c ├───home-manager: github:nix-community/home-manager/db1878f013b52ba5e4034db7c1b63e8d04173a86 │ └───nixpkgs follows input 'nixpkgs' └───nixpkgs: github:NixOS/nixpkgs/5a09cb4b393d58f9ed0d9ca1555016a8543c2ac8This is the commit: 5a09cb4 |
I know for at least Element it should be fixed now. Can you try deleting |
but it's absolutely certain that beeper and slack are upstream issues and that nothing about our packaging is wrong? Like, is it possible we're missing a runtime library or something? I must say I only semi-understand how dynamic loaders work and how our packaging of those apps works |
Thank you, that indeed fixed all of them 😄 |
Ah, right, this issue would not cause incorrect rendering, but just slow software rendering or apps not starting at all. |
hmm. for me slack and beeper just showed solid black or grey and element had a few lines and red squares drawn |
@NANASHI0X74 got to the folders of those apps in .config and delete any folder called "GPUCache" |
Didn't fix it in my case |
I have to ask you all to refrain from commenting under this pull request, unless you have performed some basic information collection:
- **nixpkgs revision**
- **what application you started**
- **how the problem manifests: graphical glitches? low framerates?**
- any logs when you start the application from the command line?
- environment (X11/Wayland, gpu driver in use)
Basically, follow standard issue reporting etiquette.
Otherwise your comment is **useless**, we can not help you with "doesn't work", and a pull request comments are not a user forum.
27 Nov 2023 22:22:33 fuggy ***@***.***>:
…
I'm on nixos-unstable and for me, beeper, element and slack (all electron apps) are still not rendering correctly. I guess their packages have to be updated? 🤔
I know for at least Element it should be fixed now. Can you try deleting *~/.config/*/GPUCache* to see if it's just a manifestation of #244742[#244742]?
Didn't fix it in my case
—
Reply to this email directly, view it on GitHub[#269345 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AURNSZKOU6IJ73N5CPNE56LYGUABRAVCNFSM6AAAAAA7XA7AZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRYGYZTOMRRGU].
You are receiving this because you modified the open/close state.
[Tracking image][https://github.com/notifications/beacon/AURNSZOLEWPOOM6BDZDNJATYGUABRA5CNFSM6AAAAAA7XA7AZOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTM73FB6.gif]
|
The issue with Spotify appears to be fixed on my system now |
Description of changes
Chromium libANGLE-based GL loading was working by accident before, because the cairo lib pulled in libEGL previously (so dlopen didn't need to search rpath when called in libGLESv2) but no longer does and the rpath needs to be added on both the chromium binary and the libGLESv2.so (and yes both even expect to have pciutils available it seems)
Fixes #268490
Fixes #269104
Supersedes and closes #269308
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Priorities
Add a 👍 reaction to pull requests you find important.