Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zenohd panics with plugins_loading/enabled:false #1235

Open
fuzzypixelz opened this issue Jul 10, 2024 · 0 comments
Open

zenohd panics with plugins_loading/enabled:false #1235

fuzzypixelz opened this issue Jul 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@fuzzypixelz
Copy link
Member

fuzzypixelz commented Jul 10, 2024

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:

pub fn libloader(&self) -> LibLoader {
if self.plugins_loading.enabled {
match self.plugins_loading.search_dirs() {
Some(dirs) => LibLoader::new(dirs, true),
None => LibLoader::default(),
}
} else {
LibLoader::empty()
}
}
}

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

@fuzzypixelz fuzzypixelz added the bug Something isn't working label Jul 10, 2024
@fuzzypixelz fuzzypixelz changed the title zenohd panic with plugins_loading/enabled:false zenohd panics with plugins_loading/enabled:false Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant