Conversation
There was a problem hiding this comment.
i'm not sure whether this could lead to issues, but vesktop seems to use electron 34, judging by their package.json. just wanted to point that out
Essentially all the packages listed in #376770 (comment) then.
We have the infrastructure in nixpkgs to build electron from source. FWIW electron_32 and electron_33 are built from source. In chromium, we already carry a patch for the page size issues on aarch64-linux for chromium M132+ since #365364. nixpkgs/pkgs/applications/networking/browsers/chromium/common.nix Lines 510 to 525 in 6706409 A source build of electron_34 would inherit that automatically. So this is all a bit sad. @waltmck can you check whether passing Thank you for your time :) Footnotes |
|
@emilylange Passing |
|
This still should be merged for now as #380429 is still an issue with binary builds for electron, and probably should be changed to specifically use |
|
Oh I don't know tho if its preferred to change the used package inside the |
getchoo
left a comment
There was a problem hiding this comment.
I'm fine with reverting to 33 for the reasons mentioned above. I don't believe upstream really has a hard requirement on any given Electron version (they usually just stay at the latest), and we haven't tried to match it with the default in Nixpkgs before either
I would prefer this in the package.nix file itself though so that this workaround is more apparent and we can be reminded to remove it -- preferably with a comment as to why, or a simple link to this PR ;)
|
They do in this PR Vencord/Vesktop#1058, there might be some other case, but personally electron hardware accel never worked for me in Vesktop, so might not matter. |
|
Opened #382497 as a proper global workaround in order to get it fixed for all consumers of |
|
apparently there is a degradation on |
|
@ImUrX can you please test the following diff. It fixes screenshare on Wayland/Sway in element-desktop (when forced to use -bin) for me. diff --git a/pkgs/development/tools/electron/binary/generic.nix b/pkgs/development/tools/electron/binary/generic.nix
index 6864efed6579..234fa7971fc5 100644
--- a/pkgs/development/tools/electron/binary/generic.nix
+++ b/pkgs/development/tools/electron/binary/generic.nix
@@ -27,6 +27,11 @@
pango,
systemd,
pciutils,
+ libnotify,
+ pipewire,
+ libsecret,
+ libpulseaudio,
+ speechd-minimal,
}:
version: hashes:
@@ -117,6 +122,11 @@ let
pciutils
stdenv.cc.cc
systemd
+ libnotify
+ pipewire
+ libsecret
+ libpulseaudio
+ speechd-minimal
]
++ lib.optionals (lib.versionAtLeast version "9.0.0") [
libdrm |
|
@emilylange yeah that seems to fix it, sadly hardware acceleration still does not work. If i use chromium directly with the parameters for enabling it, it does work. |
|
I see some weird behavior with notifications when clicking on them, the app kinda breaks and requires you to press escape while using the app to fix it with |
|
Closing, as the underlying reason(s) for this revert where fixed by #382497 and #383706.
No idea, no, sorry. Feel free to open a new issue, but don't put your hopes up too high. Electron is an inherently fragile ecosystem, and it's often extremely difficult to reproduce issues. In any case, thank you all! |
There is a serious bug in Chromium 132 (and therefore Electron 34) that causes the renderer to crash on all systems using 16K pages---see this bug for Obsidian which was fixed by reverting Electron.
This affects Vesktop as well as any other app which is built using Electron 34. As I mentioned in the Obsidian issue, probably the principled thing to do here is to either backport the Chromium patch fixing this issue, or do a system-wide revert of the default Electron version to Electron 33. However, as a new contributor I am not sure the best way to handle that. In the meantime, I plan to submit PRs to at least revert Electron for apps I use daily.
Things done
This PR pins the Electron version for Vesktop to Electron 33 (as was done for Obsidian). I have tested it on my aarch64-linux machine (a Macbook Air M2 running Asahi).
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.