X Tutup
The Wayback Machine - https://web.archive.org/web/20201226093348/https://github.com/nodejs/node/issues/36515
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

v8 fatal error in BackingStore::Reallocate called from napi_get_buffer_info #36515

Open
scriptorian opened this issue Dec 14, 2020 · 1 comment
Open

Comments

@scriptorian
Copy link

@scriptorian scriptorian commented Dec 14, 2020

  • Version: v14.5.1
  • Platform: Microsoft Windows NT 10.0.19041.0 x64
  • Subsystem: V8

What steps will reproduce the bug?

Unfortunately I haven't been able to reproduce the bug outside my application - which has a fair amount of (mostly open source) dependencies - https://github.com/Streampunk/phaneron. There are 4 dependencies that make use of napi (via node_api.h) to implement off-thread processing by async workers. One of these is the source of the crash, although the call site is running on the main thread.
I didn't see this error when running v12.

Fatal error as follows:

#
# Fatal error in , line 0
# Check failed: result.second.
#
#
#
#FailureMessage Object: 0000005C9178E150
 1: 00007FF79D29021F napi_wrap+109311
 2: 00007FF79D1C48DF std::basic_ostream<char,std::char_traits<char> >::operator<<+57151
 3: 00007FF79DDFD442 V8_Fatal+162
 4: 00007FF79D8A12ED v8::internal::BackingStore::Reallocate+653
 5: 00007FF79DAE7129 v8::ArrayBuffer::GetBackingStore+137
 6: 00007FF79D25515A node::Buffer::Data+58
 7: 00007FF79D25E28F napi_get_buffer_info+79
 8: 00007FFD3CF133D9 hostAccess+1113 [C:\Users\simon\Documents\Streampunk\git\phaneron\node_modules\nodencl\src\noden_buffer.cc]:L161

The crash occurs (sometimes) after starting the code (ts-node src/index.ts) and playing a media file by typing into the AMCP prompt: play 1-1 <filename>. It seems to fail early during the file read rather than during steady running.

If you wish to try running this code without installing a driver you will need to comment out the decklink device configured at the top of index.ts (line 43 currently).

How often does it reproduce? Is there a required condition?

Regularly but not always. Call stack is consistent.

What is the expected behavior?

What do you see instead?

Additional information

@brendon-flanagan
Copy link

@brendon-flanagan brendon-flanagan commented Dec 23, 2020

I have similar issue

#
# Fatal error in , line 0
# Check failed: result.second.
#
#
#
#FailureMessage Object: 0000005A03B2CFE0
 1: 00007FF6D019021F napi_wrap+109311
 2: 00007FF6D00C48DF std::basic_ostream<char,std::char_traits<char> >::operator<<+57151
 3: 00007FF6D0CFD442 V8_Fatal+162
 4: 00007FF6D07A12ED v8::internal::BackingStore::Reallocate+653
 5: 00007FF6D09E7129 v8::ArrayBuffer::GetBackingStore+137
 6: 00007FF6D0172119 napi_get_typedarray_info+393
 7: 00007FFB39B29B41
 8: 00007FFB39B2F28D
 9: 00007FFB39B27EC3
10: 00007FFB39B2EAE3
11: 00007FF6D016C9C6 node::Stop+35286
12: 00007FF6D09AD76F v8::internal::Builtins::builtin_handle+321471
13: 00007FF6D09ACD04 v8::internal::Builtins::builtin_handle+318804
14: 00007FF6D09ACFF7 v8::internal::Builtins::builtin_handle+319559
15: 00007FF6D09ACE43 v8::internal::Builtins::builtin_handle+319123
16: 00007FF6D0A88FDD v8::internal::SetupIsolateDelegate::SetupHeap+464173
17: 00007FF6D0A218E2 v8::internal::SetupIsolateDelegate::SetupHeap+40498
18: 000000E3E5F6A3B5
npm ERR! code ELIFECYCLE
npm ERR! errno 3221225477
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.
X Tutup