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

Win32 API error in event open #458

Open
xxshady opened this issue Oct 10, 2024 · 7 comments
Open

Win32 API error in event open #458

xxshady opened this issue Oct 10, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@xxshady
Copy link

xxshady commented Oct 10, 2024

Not sure if it's a bug, probably somehow related to this?

Required information

Operating system: Windows 11, 23H2, ver: Microsoft Windows [Version 10.0.22631.4169]

Rust version: rustc 1.81.0 (eeb90cda1 2024-09-04)

Cargo version: cargo 1.81.0 (2dbb1af80 2024-08-20)

iceoryx2 version: 0.4.1

Detailed log output:

Details
Running `target\debug\host.exe`
        0 [D] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 20, data: "config/iceoryx2.toml" } }, access_mode: Read, permission: 
              Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None, creation_mode: None }
              | Unable to open file since it does not exist.
        1 [D] Config { global: Global { root_path_unix: Path { value: FixedSizeByteString<255> { len: 14, data: "/tmp/iceoryx2/" } }, root_path_windows: Path 
              { value: FixedSizeByteString<255> { len: 17, data: "c:\Temp\iceoryx2\" } }, prefix: FileName { value: FixedSizeByteString<255> { len: 5, data: "
              iox2_" } }, service: Service { directory: Path { value: FixedSizeByteString<255> { len: 8, data: "services" } }, publisher_data_segment_suffix: 
              FileName { value: FixedSizeByteString<255> { len: 15, data: ".publisher_data" } }, static_config_storage_suffix: FileName { value: FixedSizeByte
              String<255> { len: 8, data: ".service" } }, dynamic_config_storage_suffix: FileName { value: FixedSizeByteString<255> { len: 8, data: ".dynamic"
               } }, creation_timeout: 500ms, connection_suffix: FileName { value: FixedSizeByteString<255> { len: 11, data: ".connection" } }, event_connectio
              n_suffix: FileName { value: FixedSizeByteString<255> { len: 6, data: ".event" } } }, node: Node { directory: Path { value: FixedSizeByteString<2
              55> { len: 5, data: "nodes" } }, monitor_suffix: FileName { value: FixedSizeByteString<255> { len: 13, data: ".node_monitor" } }, static_config_
              suffix: FileName { value: FixedSizeByteString<255> { len: 8, data: ".details" } }, service_tag_suffix: FileName { value: FixedSizeByteString<255
              > { len: 12, data: ".service_tag" } }, cleanup_dead_nodes_on_creation: true, cleanup_dead_nodes_on_destruction: true } }, defaults: Defaults { p
              ublish_subscribe: PublishSubscribe { max_subscribers: 8, max_publishers: 2, max_nodes: 20, subscriber_max_buffer_size: 2, subscriber_max_borrowe
              d_samples: 2, publisher_max_loaned_samples: 2, publisher_history_size: 1, enable_safe_overflow: true, unable_to_deliver_strategy: Block, subscri
              ber_expired_connection_buffer: 128 }, event: Event { max_listeners: 2, max_notifiers: 16, max_nodes: 36, event_id_max_value: 32 } } }
              | Failed to create config since the config file could not be opened.
        2 [W] "Config::global_config()"
              | Default config file found but unable to read data, populate config with default values.
        3 [T] Directory { path: Path { value: FixedSizeByteString<255> { len: 51, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896" } }, directory_s
              tream: 0x2, file_descriptor: FileDescriptor { value: 0, is_owned: false } }
              | created
        4 [T] Builder { storage_name: FileName { value: FixedSizeByteString<255> { len: 4, data: "node" } }, has_ownership: false, config: Configuration { pat
              h: Path { value: FixedSizeByteString<255> { len: 51, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896" } }, suffix: FileName { value: 
              FixedSizeByteString<255> { len: 8, data: ".details" } }, prefix: FileName { value: FixedSizeByteString<255> { len: 5, data: "iox2_" } } } }     
              | Created service root directory "c:\Temp\iceoryx2\nodes\2344370886309983727313240896" since it did not exist before.
        5 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 69, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_n
              ode.details" } }, access_mode: ReadWrite, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None, crea
              tion_mode: Some(CreateExclusive) }
              | created
        6 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 80, data: "c:\Temp\iceoryx2\nodes\iox2_2344370886309983727313240896.n
              ode_monitor_owner_lock" } }, access_mode: ReadWrite, permission: Permission(448), has_ownership: true, owner: None, group: None, truncate_size: 
              None, creation_mode: Some(CreateExclusive) }
              | created
        7 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 69, data: "c:\Temp\iceoryx2\nodes\iox2_2344370886309983727313240896.n
              ode_monitor" } }, access_mode: ReadWrite, permission: Permission(128), has_ownership: true, owner: None, group: None, truncate_size: None, creat
              ion_mode: Some(CreateExclusive) }
              | created
        8 [T] "ProcessGuard::new()"
              | create process state "c:\Temp\iceoryx2\nodes\iox2_2344370886309983727313240896.node_monitor" for monitoring
        9 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       10 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       11 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       12 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       13 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 109, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_
              b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag" } }, access_mode: ReadWrite, permission: Permission(448), has_ownership: false, owner: Non
              e, group: None, truncate_size: None, creation_mode: Some(CreateExclusive) }
              | created
< Win32 API error > C:\Users\xshad\.cargo\registry\src\index.crates.io-6f17d22bba15001f\iceoryx2-pal-posix-0.4.1\src\windows\mman.rs:174 OpenFileMappingA(FILE_MAP_ALL_ACCESS, false as i32, name as *const u8)
 [ 2 ] The system cannot find the file specified.

       14 [D] SharedMemoryBuilder { name: FileName { value: FixedSizeByteString<255> { len: 94, data: "iox2_305ad9523c6b202364d581359ec3d2c5743e42e7_b658a14a0
              58f0680bd49c7d22c200d81a4c0670c.dynamic" } }, size: 0, is_memory_locked: false, has_ownership: true, permission: Permission(448), creation_mode:
               None, zero_memory: true, access_mode: ReadWrite, enforce_base_address: None }
              | Unable to open shared memory since the shared memory does not exist.
       15 [D] Builder { storage_name: FileName { value: FixedSizeByteString<255> { len: 40, data: "b658a14a058f0680bd49c7d22c200d81a4c0670c" } }, supplementar
              y_size: 0, has_ownership: false, config: Configuration { suffix: FileName { value: FixedSizeByteString<255> { len: 8, data: ".dynamic" } }, pref
              ix: FileName { value: FixedSizeByteString<255> { len: 5, data: "iox2_" } }, path: Path { value: FixedSizeByteString<255> { len: 17, data: "c:\Te
              mp\iceoryx2\" } }, _data: PhantomData<iceoryx2::service::dynamic_config::DynamicConfig> }, timeout: 500ms, initializer: , _phantom_data: Phantom
              Data<iceoryx2::service::dynamic_config::DynamicConfig> }
              | Failed to open  since a shared memory with that name does not exists.
       16 [D] BuilderWithServiceType { service_config: StaticConfig { service_id: ServiceId(RestrictedFileName { value: FixedSizeByteString<64> { len: 40, dat
              a: "b658a14a058f0680bd49c7d22c200d81a4c0670c" } }), service_name: ServiceName { value: "EveryTick" }, attributes: AttributeSet([]), messaging_pa
              ttern: Event(StaticConfig { max_notifiers: 16, max_listeners: 2, max_nodes: 36, event_id_max_value: 32 }) }, shared_node: SharedNode { id: NodeI
              d(UniqueSystemId { value: 2344370886309983727313240896, pid: 17216, creation_time: Time { clock_type: Realtime, seconds: 1728520730, nanoseconds
              : 127088600 } }), details: NodeDetails { executable: FileName { value: FixedSizeByteString<255> { len: 8, data: "host.exe" } }, name: NodeName {
               value: "" }, config: Config { global: Global { root_path_unix: Path { value: FixedSizeByteString<255> { len: 14, data: "/tmp/iceoryx2/" } }, ro
              ot_path_windows: Path { value: FixedSizeByteString<255> { len: 17, data: "c:\Temp\iceoryx2\" } }, prefix: FileName { value: FixedSizeByteString<
              255> { len: 5, data: "iox2_" } }, service: Service { directory: Path { value: FixedSizeByteString<255> { len: 8, data: "services" } }, publisher
              _data_segment_suffix: FileName { value: FixedSizeByteString<255> { len: 15, data: ".publisher_data" } }, static_config_storage_suffix: FileName 
              { value: FixedSizeByteString<255> { len: 8, data: ".service" } }, dynamic_config_storage_suffix: FileName { value: FixedSizeByteString<255> { le
              n: 8, data: ".dynamic" } }, creation_timeout: 500ms, connection_suffix: FileName { value: FixedSizeByteString<255> { len: 11, data: ".connection
              " } }, event_connection_suffix: FileName { value: FixedSizeByteString<255> { len: 6, data: ".event" } } }, node: Node { directory: Path { value:
               FixedSizeByteString<255> { len: 5, data: "nodes" } }, monitor_suffix: FileName { value: FixedSizeByteString<255> { len: 13, data: ".node_monito
              r" } }, static_config_suffix: FileName { value: FixedSizeByteString<255> { len: 8, data: ".details" } }, service_tag_suffix: FileName { value: F
              ixedSizeByteString<255> { len: 12, data: ".service_tag" } }, cleanup_dead_nodes_on_creation: true, cleanup_dead_nodes_on_destruction: true } }, 
              defaults: Defaults { publish_subscribe: PublishSubscribe { max_subscribers: 8, max_publishers: 2, max_nodes: 20, subscriber_max_buffer_size: 2, 
              subscriber_max_borrowed_samples: 2, publisher_max_loaned_samples: 2, publisher_history_size: 1, enable_safe_overflow: true, unable_to_deliver_st
              rategy: Block, subscriber_expired_connection_buffer: 128 }, event: Event { max_listeners: 2, max_notifiers: 16, max_nodes: 36, event_id_max_valu
              e: 32 } } } }, monitoring_token: UnsafeCell { .. }, registered_services: RegisteredServices { data: Mutex { data: {}, poisoned: false, .. } }, _
              details_storage: Storage { name: FileName { value: FixedSizeByteString<255> { len: 4, data: "node" } }, config: Configuration { path: Path { val
              ue: FixedSizeByteString<255> { len: 51, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896" } }, suffix: FileName { value: FixedSizeByte
              String<255> { len: 8, data: ".details" } }, prefix: FileName { value: FixedSizeByteString<255> { len: 5, data: "iox2_" } } }, has_ownership: fal
              se, file: File { path: Some(FilePath { value: FixedSizeByteString<255> { len: 69, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox
              2_node.details" } }), file_descriptor: FileDescriptor { value: 0, is_owned: true }, has_ownership: false }, len: 1114 } }, _phantom_data: Phanto
              mData<iceoryx2::service::ipc::Service> }
              | Failed to open dynamic service information since the dynamic storage could not be opened.
       17 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       18 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       19 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 109, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_
              b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, gr
              oup: None, truncate_size: None, creation_mode: None }
              | opened
       20 [T] "File::remove"
              | "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag"
       21 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       22 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       23 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 109, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_
              b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag" } }, access_mode: ReadWrite, permission: Permission(448), has_ownership: false, owner: Non
              e, group: None, truncate_size: None, creation_mode: Some(CreateExclusive) }
              | created
< Win32 API error > C:\Users\xshad\.cargo\registry\src\index.crates.io-6f17d22bba15001f\iceoryx2-pal-posix-0.4.1\src\windows\mman.rs:174 OpenFileMappingA(FILE_MAP_ALL_ACCESS, false as i32, name as *const u8)
 [ 2 ] The system cannot find the file specified.

       24 [D] SharedMemoryBuilder { name: FileName { value: FixedSizeByteString<255> { len: 94, data: "iox2_305ad9523c6b202364d581359ec3d2c5743e42e7_b658a14a0
              58f0680bd49c7d22c200d81a4c0670c.dynamic" } }, size: 0, is_memory_locked: false, has_ownership: true, permission: Permission(448), creation_mode:
               None, zero_memory: true, access_mode: ReadWrite, enforce_base_address: None }
              | Unable to open shared memory since the shared memory does not exist.
       25 [D] Builder { storage_name: FileName { value: FixedSizeByteString<255> { len: 40, data: "b658a14a058f0680bd49c7d22c200d81a4c0670c" } }, supplementar
              y_size: 0, has_ownership: false, config: Configuration { suffix: FileName { value: FixedSizeByteString<255> { len: 8, data: ".dynamic" } }, pref
              ix: FileName { value: FixedSizeByteString<255> { len: 5, data: "iox2_" } }, path: Path { value: FixedSizeByteString<255> { len: 17, data: "c:\Te
              mp\iceoryx2\" } }, _data: PhantomData<iceoryx2::service::dynamic_config::DynamicConfig> }, timeout: 500ms, initializer: , _phantom_data: Phantom
              Data<iceoryx2::service::dynamic_config::DynamicConfig> }
              | Failed to open  since a shared memory with that name does not exists.
       26 [D] BuilderWithServiceType { service_config: StaticConfig { service_id: ServiceId(RestrictedFileName { value: FixedSizeByteString<64> { len: 40, dat
              a: "b658a14a058f0680bd49c7d22c200d81a4c0670c" } }), service_name: ServiceName { value: "EveryTick" }, attributes: AttributeSet([]), messaging_pa
              ttern: Event(StaticConfig { max_notifiers: 16, max_listeners: 2, max_nodes: 36, event_id_max_value: 32 }) }, shared_node: SharedNode { id: NodeI
              d(UniqueSystemId { value: 2344370886309983727313240896, pid: 17216, creation_time: Time { clock_type: Realtime, seconds: 1728520730, nanoseconds
              : 127088600 } }), details: NodeDetails { executable: FileName { value: FixedSizeByteString<255> { len: 8, data: "host.exe" } }, name: NodeName {
               value: "" }, config: Config { global: Global { root_path_unix: Path { value: FixedSizeByteString<255> { len: 14, data: "/tmp/iceoryx2/" } }, ro
              ot_path_windows: Path { value: FixedSizeByteString<255> { len: 17, data: "c:\Temp\iceoryx2\" } }, prefix: FileName { value: FixedSizeByteString<
              255> { len: 5, data: "iox2_" } }, service: Service { directory: Path { value: FixedSizeByteString<255> { len: 8, data: "services" } }, publisher
              _data_segment_suffix: FileName { value: FixedSizeByteString<255> { len: 15, data: ".publisher_data" } }, static_config_storage_suffix: FileName 
              { value: FixedSizeByteString<255> { len: 8, data: ".service" } }, dynamic_config_storage_suffix: FileName { value: FixedSizeByteString<255> { le
              n: 8, data: ".dynamic" } }, creation_timeout: 500ms, connection_suffix: FileName { value: FixedSizeByteString<255> { len: 11, data: ".connection
              " } }, event_connection_suffix: FileName { value: FixedSizeByteString<255> { len: 6, data: ".event" } } }, node: Node { directory: Path { value:
               FixedSizeByteString<255> { len: 5, data: "nodes" } }, monitor_suffix: FileName { value: FixedSizeByteString<255> { len: 13, data: ".node_monito
              r" } }, static_config_suffix: FileName { value: FixedSizeByteString<255> { len: 8, data: ".details" } }, service_tag_suffix: FileName { value: F
              ixedSizeByteString<255> { len: 12, data: ".service_tag" } }, cleanup_dead_nodes_on_creation: true, cleanup_dead_nodes_on_destruction: true } }, 
              defaults: Defaults { publish_subscribe: PublishSubscribe { max_subscribers: 8, max_publishers: 2, max_nodes: 20, subscriber_max_buffer_size: 2, 
              subscriber_max_borrowed_samples: 2, publisher_max_loaned_samples: 2, publisher_history_size: 1, enable_safe_overflow: true, unable_to_deliver_st
              rategy: Block, subscriber_expired_connection_buffer: 128 }, event: Event { max_listeners: 2, max_notifiers: 16, max_nodes: 36, event_id_max_valu
              e: 32 } } } }, monitoring_token: UnsafeCell { .. }, registered_services: RegisteredServices { data: Mutex { data: {}, poisoned: false, .. } }, _
              details_storage: Storage { name: FileName { value: FixedSizeByteString<255> { len: 4, data: "node" } }, config: Configuration { path: Path { val
              ue: FixedSizeByteString<255> { len: 51, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896" } }, suffix: FileName { value: FixedSizeByte
              String<255> { len: 8, data: ".details" } }, prefix: FileName { value: FixedSizeByteString<255> { len: 5, data: "iox2_" } } }, has_ownership: fal
              se, file: File { path: Some(FilePath { value: FixedSizeByteString<255> { len: 69, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox
              2_node.details" } }), file_descriptor: FileDescriptor { value: 0, is_owned: true }, has_ownership: false }, len: 1114 } }, _phantom_data: Phanto
              mData<iceoryx2::service::ipc::Service> }
              | Failed to open dynamic service information since the dynamic storage could not be opened.
       27 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       28 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       29 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 109, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_
              b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, gr
              oup: None, truncate_size: None, creation_mode: None }
              | opened
       30 [T] "File::remove"
              | "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag"
       31 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       32 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       33 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 109, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_
              b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag" } }, access_mode: ReadWrite, permission: Permission(448), has_ownership: false, owner: Non
              e, group: None, truncate_size: None, creation_mode: Some(CreateExclusive) }
              | created
< Win32 API error > C:\Users\xshad\.cargo\registry\src\index.crates.io-6f17d22bba15001f\iceoryx2-pal-posix-0.4.1\src\windows\mman.rs:174 OpenFileMappingA(FILE_MAP_ALL_ACCESS, false as i32, name as *const u8)
 [ 2 ] The system cannot find the file specified.

       34 [D] SharedMemoryBuilder { name: FileName { value: FixedSizeByteString<255> { len: 94, data: "iox2_305ad9523c6b202364d581359ec3d2c5743e42e7_b658a14a0
              58f0680bd49c7d22c200d81a4c0670c.dynamic" } }, size: 0, is_memory_locked: false, has_ownership: true, permission: Permission(448), creation_mode:
               None, zero_memory: true, access_mode: ReadWrite, enforce_base_address: None }
              | Unable to open shared memory since the shared memory does not exist.
       35 [D] Builder { storage_name: FileName { value: FixedSizeByteString<255> { len: 40, data: "b658a14a058f0680bd49c7d22c200d81a4c0670c" } }, supplementar
              y_size: 0, has_ownership: false, config: Configuration { suffix: FileName { value: FixedSizeByteString<255> { len: 8, data: ".dynamic" } }, pref
              ix: FileName { value: FixedSizeByteString<255> { len: 5, data: "iox2_" } }, path: Path { value: FixedSizeByteString<255> { len: 17, data: "c:\Te
              mp\iceoryx2\" } }, _data: PhantomData<iceoryx2::service::dynamic_config::DynamicConfig> }, timeout: 500ms, initializer: , _phantom_data: Phantom
              Data<iceoryx2::service::dynamic_config::DynamicConfig> }
              | Failed to open  since a shared memory with that name does not exists.
       36 [D] BuilderWithServiceType { service_config: StaticConfig { service_id: ServiceId(RestrictedFileName { value: FixedSizeByteString<64> { len: 40, dat
              a: "b658a14a058f0680bd49c7d22c200d81a4c0670c" } }), service_name: ServiceName { value: "EveryTick" }, attributes: AttributeSet([]), messaging_pa
              ttern: Event(StaticConfig { max_notifiers: 16, max_listeners: 2, max_nodes: 36, event_id_max_value: 32 }) }, shared_node: SharedNode { id: NodeI
              d(UniqueSystemId { value: 2344370886309983727313240896, pid: 17216, creation_time: Time { clock_type: Realtime, seconds: 1728520730, nanoseconds
              : 127088600 } }), details: NodeDetails { executable: FileName { value: FixedSizeByteString<255> { len: 8, data: "host.exe" } }, name: NodeName {
               value: "" }, config: Config { global: Global { root_path_unix: Path { value: FixedSizeByteString<255> { len: 14, data: "/tmp/iceoryx2/" } }, ro
              ot_path_windows: Path { value: FixedSizeByteString<255> { len: 17, data: "c:\Temp\iceoryx2\" } }, prefix: FileName { value: FixedSizeByteString<
              255> { len: 5, data: "iox2_" } }, service: Service { directory: Path { value: FixedSizeByteString<255> { len: 8, data: "services" } }, publisher
              _data_segment_suffix: FileName { value: FixedSizeByteString<255> { len: 15, data: ".publisher_data" } }, static_config_storage_suffix: FileName 
              { value: FixedSizeByteString<255> { len: 8, data: ".service" } }, dynamic_config_storage_suffix: FileName { value: FixedSizeByteString<255> { le
              n: 8, data: ".dynamic" } }, creation_timeout: 500ms, connection_suffix: FileName { value: FixedSizeByteString<255> { len: 11, data: ".connection
              " } }, event_connection_suffix: FileName { value: FixedSizeByteString<255> { len: 6, data: ".event" } } }, node: Node { directory: Path { value:
               FixedSizeByteString<255> { len: 5, data: "nodes" } }, monitor_suffix: FileName { value: FixedSizeByteString<255> { len: 13, data: ".node_monito
              r" } }, static_config_suffix: FileName { value: FixedSizeByteString<255> { len: 8, data: ".details" } }, service_tag_suffix: FileName { value: F
              ixedSizeByteString<255> { len: 12, data: ".service_tag" } }, cleanup_dead_nodes_on_creation: true, cleanup_dead_nodes_on_destruction: true } }, 
              defaults: Defaults { publish_subscribe: PublishSubscribe { max_subscribers: 8, max_publishers: 2, max_nodes: 20, subscriber_max_buffer_size: 2, 
              subscriber_max_borrowed_samples: 2, publisher_max_loaned_samples: 2, publisher_history_size: 1, enable_safe_overflow: true, unable_to_deliver_st
              rategy: Block, subscriber_expired_connection_buffer: 128 }, event: Event { max_listeners: 2, max_notifiers: 16, max_nodes: 36, event_id_max_valu
              e: 32 } } } }, monitoring_token: UnsafeCell { .. }, registered_services: RegisteredServices { data: Mutex { data: {}, poisoned: false, .. } }, _
              details_storage: Storage { name: FileName { value: FixedSizeByteString<255> { len: 4, data: "node" } }, config: Configuration { path: Path { val
              ue: FixedSizeByteString<255> { len: 51, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896" } }, suffix: FileName { value: FixedSizeByte
              String<255> { len: 8, data: ".details" } }, prefix: FileName { value: FixedSizeByteString<255> { len: 5, data: "iox2_" } } }, has_ownership: fal
              se, file: File { path: Some(FilePath { value: FixedSizeByteString<255> { len: 69, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox
              2_node.details" } }), file_descriptor: FileDescriptor { value: 0, is_owned: true }, has_ownership: false }, len: 1114 } }, _phantom_data: Phanto
              mData<iceoryx2::service::ipc::Service> }
              | Failed to open dynamic service information since the dynamic storage could not be opened.
       37 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       38 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       39 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 109, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_
              b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, gr
              oup: None, truncate_size: None, creation_mode: None }
              | opened
       40 [T] "File::remove"
              | "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag"
       41 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       42 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       43 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 109, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_
              b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag" } }, access_mode: ReadWrite, permission: Permission(448), has_ownership: false, owner: Non
              e, group: None, truncate_size: None, creation_mode: Some(CreateExclusive) }
              | created
< Win32 API error > C:\Users\xshad\.cargo\registry\src\index.crates.io-6f17d22bba15001f\iceoryx2-pal-posix-0.4.1\src\windows\mman.rs:174 OpenFileMappingA(FILE_MAP_ALL_ACCESS, false as i32, name as *const u8)
 [ 2 ] The system cannot find the file specified.

       44 [D] SharedMemoryBuilder { name: FileName { value: FixedSizeByteString<255> { len: 94, data: "iox2_305ad9523c6b202364d581359ec3d2c5743e42e7_b658a14a0
              58f0680bd49c7d22c200d81a4c0670c.dynamic" } }, size: 0, is_memory_locked: false, has_ownership: true, permission: Permission(448), creation_mode:
               None, zero_memory: true, access_mode: ReadWrite, enforce_base_address: None }
              | Unable to open shared memory since the shared memory does not exist.
       45 [D] Builder { storage_name: FileName { value: FixedSizeByteString<255> { len: 40, data: "b658a14a058f0680bd49c7d22c200d81a4c0670c" } }, supplementar
              y_size: 0, has_ownership: false, config: Configuration { suffix: FileName { value: FixedSizeByteString<255> { len: 8, data: ".dynamic" } }, pref
              ix: FileName { value: FixedSizeByteString<255> { len: 5, data: "iox2_" } }, path: Path { value: FixedSizeByteString<255> { len: 17, data: "c:\Te
              mp\iceoryx2\" } }, _data: PhantomData<iceoryx2::service::dynamic_config::DynamicConfig> }, timeout: 500ms, initializer: , _phantom_data: Phantom
              Data<iceoryx2::service::dynamic_config::DynamicConfig> }
              | Failed to open  since a shared memory with that name does not exists.
       46 [D] BuilderWithServiceType { service_config: StaticConfig { service_id: ServiceId(RestrictedFileName { value: FixedSizeByteString<64> { len: 40, dat
              a: "b658a14a058f0680bd49c7d22c200d81a4c0670c" } }), service_name: ServiceName { value: "EveryTick" }, attributes: AttributeSet([]), messaging_pa
              ttern: Event(StaticConfig { max_notifiers: 16, max_listeners: 2, max_nodes: 36, event_id_max_value: 32 }) }, shared_node: SharedNode { id: NodeI
              d(UniqueSystemId { value: 2344370886309983727313240896, pid: 17216, creation_time: Time { clock_type: Realtime, seconds: 1728520730, nanoseconds
              : 127088600 } }), details: NodeDetails { executable: FileName { value: FixedSizeByteString<255> { len: 8, data: "host.exe" } }, name: NodeName {
               value: "" }, config: Config { global: Global { root_path_unix: Path { value: FixedSizeByteString<255> { len: 14, data: "/tmp/iceoryx2/" } }, ro
              ot_path_windows: Path { value: FixedSizeByteString<255> { len: 17, data: "c:\Temp\iceoryx2\" } }, prefix: FileName { value: FixedSizeByteString<
              255> { len: 5, data: "iox2_" } }, service: Service { directory: Path { value: FixedSizeByteString<255> { len: 8, data: "services" } }, publisher
              _data_segment_suffix: FileName { value: FixedSizeByteString<255> { len: 15, data: ".publisher_data" } }, static_config_storage_suffix: FileName 
              { value: FixedSizeByteString<255> { len: 8, data: ".service" } }, dynamic_config_storage_suffix: FileName { value: FixedSizeByteString<255> { le
              n: 8, data: ".dynamic" } }, creation_timeout: 500ms, connection_suffix: FileName { value: FixedSizeByteString<255> { len: 11, data: ".connection
              " } }, event_connection_suffix: FileName { value: FixedSizeByteString<255> { len: 6, data: ".event" } } }, node: Node { directory: Path { value:
               FixedSizeByteString<255> { len: 5, data: "nodes" } }, monitor_suffix: FileName { value: FixedSizeByteString<255> { len: 13, data: ".node_monito
              r" } }, static_config_suffix: FileName { value: FixedSizeByteString<255> { len: 8, data: ".details" } }, service_tag_suffix: FileName { value: F
              ixedSizeByteString<255> { len: 12, data: ".service_tag" } }, cleanup_dead_nodes_on_creation: true, cleanup_dead_nodes_on_destruction: true } }, 
              defaults: Defaults { publish_subscribe: PublishSubscribe { max_subscribers: 8, max_publishers: 2, max_nodes: 20, subscriber_max_buffer_size: 2, 
              subscriber_max_borrowed_samples: 2, publisher_max_loaned_samples: 2, publisher_history_size: 1, enable_safe_overflow: true, unable_to_deliver_st
              rategy: Block, subscriber_expired_connection_buffer: 128 }, event: Event { max_listeners: 2, max_notifiers: 16, max_nodes: 36, event_id_max_valu
              e: 32 } } } }, monitoring_token: UnsafeCell { .. }, registered_services: RegisteredServices { data: Mutex { data: {}, poisoned: false, .. } }, _
              details_storage: Storage { name: FileName { value: FixedSizeByteString<255> { len: 4, data: "node" } }, config: Configuration { path: Path { val
              ue: FixedSizeByteString<255> { len: 51, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896" } }, suffix: FileName { value: FixedSizeByte
              String<255> { len: 8, data: ".details" } }, prefix: FileName { value: FixedSizeByteString<255> { len: 5, data: "iox2_" } } }, has_ownership: fal
              se, file: File { path: Some(FilePath { value: FixedSizeByteString<255> { len: 69, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox
              2_node.details" } }), file_descriptor: FileDescriptor { value: 0, is_owned: true }, has_ownership: false }, len: 1114 } }, _phantom_data: Phanto
              mData<iceoryx2::service::ipc::Service> }
              | Failed to open dynamic service information since the dynamic storage could not be opened.
       47 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       48 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       49 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 109, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_
              b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, gr
              oup: None, truncate_size: None, creation_mode: None }
              | opened
       50 [T] "File::remove"
              | "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag"
       51 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       52 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       53 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 109, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_
              b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag" } }, access_mode: ReadWrite, permission: Permission(448), has_ownership: false, owner: Non
              e, group: None, truncate_size: None, creation_mode: Some(CreateExclusive) }
              | created
< Win32 API error > C:\Users\xshad\.cargo\registry\src\index.crates.io-6f17d22bba15001f\iceoryx2-pal-posix-0.4.1\src\windows\mman.rs:174 OpenFileMappingA(FILE_MAP_ALL_ACCESS, false as i32, name as *const u8)
 [ 2 ] The system cannot find the file specified.

       54 [D] SharedMemoryBuilder { name: FileName { value: FixedSizeByteString<255> { len: 94, data: "iox2_305ad9523c6b202364d581359ec3d2c5743e42e7_b658a14a0
              58f0680bd49c7d22c200d81a4c0670c.dynamic" } }, size: 0, is_memory_locked: false, has_ownership: true, permission: Permission(448), creation_mode:
               None, zero_memory: true, access_mode: ReadWrite, enforce_base_address: None }
              | Unable to open shared memory since the shared memory does not exist.
       55 [D] Builder { storage_name: FileName { value: FixedSizeByteString<255> { len: 40, data: "b658a14a058f0680bd49c7d22c200d81a4c0670c" } }, supplementar
              y_size: 0, has_ownership: false, config: Configuration { suffix: FileName { value: FixedSizeByteString<255> { len: 8, data: ".dynamic" } }, pref
              ix: FileName { value: FixedSizeByteString<255> { len: 5, data: "iox2_" } }, path: Path { value: FixedSizeByteString<255> { len: 17, data: "c:\Te
              mp\iceoryx2\" } }, _data: PhantomData<iceoryx2::service::dynamic_config::DynamicConfig> }, timeout: 500ms, initializer: , _phantom_data: Phantom
              Data<iceoryx2::service::dynamic_config::DynamicConfig> }
              | Failed to open  since a shared memory with that name does not exists.
       56 [D] BuilderWithServiceType { service_config: StaticConfig { service_id: ServiceId(RestrictedFileName { value: FixedSizeByteString<64> { len: 40, dat
              a: "b658a14a058f0680bd49c7d22c200d81a4c0670c" } }), service_name: ServiceName { value: "EveryTick" }, attributes: AttributeSet([]), messaging_pa
              ttern: Event(StaticConfig { max_notifiers: 16, max_listeners: 2, max_nodes: 36, event_id_max_value: 32 }) }, shared_node: SharedNode { id: NodeI
              d(UniqueSystemId { value: 2344370886309983727313240896, pid: 17216, creation_time: Time { clock_type: Realtime, seconds: 1728520730, nanoseconds
              : 127088600 } }), details: NodeDetails { executable: FileName { value: FixedSizeByteString<255> { len: 8, data: "host.exe" } }, name: NodeName {
               value: "" }, config: Config { global: Global { root_path_unix: Path { value: FixedSizeByteString<255> { len: 14, data: "/tmp/iceoryx2/" } }, ro
              ot_path_windows: Path { value: FixedSizeByteString<255> { len: 17, data: "c:\Temp\iceoryx2\" } }, prefix: FileName { value: FixedSizeByteString<
              255> { len: 5, data: "iox2_" } }, service: Service { directory: Path { value: FixedSizeByteString<255> { len: 8, data: "services" } }, publisher
              _data_segment_suffix: FileName { value: FixedSizeByteString<255> { len: 15, data: ".publisher_data" } }, static_config_storage_suffix: FileName 
              { value: FixedSizeByteString<255> { len: 8, data: ".service" } }, dynamic_config_storage_suffix: FileName { value: FixedSizeByteString<255> { le
              n: 8, data: ".dynamic" } }, creation_timeout: 500ms, connection_suffix: FileName { value: FixedSizeByteString<255> { len: 11, data: ".connection
              " } }, event_connection_suffix: FileName { value: FixedSizeByteString<255> { len: 6, data: ".event" } } }, node: Node { directory: Path { value:
               FixedSizeByteString<255> { len: 5, data: "nodes" } }, monitor_suffix: FileName { value: FixedSizeByteString<255> { len: 13, data: ".node_monito
              r" } }, static_config_suffix: FileName { value: FixedSizeByteString<255> { len: 8, data: ".details" } }, service_tag_suffix: FileName { value: F
              ixedSizeByteString<255> { len: 12, data: ".service_tag" } }, cleanup_dead_nodes_on_creation: true, cleanup_dead_nodes_on_destruction: true } }, 
              defaults: Defaults { publish_subscribe: PublishSubscribe { max_subscribers: 8, max_publishers: 2, max_nodes: 20, subscriber_max_buffer_size: 2, 
              subscriber_max_borrowed_samples: 2, publisher_max_loaned_samples: 2, publisher_history_size: 1, enable_safe_overflow: true, unable_to_deliver_st
              rategy: Block, subscriber_expired_connection_buffer: 128 }, event: Event { max_listeners: 2, max_notifiers: 16, max_nodes: 36, event_id_max_valu
              e: 32 } } } }, monitoring_token: UnsafeCell { .. }, registered_services: RegisteredServices { data: Mutex { data: {}, poisoned: false, .. } }, _
              details_storage: Storage { name: FileName { value: FixedSizeByteString<255> { len: 4, data: "node" } }, config: Configuration { path: Path { val
              ue: FixedSizeByteString<255> { len: 51, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896" } }, suffix: FileName { value: FixedSizeByte
              String<255> { len: 8, data: ".details" } }, prefix: FileName { value: FixedSizeByteString<255> { len: 5, data: "iox2_" } } }, has_ownership: fal
              se, file: File { path: Some(FilePath { value: FixedSizeByteString<255> { len: 69, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox
              2_node.details" } }), file_descriptor: FileDescriptor { value: 0, is_owned: true }, has_ownership: false }, len: 1114 } }, _phantom_data: Phanto
              mData<iceoryx2::service::ipc::Service> }
              | Failed to open dynamic service information since the dynamic storage could not be opened.
       57 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       58 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       59 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 109, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_
              b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, gr
              oup: None, truncate_size: None, creation_mode: None }
              | opened
       60 [T] "File::remove"
              | "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag"
       61 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       62 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       63 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 109, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_
              b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag" } }, access_mode: ReadWrite, permission: Permission(448), has_ownership: false, owner: Non
              e, group: None, truncate_size: None, creation_mode: Some(CreateExclusive) }
              | created
< Win32 API error > C:\Users\xshad\.cargo\registry\src\index.crates.io-6f17d22bba15001f\iceoryx2-pal-posix-0.4.1\src\windows\mman.rs:174 OpenFileMappingA(FILE_MAP_ALL_ACCESS, false as i32, name as *const u8)
 [ 2 ] The system cannot find the file specified.

       64 [D] SharedMemoryBuilder { name: FileName { value: FixedSizeByteString<255> { len: 94, data: "iox2_305ad9523c6b202364d581359ec3d2c5743e42e7_b658a14a0
              58f0680bd49c7d22c200d81a4c0670c.dynamic" } }, size: 0, is_memory_locked: false, has_ownership: true, permission: Permission(448), creation_mode:
               None, zero_memory: true, access_mode: ReadWrite, enforce_base_address: None }
              | Unable to open shared memory since the shared memory does not exist.
       65 [D] Builder { storage_name: FileName { value: FixedSizeByteString<255> { len: 40, data: "b658a14a058f0680bd49c7d22c200d81a4c0670c" } }, supplementar
              y_size: 0, has_ownership: false, config: Configuration { suffix: FileName { value: FixedSizeByteString<255> { len: 8, data: ".dynamic" } }, pref
              ix: FileName { value: FixedSizeByteString<255> { len: 5, data: "iox2_" } }, path: Path { value: FixedSizeByteString<255> { len: 17, data: "c:\Te
              mp\iceoryx2\" } }, _data: PhantomData<iceoryx2::service::dynamic_config::DynamicConfig> }, timeout: 500ms, initializer: , _phantom_data: Phantom
              Data<iceoryx2::service::dynamic_config::DynamicConfig> }
              | Failed to open  since a shared memory with that name does not exists.
       66 [D] BuilderWithServiceType { service_config: StaticConfig { service_id: ServiceId(RestrictedFileName { value: FixedSizeByteString<64> { len: 40, dat
              a: "b658a14a058f0680bd49c7d22c200d81a4c0670c" } }), service_name: ServiceName { value: "EveryTick" }, attributes: AttributeSet([]), messaging_pa
              ttern: Event(StaticConfig { max_notifiers: 16, max_listeners: 2, max_nodes: 36, event_id_max_value: 32 }) }, shared_node: SharedNode { id: NodeI
              d(UniqueSystemId { value: 2344370886309983727313240896, pid: 17216, creation_time: Time { clock_type: Realtime, seconds: 1728520730, nanoseconds
              : 127088600 } }), details: NodeDetails { executable: FileName { value: FixedSizeByteString<255> { len: 8, data: "host.exe" } }, name: NodeName {
               value: "" }, config: Config { global: Global { root_path_unix: Path { value: FixedSizeByteString<255> { len: 14, data: "/tmp/iceoryx2/" } }, ro
              ot_path_windows: Path { value: FixedSizeByteString<255> { len: 17, data: "c:\Temp\iceoryx2\" } }, prefix: FileName { value: FixedSizeByteString<
              255> { len: 5, data: "iox2_" } }, service: Service { directory: Path { value: FixedSizeByteString<255> { len: 8, data: "services" } }, publisher
              _data_segment_suffix: FileName { value: FixedSizeByteString<255> { len: 15, data: ".publisher_data" } }, static_config_storage_suffix: FileName 
              { value: FixedSizeByteString<255> { len: 8, data: ".service" } }, dynamic_config_storage_suffix: FileName { value: FixedSizeByteString<255> { le
              n: 8, data: ".dynamic" } }, creation_timeout: 500ms, connection_suffix: FileName { value: FixedSizeByteString<255> { len: 11, data: ".connection
              " } }, event_connection_suffix: FileName { value: FixedSizeByteString<255> { len: 6, data: ".event" } } }, node: Node { directory: Path { value:
               FixedSizeByteString<255> { len: 5, data: "nodes" } }, monitor_suffix: FileName { value: FixedSizeByteString<255> { len: 13, data: ".node_monito
              r" } }, static_config_suffix: FileName { value: FixedSizeByteString<255> { len: 8, data: ".details" } }, service_tag_suffix: FileName { value: F
              ixedSizeByteString<255> { len: 12, data: ".service_tag" } }, cleanup_dead_nodes_on_creation: true, cleanup_dead_nodes_on_destruction: true } }, 
              defaults: Defaults { publish_subscribe: PublishSubscribe { max_subscribers: 8, max_publishers: 2, max_nodes: 20, subscriber_max_buffer_size: 2, 
              subscriber_max_borrowed_samples: 2, publisher_max_loaned_samples: 2, publisher_history_size: 1, enable_safe_overflow: true, unable_to_deliver_st
              rategy: Block, subscriber_expired_connection_buffer: 128 }, event: Event { max_listeners: 2, max_notifiers: 16, max_nodes: 36, event_id_max_valu
              e: 32 } } } }, monitoring_token: UnsafeCell { .. }, registered_services: RegisteredServices { data: Mutex { data: {}, poisoned: false, .. } }, _
              details_storage: Storage { name: FileName { value: FixedSizeByteString<255> { len: 4, data: "node" } }, config: Configuration { path: Path { val
              ue: FixedSizeByteString<255> { len: 51, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896" } }, suffix: FileName { value: FixedSizeByte
              String<255> { len: 8, data: ".details" } }, prefix: FileName { value: FixedSizeByteString<255> { len: 5, data: "iox2_" } } }, has_ownership: fal
              se, file: File { path: Some(FilePath { value: FixedSizeByteString<255> { len: 69, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox
              2_node.details" } }), file_descriptor: FileDescriptor { value: 0, is_owned: true }, has_ownership: false }, len: 1114 } }, _phantom_data: Phanto
              mData<iceoryx2::service::ipc::Service> }
              | Failed to open dynamic service information since the dynamic storage could not be opened.
       67 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       68 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 79, data: "c:\Temp\iceoryx2\services\iox2_b658a14a058f0680bd49c7d22c2
              00d81a4c0670c.service" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None,
               creation_mode: None }
              | opened
       69 [D] Builder { base: BuilderWithServiceType { service_config: StaticConfig { service_id: ServiceId(RestrictedFileName { value: FixedSizeByteString<64
              > { len: 40, data: "b658a14a058f0680bd49c7d22c200d81a4c0670c" } }), service_name: ServiceName { value: "EveryTick" }, attributes: AttributeSet([
              ]), messaging_pattern: Event(StaticConfig { max_notifiers: 16, max_listeners: 2, max_nodes: 36, event_id_max_value: 32 }) }, shared_node: Shared
              Node { id: NodeId(UniqueSystemId { value: 2344370886309983727313240896, pid: 17216, creation_time: Time { clock_type: Realtime, seconds: 1728520
              730, nanoseconds: 127088600 } }), details: NodeDetails { executable: FileName { value: FixedSizeByteString<255> { len: 8, data: "host.exe" } }, 
              name: NodeName { value: "" }, config: Config { global: Global { root_path_unix: Path { value: FixedSizeByteString<255> { len: 14, data: "/tmp/ic
              eoryx2/" } }, root_path_windows: Path { value: FixedSizeByteString<255> { len: 17, data: "c:\Temp\iceoryx2\" } }, prefix: FileName { value: Fixe
              dSizeByteString<255> { len: 5, data: "iox2_" } }, service: Service { directory: Path { value: FixedSizeByteString<255> { len: 8, data: "services
              " } }, publisher_data_segment_suffix: FileName { value: FixedSizeByteString<255> { len: 15, data: ".publisher_data" } }, static_config_storage_s
              uffix: FileName { value: FixedSizeByteString<255> { len: 8, data: ".service" } }, dynamic_config_storage_suffix: FileName { value: FixedSizeByte
              String<255> { len: 8, data: ".dynamic" } }, creation_timeout: 500ms, connection_suffix: FileName { value: FixedSizeByteString<255> { len: 11, da
              ta: ".connection" } }, event_connection_suffix: FileName { value: FixedSizeByteString<255> { len: 6, data: ".event" } } }, node: Node { director
              y: Path { value: FixedSizeByteString<255> { len: 5, data: "nodes" } }, monitor_suffix: FileName { value: FixedSizeByteString<255> { len: 13, dat
              a: ".node_monitor" } }, static_config_suffix: FileName { value: FixedSizeByteString<255> { len: 8, data: ".details" } }, service_tag_suffix: Fil
              eName { value: FixedSizeByteString<255> { len: 12, data: ".service_tag" } }, cleanup_dead_nodes_on_creation: true, cleanup_dead_nodes_on_destruc
              tion: true } }, defaults: Defaults { publish_subscribe: PublishSubscribe { max_subscribers: 8, max_publishers: 2, max_nodes: 20, subscriber_max_
              buffer_size: 2, subscriber_max_borrowed_samples: 2, publisher_max_loaned_samples: 2, publisher_history_size: 1, enable_safe_overflow: true, unab
              le_to_deliver_strategy: Block, subscriber_expired_connection_buffer: 128 }, event: Event { max_listeners: 2, max_notifiers: 16, max_nodes: 36, e
              vent_id_max_value: 32 } } } }, monitoring_token: UnsafeCell { .. }, registered_services: RegisteredServices { data: Mutex { data: {}, poisoned: 
              false, .. } }, _details_storage: Storage { name: FileName { value: FixedSizeByteString<255> { len: 4, data: "node" } }, config: Configuration { 
              path: Path { value: FixedSizeByteString<255> { len: 51, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896" } }, suffix: FileName { valu
              e: FixedSizeByteString<255> { len: 8, data: ".details" } }, prefix: FileName { value: FixedSizeByteString<255> { len: 5, data: "iox2_" } } }, ha
              s_ownership: false, file: File { path: Some(FilePath { value: FixedSizeByteString<255> { len: 69, data: "c:\Temp\iceoryx2\nodes\2344370886309983
              727313240896\iox2_node.details" } }), file_descriptor: FileDescriptor { value: 0, is_owned: true }, has_ownership: false }, len: 1114 } }, _phan
              tom_data: PhantomData<iceoryx2::service::ipc::Service> }, verify_max_notifiers: false, verify_max_listeners: false, verify_max_nodes: false, ver
              ify_event_id_max_value: false }
              | Unable to open event service since the dynamic service information could not be opened (DynamicStorageOpenError(DoesNotExist)). This could ind
              | icate a corrupted system or a misconfigured system where services are created/removed with a high frequency.
       70 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 109, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_
              b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, gr
              oup: None, truncate_size: None, creation_mode: None }
              | opened
       71 [T] "File::remove"
              | "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_b658a14a058f0680bd49c7d22c200d81a4c0670c.service_tag"
       72 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 69, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_n
              ode.details" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None, creation_
              mode: None }
              | opened
       73 [T] FileBuilder { file_path: FilePath { value: FixedSizeByteString<255> { len: 69, data: "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_n
              ode.details" } }, access_mode: Read, permission: Permission(448), has_ownership: false, owner: None, group: None, truncate_size: None, creation_
              mode: None }
              | opened
       74 [T] "File::remove"
              | "c:\Temp\iceoryx2\nodes\2344370886309983727313240896\iox2_node.details"
       75 [T] "Directory::remove"
              | removed "c:\Temp\iceoryx2\nodes\2344370886309983727313240896"
       76 [T] "File::remove"
              | "c:\Temp\iceoryx2\nodes\iox2_2344370886309983727313240896.node_monitor"
       77 [T] "File::remove"
              | "c:\Temp\iceoryx2\nodes\iox2_2344370886309983727313240896.node_monitor_owner_lock"
Error: EventOpenError(ServiceInCorruptedState)

Observed result or behaviour:
event notifier:

fn main() -> Result<(), Box<dyn std::error::Error>> {
    use core::time::Duration;
    use iceoryx2::prelude::*;

    set_log_level(LogLevel::Trace);

    const CYCLE_TIME: Duration = Duration::from_millis(10);

    let node = NodeBuilder::new().create::<ipc::Service>()?;

    let event = node
        .service_builder(&"EveryTick".try_into()?)
        .event()
        .open_or_create()?;

    let notifier = event.notifier_builder().create()?;

    while let NodeEvent::Tick = node.wait(CYCLE_TIME) {
        notifier.notify()?;
    }

    Ok(())
}

event listener:

fn main() -> Result<(), Box<dyn std::error::Error>> {
    use iceoryx2::prelude::*;

    let node = NodeBuilder::new().create::<ipc::Service>()?;

    let event = node
        .service_builder(&"EveryTick".try_into()?)
        .event()
        .open_or_create()?;

    let event_listener = event.listener_builder().create()?;

    while let Some(id) = event_listener.blocking_wait_one()? {
        println!("woke up {id:?}");
    }

    Ok(())
}

Expected result or behaviour:
No error or at least more readable one?

Conditions where it occurred / Performed steps:
For the first time notifier and listener run correctly, the second time win32 errors occur (ctrl+c, cargo run again)

@xxshady xxshady added the bug Something isn't working label Oct 10, 2024
@elfenpiff
Copy link
Contributor

@xxshady I can confirm the bug, also partially on Linux. It is actually two separate issues.

The cause is event_listener.blocking_wait_one() in the listener.rs. When you press CTRL+c you send a SIGINT/SIGTERM signal and cause the application to abnormally terminate since no signal handler was registered and then also the resources of the process are not cleaned up.

If you adjust the code to this, the termination signal should be handled cleanly.

// you need to add iceoryx2-bb-posix as dependency into your Cargo.toml
use iceoryx2_bb_posix::signal::*;

// ...

while !SignalHandler::termination_requested() {
    match event_listener.blocking_wait_one() {
        Ok(Some(id)) => println!("woke up {id:?}"),
        Ok(None) => (),
        Err(_) => break,
    }
}

So whenever you have a blocking call you need to register some kind of signal handler so that the application can cleanly terminate when CTRL+c is pressed.

Another issue is, that we have introduced with v0.4. a stale resource cleanup when a node crashes or does not cleanup the resources. Then another node takes over and cleans the resources.
On Linux it is working and you see something like:

        6 [W] "Node::<iceoryx2::service::ipc::Service>::cleanup_dead_nodes()"
              | Dead node (NodeId(UniqueSystemId { value: 1667667095615766886193595845
              | , pid: 34245, creation_time: Time { clock_type: Realtime, seconds: 172
              | 8553806, nanoseconds: 90404414 } })) detected

In your case this should happen as well but it seems there is a problem on Windows.

@gyk
Copy link

gyk commented Jan 9, 2025

@elfenpiff On Windows, when a node is started after an old iceoryx2 process was abruptly terminated, Node::list does not find any nodes except the current one, could it be the reason cleanup_dead_nodes does not work?

In the case that a node gets stuck due to this OpenFileMapping error, what can we do to clean up stale resources (other than manually removing files in C:\Temp\)? Can we fall back to CreateFileMappingA in this branch, supposing all the files for static storage are present on disk?

@elfenpiff
Copy link
Contributor

@gyk Sadly, no, since we do not know what size they have or if they are currently used by something else. But I will look into this issue and can maybe provide a bug fix in the next few days.

@elfenpiff elfenpiff self-assigned this Jan 9, 2025
@elfenpiff
Copy link
Contributor

elfenpiff commented Jan 13, 2025

@gyk @xxshady I unraveled the issue with Windows. Shared Memory is not persistent in Windows. Whenever the last process that holds a shared memory handle terminates or crashes Windows removes the memory-mapped file from the file system. When a new process starts, it detects that there seems to exist the service but the dynamic segment of the service is missing - since the last process holding it crashed. So, it is correctly identified as corrupted, and the cleanup aborts here.
I will adjust the code so that corrupted services are also removed, which should solve the Windows issue.

elfenpiff added a commit to elfenpiff/iceoryx2 that referenced this issue Jan 13, 2025
elfenpiff added a commit to elfenpiff/iceoryx2 that referenced this issue Jan 13, 2025
elfenpiff added a commit to elfenpiff/iceoryx2 that referenced this issue Jan 13, 2025
elfenpiff added a commit to elfenpiff/iceoryx2 that referenced this issue Jan 13, 2025
elfenpiff added a commit to elfenpiff/iceoryx2 that referenced this issue Jan 13, 2025
elfenpiff added a commit to elfenpiff/iceoryx2 that referenced this issue Jan 13, 2025
elfenpiff added a commit to elfenpiff/iceoryx2 that referenced this issue Jan 13, 2025
elfenpiff added a commit to elfenpiff/iceoryx2 that referenced this issue Jan 13, 2025
elfenpiff added a commit that referenced this issue Jan 13, 2025
@elfenpiff
Copy link
Contributor

@gyk @xxshady The issue is fixed on the current main branch. Could you please verify if the bug is now solved for you?

@gyk
Copy link

gyk commented Jan 14, 2025

@elfenpiff Testing with the publish_subscribe_dyn_subscriber example, it now reports different error messages, but still raises a PublishSubscribeCreateError(ServiceInCorruptedState):

> cargo run --example publish_subscribe_dyn_subscriber
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.92s
     Running `target\debug\examples\publish_subscribe_dyn_subscriber.exe`
< Win32 API error > iceoryx2-pal\posix\src\windows\mman.rs:230 CreateFileA(shm_file_path(name, SHM_STATE_SUFFIX).as_ptr(), GENERIC_WRITE |
GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
core::ptr::null::<SECURITY_ATTRIBUTES>(), CREATE_NEW, FILE_ATTRIBUTE_NORMAL,
0,)
 [ 80 ] The file exists.

Error: PublishSubscribeCreateError(ServiceInCorruptedState)
error: process didn't exit successfully: `target\debug\examples\publish_subscribe_dyn_subscriber.exe` (exit code: 1)

In the Err branch, I can remove the stale files, but cleanup_dead_nodes does not work.

Is it expected behavior?

@elfenpiff
Copy link
Contributor

@gyk No, it is not - thanks for the finding! It is a specialty in Windows, where we require shared memory state files. It slipped since process crashes are hard to test - especially on Windows.

But it shouldn't be hard to fix - I will create another pull request and ping you when this is done.

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

3 participants