eclipse-iceoryx / iceoryx

Eclipse iceoryx™ - true zero-copy inter-process-communication
https://iceoryx.io
Apache License 2.0
1.68k stars 393 forks source link

IPC channel still there, doing an unlink of instanceName #2211

Closed guojun08512 closed 8 months ago

guojun08512 commented 8 months ago

Required information

Operating system: Ubuntu 20.04 LTS

Compiler version: GCC 8.4

Eclipse iceoryx version: v2.0.2

Observed result or behaviour: how to fix this error

Expected result or behaviour: 2024-03-01 10:40:23.817 [Warning]: IPC channel still there, doing an unlink of smq-server-rtu-slave

Conditions where it occurred / Performed steps: Frequent restart service

guojun08512 commented 8 months ago

rodui log: 2024-03-01 10:40:25.356 [Warning]: Application smq-server-rtu-slave not responding (last response 1538 milliseconds ago) --> removing it 2024-03-01 10:48:14.377 [Warning]: Application smq-request-response-client-listener not responding (last response 1539 milliseconds ago) --> removing it

2024-03-01 10:48:32.047 [Warning]: Application smq-request-response-client-listener not responding (last response 1503 milliseconds ago) --> removing it 2024-03-01 10:48:48.299 [Warning]: Application smq-server-rtu-slave not responding (last response 1593 milliseconds ago) --> removing it 2024-03-01 10:48:53.303 [Warning]: Application smq-request-response-client-listener not responding (last response 1507 milliseconds ago) --> removing it 2024-03-01 10:49:01.809 [Warning]: Application smq-server-rtu-slave not responding (last response 1599 milliseconds ago) --> removing it 2024-03-01 10:49:05.512 [Warning]: Application smq-request-response-client-listener not responding (last response 1513 milliseconds ago) --> removing it

2024-03-01 10:49:21.223 [Warning]: Application smq-server-rtu-slave not responding (last response 1549 milliseconds ago) --> removing it

elBoberido commented 8 months ago

The IPC channel still there, doing an unlink of smq-server-rtu-slave comes the the applications are not shut down gracefully, e.g. with kill -9. In this case they cannot clean up their resources so it happens on restart.

The RouDi log also just states that the application was killed and not shut down properly.

It might also happen when no signal handler is used. You can have a look at the examples on how to do it properly.

guojun08512 commented 8 months ago

thanks,I found the problem。 If I call right away : iox::runtime::PoshRuntime::initRuntime(runtime_name), Resources are not allocated。I invoke the request-response mode and create the service. the service will be panic.

elBoberido commented 8 months ago

I'm not sure what you mean. Can you describe your problem in more detail?

elBoberido commented 8 months ago

@guojun08512 the original issue was cleared. If there are more problems please create a new issue. Closing this issue