-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ref(profiling) Fix electron crash #14216
base: develop
Are you sure you want to change the base?
Conversation
ed3d79d
to
c82add5
Compare
profile_title, | ||
{v8::CpuProfilingMode::kCallerLineNumbers, | ||
v8::CpuProfilingOptions::kNoSampleLimit, kSamplingInterval}); | ||
profile_title, v8::CpuProfilingMode::kCallerLineNumbers, true, |
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.
Unclear why using the options signature causes this to sigabrt, but this will do too.
size-limit report 📦
|
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.
I haven't checked to see exactly what causes this but Electron applies a load of patches to v8/node which might cause something like this 🤔
Hah, good to know! My knowledge of electron isn't great, but that gives me a lead to look at next, thank you! |
This PR fixes the electron crash observed in #13978
I am not entirely sure as to why this causes a sigabrt, so I am working around the issue (obtaining a coredump out of electron did not seem trivial and my knowledge around electron isn't very extensive). The v8 options class and the constants are exposed correctly, I ruled that out, however the crash still seems to happen when they are used in this specific signature.
In order to have this running with electron, users will require to use the electron/rebuild package, which is the recommended approach by electron that rebuilds native node addons by providing the correct abi headers for the electron version the user is running. For now, we wont provide any prebuilt binaries and instead rely on the fallback mechanism to load the correct module. I will reevaluate this if it causes issues with bundling and look to add proper runtime electron detection.