Skip to content

element-{web-unwrapped,desktop}: 1.11.100 -> 1.11.102 - #410555

Merged
Ma27 merged 2 commits into
NixOS:masterfrom
transcaffeine:element/1.11.101
Jun 9, 2025
Merged

Ma27 merged 2 commits into
NixOS:masterfrom
transcaffeine:element/1.11.101

Conversation

@transcaffeine

Copy link
Copy Markdown
Member

element-web

Release notes: https://github.com/element-hq/element-web/releases/tag/v1.11.101
Changelog: element-hq/element-web@v1.11.100...v1.11.101

element-desktop

Release notes: https://github.com/element-hq/element-desktop/releases/tag/v1.11.101
Changelog: element-hq/element-desktop@v1.11.100...v1.11.101

Updates electron from 35 to 36.

Re-introduces the same mechanism for the yarnOfflineCache as #381196, as
the problem described in there is back again.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Nixpkgs 25.11 Release Notes (or backporting 24.11 and 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 24.11 and 25.05 NixOS Release notes)
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels May 24, 2025
@leona-ya

leona-ya commented May 24, 2025 •

Copy link
Copy Markdown
Member

This fails for me a sway user with XDG_CURRENT_DESKTOP="sway". Launching element desktop fails with:

screenshot-2025-05-24_18-05-1748104018

backtrace
[nix-shell:~/.cache/nixpkgs-review/pr-410555-5]$ ./results/element-desktop-x86_64-linux/bin/element-desktop
/home/leona/.config/Element exists: yes
/home/leona/.config/Riot exists: no
Reached Electron ready state
Loading app config: /nix/store/jq7g7vzv86g6lfrk32zlnrli9pi3nmxj-element-desktop-1.11.101/share/element/webapp/config.json
Loading local config: /home/leona/.config/Element/config.json
Skipping nonexistent file: /home/leona/.config/Element/config.json
No update_base_url is defined: auto update is disabled
Fetching translation json for locale: en_EN
Changing application language to en
Fetching translation json for locale: en
Resetting the UI components after locale change
Resetting the UI components after locale change
Ensuring storage is ready
safeStorage backend 'basic_text' selected, 'undefined' in config.
(node:564284) [DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.
(Use `electron --trace-deprecation ...` to show where the warning was created)

Starting element desktop with XDG_CURRENT_DESKTOP="GNOME" explicitly set (I use Gnome Keyring) works.

backtrace
[nix-shell:~/.cache/nixpkgs-review/pr-410555-5]$ XDG_CURRENT_DESKTOP="GNOME" ./results/element-desktop-x86_64-linux/bin/element-desktop
/home/leona/.config/Element exists: yes
/home/leona/.config/Riot exists: no
Reached Electron ready state
Loading app config: /nix/store/jq7g7vzv86g6lfrk32zlnrli9pi3nmxj-element-desktop-1.11.101/share/element/webapp/config.json
Loading local config: /home/leona/.config/Element/config.json
Skipping nonexistent file: /home/leona/.config/Element/config.json
No update_base_url is defined: auto update is disabled
Fetching translation json for locale: en_EN
Changing application language to en
Fetching translation json for locale: en
Resetting the UI components after locale change
Resetting the UI components after locale change
Ensuring storage is ready
safeStorage backend 'gnome_libsecret' selected, 'undefined' in config.
Using storage mode 'encrypted' with backend 'gnome_libsecret'
Opening main window
(node:564655) [DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.
Changing application language to en...` to show where the warning was created)
Fetching translation json for locale: en
Resetting the UI components after locale change
Migrating secret from keytar @leona:leona.is|MYSESSIONID
Migrating secret from keytar seshat|@leona:leona.is|MYSESSIONID
2025-05-24 18:21:15.983: WARN CORE sqlcipherCodecAttach: no codec attached to db
2025-05-24 18:21:16.077: WARN CORE sqlcipherCodecAttach: no codec attached to db
(node:564655) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 serverSupportedVersions listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(node:564655) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 userAccessToken listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(node:564655) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 serverSupportedVersions listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(node:564655) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 homeserverUrl listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(node:564655) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 userAccessToken listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(node:564655) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 homeserverUrl listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(node:564655) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 userAccessToken listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
2025-05-24 18:21:28.124: WARN CORE sqlcipherCodecAttach: no codec attached to db                                                  (node:564655) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 serverSupportedVersions listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(node:564655) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 userAccessToken listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(node:564655) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 homeserverUrl listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit

upstream PR introducing this: element-hq/element-desktop#2227

This is non-obvious to our users and should be avoided. Either by upstream adding better auto-detection or we improve it.

@teutat3s

teutat3s commented May 28, 2025 •

Copy link
Copy Markdown
Member

Upstream (element-desktop) has added a comment linking an upstream of upstream (electron) issue regarding this:

Linux safeStorage support is hellish, the support varies on the Desktop Environment used rather than the store itself.

electron/electron#39789
Plus: microsoft/vscode#185212

@teutat3s

Copy link
Copy Markdown
Member

A hacky workaround could be to check for something like services.gnome.gnome-keyring.enable ourselfes and add the flag --password-store="gnome-libsecret" depending on the option?

@transcaffeine transcaffeine changed the title element-{web-unwrapped,desktop}: 1.11.100 -> 1.11.101 element-{web-unwrapped,desktop}: 1.11.100 -> 1.11.102 Jun 3, 2025
@JohnRTitor

Copy link
Copy Markdown
Member

Starting element desktop with XDG_CURRENT_DESKTOP="GNOME" explicitly set (I use Gnome Keyring) works.

I have had the same issue with vscode as well. The fix AFAIK is to explicitly pass the keyring provider as a command line arg to Electron.

code --password-store=gnome-libsecret

@leona-ya could you try it and report back?

@JohnRTitor

JohnRTitor commented Jun 6, 2025 •

Copy link
Copy Markdown
Member

Rebased it as the eval had failed previously due to a GitHub issue.

#412304 should probably be taken a look as well.

@leona-ya

leona-ya commented Jun 9, 2025

Copy link
Copy Markdown
Member

I have had the same issue with vscode as well. The fix AFAIK is to explicitly pass the keyring provider as a command line arg to Electron.

code --password-store=gnome-libsecret

@leona-ya could you try it and report back?

This does work here too!

@JohnRTitor

JohnRTitor commented Jun 9, 2025 •

Copy link
Copy Markdown
Member

Yep. I am gonna merge this if you don't mind @leona-ya

This sounds more like an Electron problem.

Upstream VSCode issue for reference: microsoft/vscode#187338

JohnRTitor added a commit to JohnRTitor/nix-conf that referenced this pull request Jun 9, 2025
@JohnRTitor

Copy link
Copy Markdown
Member
johnrtitor@darwin01 ~ % nix build "github:nixos/nixpkgs/refs/pull/410555/merge#element-desktop" --print-out-paths --system "x86_64-darwin"
/nix/store/n9lr3fixflk52730rqaz6d8mmnqdbgpr-element-desktop-1.11.102
nix build "github:nixos/nixpkgs/refs/pull/410555/merge#element-desktop"     2.99s user 8.35s system 5% cpu 3:26.35 total
johnrtitor@darwin01 ~ % nix build "github:nixos/nixpkgs/refs/pull/410555/merge#element-desktop" --print-out-paths                         
/nix/store/8dxpqfwavr1f96wsirkgrq3dxqzsh0ps-element-desktop-1.11.102

@Ma27
Ma27 merged commit 490af9f into NixOS:master Jun 9, 2025
@nixpkgs-ci

nixpkgs-ci Bot commented Jun 9, 2025

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-25.05:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Jun 9, 2025
@nixpkgs-ci

nixpkgs-ci Bot commented Jun 9, 2025

Copy link
Copy Markdown
Contributor

Backport failed for release-24.11, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-24.11
git worktree add -d .worktree/backport-410555-to-release-24.11 origin/release-24.11
cd .worktree/backport-410555-to-release-24.11
git switch --create backport-410555-to-release-24.11
git cherry-pick -x cb645ca716cca6e976b988c5949aae4c7fd80bf3 84458a3fcd32fe1119ee8899098938334fecd08e

@nixpkgs-ci

nixpkgs-ci Bot commented Jun 9, 2025

Copy link
Copy Markdown
Contributor

Git push to origin failed for release-25.05 with exitcode 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants