-
Notifications
You must be signed in to change notification settings - Fork 403
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
[ Error ]: ICEORYX error! MEPOO__MEMPOOL_CHUNKSIZE_MUST_BE_MULTIPLE_OF_CHUNK_MEMORY_ALIGNMENT #2337
Comments
This indicates that your mempool configuration is invalid. Are you using the TOML config or do you create it programmatically? Anyway, you need to ensure that the payload size is a multiple of the specified memory alignment. |
@elBoberido Thank you, I assign the TOML config, like follow
I use ros2 galactic version. Can you give some advice how to set the TOML config ? source /opt/ros/galactic/install/setup.bash
iox-roudi -c `pwd`/platform/ros2/havp_nni_node/config/roudi_config.toml |
@elBoberido Another problem, I want to know whether the addrs of borrow-loaded-msg memory are in limited range(number), I need get those addrs for static graph setting. |
@lix19937 well,
I'm not sure what you mean with this? |
I means ptr here std::set<void *> ptr_set; /// define in Class Init
...
// runtime call
auto psd_loaned_msg = psd_pub_->borrow_loaned_message();
if (!psd_loaned_msg.is_valid()){
ERR("Failed to borrow_loaned_message!");
raise(SIGINT);
return;
}
auto &psd_pub_msg = psd_loaned_msg.get();
auto ptr = psd_pub_msg.data.data() // addr data in msg !!!
ptr_set.insert(ptr ); /// I want to know the size of ptr_set is limited and fixed.
psd_msg define follow
|
some tips: !!! note Actually only the chunk-payload size is configured and the size of the ChunkHeader will be added to the configured size. If a user-header or a user-payload alignment larger than 8 is used, the available size for the user-payload will be smaller than the configured chunk-payload since some space is needed for the other functionality. Please have a look at the chunk_header.md design document for a formula how to determine the necessary chunk-payload size with user-header and extended user-payload alignment.
https://github.com/eclipse-iceoryx/iceoryx/blob/main/doc/website/advanced/configuration-guide.md |
@lix19937 I'm still not sure what you mean with
All I can say is that the payload has a fixed size, everything else is not handled by iceoryx and depends on your msg file. I'll close this issue, since the problem with iceoryx was clarified. |
2022-01-01 11:45:58.305 [ Error ]: ICEORYX error! MEPOO__MEMPOOL_CHUNKSIZE_MUST_BE_MULTIPLE_OF_CHUNK_MEMORY_ALIGNMENT
The text was updated successfully, but these errors were encountered: