Cannot run navigation_rosbridge - can't find library

I’m trying to develop my own ros bridge and started by testing the provided example, but I cannot get it to run.

The command I run is:

bazel run //apps/samples/navigation_rosbridge

However, I get an error saying it cannot find libnavigation_ros_bridge_module.so (full error message below).

The application is looking for the library here:

~/.cache/bazel/_bazel_jjachnik/d190ff169d6b5f6f0b257376fad7b091/execroot/com_nvidia_isaac/bazel-out/k8-opt/bin/apps/samples/navigation_rosbridge/navigation_rosbridge.runfiles/com_nvidia_isaac//external/com_nvidia_isaac/apps/samples/navigation_rosbridge/libnavigation_ros_bridge_module.so

but the file actually exists here:

~/.cache/bazel/_bazel_jjachnik/d190ff169d6b5f6f0b257376fad7b091/execroot/com_nvidia_isaac/bazel-out/k8-opt/bin/apps/samples/navigation_rosbridge/navigation_rosbridge.runfiles/com_nvidia_isaac/apps/samples/navigation_rosbridge/libnavigation_ros_bridge_module.so

Notice the path where it is looking for the library has an extra “//external/com_nvidia_isaac” in the middle which breaks it.

Any ideas how to fix this?

Full error output:

❯ bazel run //apps/samples/navigation_rosbridge
INFO: Analysed target //apps/samples/navigation_rosbridge:navigation_rosbridge (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //apps/samples/navigation_rosbridge:navigation_rosbridge up-to-date:
  bazel-genfiles/apps/samples/navigation_rosbridge/run_navigation_rosbridge
  bazel-bin/apps/samples/navigation_rosbridge/navigation_rosbridge
INFO: Elapsed time: 0.187s, Critical Path: 0.00s, Remote (0.00% of the time): [queue: 0.00%, setup: 0.00%, process: 0.00%]
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
2019-11-14 10:22:42.851 INFO    engine/alice/tools/websight.cpp@166: Loading websight...
2019-11-14 10:22:42.851 WARNING engine/alice/backend/application_json_loader.cpp@98: This application does not have an explicit scheduler configuration. One will be autogenerated to the best of the system's abilities if possible.
2019-11-14 10:22:42.851 WARNING engine/alice/backend/backend.cpp@168: This application does not have an execution group configuration. One will be autogenerated to the best of the systems abilities if possible.
2019-11-14 10:22:42.851 WARNING engine/gems/scheduler/scheduler.cpp@337: No default execution groups specified. Attempting to create scheduler configuration for 12 remaining cores. This may be non optimal for the system and application.
2019-11-14 10:22:42.851 INFO    engine/gems/scheduler/scheduler.cpp@290: Scheduler execution groups are:
2019-11-14 10:22:42.851 INFO    engine/gems/scheduler/scheduler.cpp@299: __BlockerGroup__: Cores = [9, 10, 11], Workers = No
2019-11-14 10:22:42.851 INFO    engine/gems/scheduler/scheduler.cpp@299: __WorkerGroup__: Cores = [0, 1, 2, 3, 4, 5, 6, 7, 8], Workers = Yes
2019-11-14 10:22:42.855 INFO    engine/alice/backend/modules.cpp@283: Loaded module 'packages/sight/libsight_module.so': Now has 41 components total
2019-11-14 10:22:42.856 ERROR   engine/alice/backend/modules.cpp@307: //apps/samples/navigation_rosbridge:navigation_ros_bridge: /home/jjachnik/.cache/bazel/_bazel_jjachnik/d190ff169d6b5f6f0b257376fad7b091/execroot/com_nvidia_isaac/bazel-out/k8-opt/bin/apps/samples/navigation_rosbridge/navigation_rosbridge.runfiles/com_nvidia_isaac//external/com_nvidia_isaac/apps/samples/navigation_rosbridge/libnavigation_ros_bridge_module.so: cannot open shared object file: No such file or directory
2019-11-14 10:22:42.856 PANIC   engine/alice/backend/modules.cpp@309: Could not load all required modules for application
====================================================================================================
|                            Isaac application terminated unexpectedly                             |
====================================================================================================
#01 engine/alice/tools/main(+0x8046a) [0x5573c32ba46a]
#02 engine/alice/tools/main(+0xe86d0) [0x5573c33226d0]
#03 engine/alice/tools/main(+0xe8a40) [0x5573c3322a40]
#04 /lib/x86_64-linux-gnu/libpthread.so.0(+0x12890) [0x7fb39042b890]
#05 /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7) [0x7fb38fac5e97]
#06 /lib/x86_64-linux-gnu/libc.so.6(abort+0x141) [0x7fb38fac7801]
#07 engine/alice/tools/main(+0x9d1f7) [0x5573c32d71f7]
#08 engine/alice/tools/main(+0x34bdc) [0x5573c326ebdc]
#09 engine/alice/tools/main(+0x350f3) [0x5573c326f0f3]
#10 engine/alice/tools/main(+0x352e4) [0x5573c326f2e4]
#11 engine/alice/tools/main(+0x15c23) [0x5573c324fc23]
#12 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7fb38faa8b97]
#13 engine/alice/tools/main(+0x1af7a) [0x5573c3254f7a]
====================================================================================================
Minidump written to: /tmp/d6b32e1c-2c78-4acc-42f0dd87-f44a115e.dmp
Aborted

Pardon the delay, Jan. Were you able to solve it? Or is it still lingering?

@shrinv
we are getting the same issue
running from Host PC

~/dev/sdk$ bazel run //apps/samples/navigation_rosbridge

results in

 module 'packages/sight/libsight_module.so': Now has 31 components total
2021-02-22 16:47:07.533 ERROR external/com_nvidia_isaac_engine/engine/alice/backend/modules.cpp@295: apps/samples/navigation_rosbridge/libnavigation_ros_bridge_module.so: librosconsole_log4cxx.so: cannot open shared object file: No such file or directory
2021-02-22 16:47:07.533 PANIC external/com_nvidia_isaac_engine/engine/alice/backend/modules.cpp@297: Could not load all required modules for application
====================================================================================================
|                            Isaac application terminated unexpectedly                             |
====================================================================================================
#01 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0x6cc1a) [0x55ddc7f20c1a]
#02 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0xe3e80) [0x55ddc7f97e80]
#03 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0xe41f0) [0x55ddc7f981f0]
#04 /lib/x86_64-linux-gnu/libpthread.so.0(+0x12980) [0x7f47278f1980]
#05 /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7) [0x7f4726f8bfb7]
#06 /lib/x86_64-linux-gnu/libc.so.6(abort+0x141) [0x7f4726f8d921]
#07 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0x7810e) [0x55ddc7f2c10e]
#08 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0x315a7) [0x55ddc7ee55a7]
#09 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0x33a69) [0x55ddc7ee7a69]
#10 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0x33dbf) [0x55ddc7ee7dbf]
#11 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0x12873) [0x55ddc7ec6873]
#12 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f4726f6ebf7]
#13 external/com_nvidia_isaac_engine/engine/alice/tools/main(+0x17eca) [0x55ddc7ecbeca]

Minidump written to: /tmp/c440d94e-d1e4-49ec-0c69e5ad-dd43e735.dmp
1 Like

after installing
sudo apt install librosconsole-dev
sudo apt install libxmlrpcpp
it will just fail with Segfault on execution
any ideas?
version of sdk 2020.2

Getting similar error
Any thoughts how to solve it?

On Ubuntu 18.04, I also needed Boost which led to a quite segfault earlier:

sudo apt-get install -y
liblog4cxx-dev
libboost-all-dev
libxmlrpcpp-dev
librosconsole-dev