eclipse-zenoh / zenoh

zenoh unifies data in motion, data in-use, data at rest and computations. It carefully blends traditional pub/sub with geo-distributed storages, queries and computations, while retaining a level of time and space efficiency that is well beyond any of the mainstream stacks.
https://zenoh.io
Other
1.37k stars 141 forks source link

`zenohd` panics with `plugins_loading/enabled:false` #1235

Open fuzzypixelz opened 2 weeks ago

fuzzypixelz commented 2 weeks ago

Describe the bug

If the plugins_loading/enabled configuration option is set to false, then zenohd panics because the plugin loader is initialized with an empty search path:

https://github.com/eclipse-zenoh/zenoh/blob/b3e42cef38f6227a87a26725d0479bcf9ace69a9/commons/zenoh-config/src/lib.rs#L732-L742

Here is the error:

2024-07-10T08:42:14.363618Z  INFO main ThreadId(01) zenoh::api::loader: Loading required plugin "rest"
thread 'main' panicked at zenoh/src/api/loader.rs:64:17:
Plugin load failure: Library file 'libzenoh_plugin_rest.dylib' not found at commons/zenoh-util/src/lib_loader.rs:145.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

To reproduce

  1. cargo run --bin zenohd -- --cfg='plugins_loading/enabled:false'

System info