Skip to content
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

Unhandled C++ Exception / 0x7ff8f8034fd9 #2540

Open
hrueger opened this issue Sep 24, 2022 · 2 comments
Open

Unhandled C++ Exception / 0x7ff8f8034fd9 #2540

hrueger opened this issue Sep 24, 2022 · 2 comments

Comments

@hrueger
Copy link

hrueger commented Sep 24, 2022

SerialPort Version

10.4.0

Node Version

16.13.2

Electron Version

20.1.4

Platform

Microsoft Windows NT 10.0.19044.0 x64

Architecture

x64

Hardware or chipset of serialport

No response

What steps will reproduce the bug?

I unfortunately don't know. This happens occasionally in a complex application and I don't have found any way to trigger the bug. It just happens sometimes.

What happens?

The native code crashes. See here for the sentry stack trace: https://sentry.internal.makepro-x.com/share/issue/00c398c251ff426db2063a206d9117a1/

I know that this error comes from node-serialport, because if I open 37a99351-6a52-4763-a2d4-6ab1040c4070.tmp.node in a text editor, I find ascii text like node-serialport:DrainBaton or D:\a\bindings-cpp\bindings-cpp\src\serialport.

Unfortunately, I don't have more information available. Is there a place where I could get the .pdb files in order to upload them to sentry?

What should have happened?

It should not crash :-)

Additional information

No response

@hrueger
Copy link
Author

hrueger commented Sep 24, 2022

Could this be the problem?
Electron and the V8 Memory Cage
see also justinlatimer/node-midi#228 (comment)

@Julusian
Copy link
Contributor

Sharing info over here too, the memory cage is enabled in electron 21 not 20, so wont be at fault here.
I did look over the native code, and didnt see the broken pattern, so I think this module should be ok.

Additionally, when hitting the memory cage issue it is very clear why it crashed:

[824319:0924/182105.427206: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.

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

No branches or pull requests

2 participants