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

VoskJS HTTPServer crash (v8::internal::GlobalBackingStoreRegistry::Register) #3

Open
solyarisoftware opened this issue May 2, 2021 · 2 comments
Assignees
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@solyarisoftware
Copy link
Owner

solyarisoftware commented May 2, 2021

When testing httpServer with apache bench tool script abtest.sh, the system crashes with error:

#
# Fatal error in , line 0
# Check failed: result.second.
#
#
#
#FailureMessage Object: 0x7fff4e7883b0
 1: 0xb7db41  [node]
 2: 0x1c15474 V8_Fatal(char const*, ...) [node]
 3: 0x100c201 v8::internal::GlobalBackingStoreRegistry::Register(std::shared_ptr<v8::internal::BackingStore>) [node]
 4: 0xd23818 v8::ArrayBuffer::GetBackingStore() [node]
 5: 0xacb640 napi_get_typedarray_info [node]
 6: 0x7f2039dee0ff  [/home/giorgio/voskjs/node_modules/ref-napi/prebuilds/linux-x64/node.napi.node]
 7: 0x7f2039dee8a8  [/home/giorgio/voskjs/node_modules/ref-napi/prebuilds/linux-x64/node.napi.node]
 8: 0x7f2039df0591  [/home/giorgio/voskjs/node_modules/ref-napi/prebuilds/linux-x64/node.napi.node]
 9: 0x7f2039df6d6b Napi::details::CallbackData<void (*)(Napi::CallbackInfo const&), void>::Wrapper(napi_env__*, napi_callback_info__*) [/home/giorgio/voskjs/node_modules/ref-napi/prebuilds/linux-x64/node.napi.node]
10: 0xac220f  [node]
11: 0x15a8f0c  [node]
Illegal instruction (core dumped)

see logs:
https://github.com/solyarisoftware/voskJs/blob/master/tests/README.md#HTTP-Server-benchmark-test

More details here:
alphacep/vosk-api#516

Maybe the problem is related to:

@solyarisoftware solyarisoftware added bug Something isn't working invalid This doesn't seem right labels May 2, 2021
@solyarisoftware
Copy link
Owner Author

workaround: it seems that that there is no issues with Node versions before v14.x.x:
alphacep/vosk-api#516 (comment)

@solyarisoftware solyarisoftware self-assigned this May 6, 2021
@nab138
Copy link

nab138 commented Dec 24, 2021

Any updates on this? I'm struggling with a similar issue when trying to transcribe from a buffer (I have to use nodejs v16+)

The fact that it happens randomly and cannot be handled like a normal error makes it impossible to work with in my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants