Skip to content

Fix intermittent crash on Electron 18+#1951

Merged
ianhattendorf merged 2 commits into
nodegit:masterfrom
zawata:fix/WinElectronCrash
Nov 4, 2022
Merged

Fix intermittent crash on Electron 18+#1951
ianhattendorf merged 2 commits into
nodegit:masterfrom
zawata:fix/WinElectronCrash

Conversation

@zawata
Copy link
Copy Markdown
Contributor

@zawata zawata commented Nov 2, 2022

This was not fun to track down. Probably ~3 weeks of work?

This PR bumps nan to a custom version hosted on the axosoft org(could be moved to nodegit if necessary) and bumps the internal field count on object templates to account for the updates made to nan.

more details on what is happening and why, here:
Axosoft/nan#1
and here:
https://github.com/electron/electron/blob/693cf0ebdebb272494610a5ed2e9c405e825813e/patches/node/be_compatible_with_cppgc.patch

@zawata zawata force-pushed the fix/WinElectronCrash branch 2 times, most recently from 78ee046 to 3b997a5 Compare November 3, 2022 16:44
@zawata
Copy link
Copy Markdown
Contributor Author

zawata commented Nov 3, 2022

CI failures appear to be caused by an npm bug so ill publish the @axosoft/nan package and put it in this PR.

@zawata zawata force-pushed the fix/WinElectronCrash branch from 3b997a5 to 36b8c9c Compare November 3, 2022 22:41
@zawata zawata force-pushed the fix/WinElectronCrash branch from 36b8c9c to 1a85710 Compare November 3, 2022 22:52
Copy link
Copy Markdown
Member

@ianhattendorf ianhattendorf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work 🎉

@ianhattendorf ianhattendorf merged commit 2cc0e38 into nodegit:master Nov 4, 2022
weedz pushed a commit to weedz/nodegit that referenced this pull request Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants