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
Chore(deps): Upgrade electron to 20 #7692
Conversation
Good! |
Fails to build on my macOS. Even after rm all and starting over. electron-rebuild fails to rebuild fsevents with an error message related to the |
Check the rendering issue after upgrade: |
This reverts commit cc63ce5.
✅ Tested building and running on Arch Linux using the latest kernel [3591228:1215/015431.290602:ERROR:node_bindings.cc(146)] Fatal error in V8: v8_ArrayBuffer_NewBackingStore When the V8 Sandbox is enabled, ArrayBuffer backing stores must be allocated inside the sandbox address space. Please use an appropriate ArrayBuffer::Allocator to allocate these buffers.
[3591344:1215/015432.786357:ERROR:broker_posix.cc(40)] Recvmsg error: Connection reset by peer (104)
Segmentation fault (core dumped) |
@Bad3r Thanks a lot for testing this! I updated the description of the PR with information that might be related to your issue. Could you please also post the exact versions of NodeJS that you used? |
@andelf Thanks! That should be handled now. |
I used NodeJS LTS Hydrogen (18.12.1) https://nodejs.dev/en/about/releases/ Btw logseq fails to build with NodeJS 19/electron 21 due to better-sqlite3 In the electron 21 pr you linked to, they mention using NodeJS 16.17.0 |
Is there more testing needed before pushing v20? |
Hey @Bad3r! We put this on hold until 0.8.13-14. Let's wait for the rest of the team to also take a look. You have done more than enough ❤️ |
I hope now it's a good chance to introduce the upgrade? |
Any blockers on this PR? |
We should be good to merge this. |
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.
LGTM 🚀
I have been testing it on Linux for a while without any issues
Awesome, merged! 🚢 |
upgrade electron to 21
If you met this in the
try the following command to rebuild better-sqlite3:
|
Electron 19 reached end of support. Upgrading would also (hopefully) help us resolve various font rendering issues on linux. Electron 22.0.0 was released a couple of weeks ago, but it might be too soon to upgrade to 22. Also, electron 21 introduced a breaking change related to V8 Memory Cage that might cause issues. so I decided to go with 20 for now.
20.3.8
8.0.1
to include this fix (no relevant breaking changes on 8.0.0)sandbox
window option tofalse
(renderers are sandboxed by default on electron 20+)3.2.10
(name deprecation notice here)6.0.4
(this is a good opportunity to move to a stable version)Successfully built and tested on
Regarding electron 21+
See #7692 (comment)