Closed slogan-oxts closed 3 years ago
Node.js: 14.15.4
The crash that happens on nodejs 14.x is a known issue, and it was caused by the dependency of rclnodejs, ref-napi. We haven't fixed it yet.
While testing with RosSharp, I tested an older version of Node.js 12.19.0,
The crash that happens on nodejs 12.19.0 was caused by nodejs, please see here and it's fixed by the higher version of nodejs.
So, the solution is to use the latest Erbium nodejs, v12.20.1
Hi @minggangw
Thanks for the quick reply. That seems to be working perfectly now. I would suggest this information should be put in the README.md as currently there is no indication of which version of node.js is required:
2.Install Node.js You can install Node.js:
Download from Node.js offical website, and install it. Use the Node Version Manager (nvm) to install it.
Thanks for your suggestion, we have put the requirement of nodejs into rclnodejs README and will add it for the ros2-web-bridge, thanks!
OS: Windows 10 Ros: Ros2 Eloquent Node.js: 14.15.4
I've been trying to get this working as part of RosSharp but I am running into an issue where the web bridge is crashing after a period of time:
or sometimes:
I created a simple publisher in python using rclpy which publishes a string "/topic" at 100hz.
I edited the example subscription.html to subscribe to this topic. It connects shows the messages then after a few seconds the server crashes with one of the above errors.
While testing with RosSharp, I tested an older version of Node.js 12.19.0, it seemed to last a lot longer but still eventually crashed (with no error message).