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.

npm i in docker says: cannot convert ‘rcutils_allocator_t’ to ‘rcl_context_t*’

See original GitHub issue

Hi, i get the following error when i try to npm install in the official ros2 docker image:

make: Entering directory '/ros2-web-bridge/node_modules/rclnodejs/build'
  CXX(target) Release/obj.target/rclnodejs/src/addon.o
  CXX(target) Release/obj.target/rclnodejs/src/executor.o
../src/executor.cpp: In static member function ‘static void rclnodejs::Executor::Run(void*)’:
../src/executor.cpp:96:66: error: cannot convert ‘rcutils_allocator_t’ to ‘rcl_context_t*’ for argument ‘7’ to ‘rcl_ret_t rcl_wait_set_init(rcl_wait_set_t*, size_t, size_t, size_t, size_t, size_t, rcl_context_t*, rcl_allocator_t)’
                                       rcl_get_default_allocator());

logs with node 8 and node 11

rclnodejs@0.9.0 seems to install fine

ros2-web-bridge version: 0.2.5

How should i continue debugging this?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

0reactions
minggangwcommented, Apr 1, 2019

I see. I suggest you install rclnodejs from github directly, e.g. open the package.json of your app, and add the line below to replace the original dependency:

"rclnodejs": "RobotWebTools/rclnodejs"

This should curb the compiling error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

fails to invoke npm when used in run-scripts #1734 - GitHub
I'm having a similar issue. We're seeing it when we try to do an npm install from the Docker command, when we set...
Read more >
Cannot find module for a node js app running in a docker ...
When I do docker-compose up, I get this error: backend_1 | npm info it worked if it ends with ok backend_1 | npm...
Read more >
Docker and private modules | npm Docs
You cannot install private npm packages in a Docker container using only runtime variables. Consider the following Dockerfile: FROM node.
Read more >
10 best practices to containerize Node.js web applications ...
Use small Docker images — this will translate to a smaller software footprint on the Docker image reducing the potential vulnerability vectors, ...
Read more >
docker node ls
docker node ls: Lists all the nodes that the Docker Swarm manager knows about. You can filter using the `-f` or `--filter` flag....
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