question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unit tests fail on Node.js v14.x and v15.x - Check failed: result.second.

See original GitHub issue

When using the latest Node.js LTS Fermium v14.15.0, the unit test began to fail consistently and it also reproduces on v15.x versions. Backtrace is

#
# Fatal error in , line 0
# Check failed: result.second.
#
#
#
#FailureMessage Object: 0x7fff04fd3a70
 1: 0xa70141  [node]
 2: 0x19cf084 V8_Fatal(char const*, ...) [node]
 3: 0xe594c9 v8::internal::GlobalBackingStoreRegistry::Register(std::shared_ptr<v8::internal::BackingStore>) [node]
 4: 0xba4a18 v8::ArrayBuffer::GetBackingStore() [node]
 5: 0x9c18f0 napi_get_typedarray_info [node]
 6: 0x7fa130ce70ef  [/root/rclnodejs/node_modules/ref-napi/prebuilds/linux-x64/node.napi.node]
 7: 0x7fa130ce7918  [/root/rclnodejs/node_modules/ref-napi/prebuilds/linux-x64/node.napi.node]
 8: 0x7fa130ce7bbb  [/root/rclnodejs/node_modules/ref-napi/prebuilds/linux-x64/node.napi.node]
 9: 0x7fa130cefceb Napi::details::CallbackData<void (*)(Napi::CallbackInfo const&), void>::Wrapper(napi_env__*, napi_callback_info__*) [/root/rclnodejs/node_modules/ref-napi/prebuilds/linux-x64/node.napi.node]

and the corresponding PR #716

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (11 by maintainers)

github_iconTop GitHub Comments

4reactions
minggangwcommented, Sep 26, 2021

After forking ref-napi, ref-struct-di and ref-array-di and making some changes, we can pass all the unit tests on latest galactic release now 😄 , if you want to experience rclnodejs with nodejs >= 14 please check out branch https://github.com/RobotWebTools/rclnodejs/tree/nodejs-16

0reactions
minggangwcommented, Jan 6, 2022

I think the issue was fixed, so close it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript unit tests fail during Jenkins build - Stack Overflow
On Windows, my projects build successfully. When Jenkins runs the builds on Linux, however, I randomly will see unit test failures that seem...
Read more >
Node.js v19.3.0 Documentation
It will then check that the promise is not rejected. If asyncFn is a function and it throws an error synchronously, assert.doesNotReject() will...
Read more >
Installing a custom version of NVM and Node.js
DreamHost support is unable to assist with custom installations. The directions below will explain how to install Node.js but if you find ......
Read more >
Download & Update Node.js to the Latest Version! Node v19 ...
The next LTS version, v18 is planned to take over on 2022-10-25. In this article below, you'll find changelogs and download / update...
Read more >
Testing Node.js | WebStorm Documentation - JetBrains
The current page describes testing with Mocha, which is a JavaScript test framework that is especially helpful for executing asynchronous ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found