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

iox-cpp-publisher-helloworld print error code 2 #1783

Closed
cloudjacky opened this issue Nov 9, 2022 · 6 comments
Closed

iox-cpp-publisher-helloworld print error code 2 #1783

cloudjacky opened this issue Nov 9, 2022 · 6 comments

Comments

@cloudjacky
Copy link

Required information

Operating system:
Ubuntu 18.04 LTS

Compiler version:
gcc version 7.5.0

Observed result or behaviour:
run program iox-cpp-publisher-helloworld in example icehello,
and print error information, as follows
"2022-11-09 13:33:28.445 [Error]: unable to create ipc channel with error code: 2
2022-11-09 13:33:28.198 [Warn ]: IPC channel still there, doing an unlink of iox-cpp-publisher-helloworld
2022-11-09 13:33:28.487 [Error]: unable to create ipc channel with error code: 2
2022-11-09 13:33:28.173 [Error]: unable to create ipc channel with error code: 2
2022-11-09 13:33:28.223 [Warn ]: RouDi not found - waiting ...
2022-11-09 13:33:28.713 [Error]: unable to create ipc channel with error code: 2
2022-11-09 13:33:28.420 [Error]: unable to create ipc channel with error code: 2
2022-11-09 13:33:29.703 [Error]: unable to create ipc channel with error code: 2
2022-11-09 13:33:29.219 [Error]: unable to create ipc channel with error code: 2
2022-11-09 13:33:29.469 [Error]: unable to create ipc channel with error code: 2
2022-11-09 13:33:29.461 [Error]: unable to create ipc channel with error code: 2
2022-11-09 13:33:29.961 [Error]: unable to create ipc channel with error code: 2
2022-11-09 13:33:29.905 [Error]: unable to create ipc channel with error code: 2
2022-11-09 13:33:29.599 [Error]: unable to create ipc channel with error code: 2
2022-11-09 13:33:29.819 [Error]: unable to create ipc channel with error code: 2
"

Expected result or behaviour:
The program can run normally,
and what does error code 2 means?
in the source code means POSH__RUNTIME_FACTORY_IS_NOT_SET?

Conditions where it occurred / Performed steps:
run program with cmd line:
./iox-cpp-publisher-helloworld

@cloudjacky
Copy link
Author

run ./iox-roudi

@elfenpiff
Copy link
Contributor

Hi @cloudjacky . It seems you solved the issue yourself?

Could you please tell us what the problem was - maybe the documentation of the hello world example was not specific enough or confusing in some parts. If this was the reason that you encountered this issue I would like to adjust the example so that others are not struggling with it as you did.

@cloudjacky
Copy link
Author

@elfenpiff
yes,problem had solved
After reading the code, both publisher example and subscriber example communicate as the client of roudi deamon,
I didn't look at the document. I don't know if there is any introduction in the document

@stm32f303ret6
Copy link

how do you solve that problem?

@elBoberido
Copy link
Member

@stm32f303ret6 I guess by starting iox-roudi. The important message is lost it the flood of error messages which should not be printed. This is the corresponding issue #1574 ... just in case you want to get your hands dirty ;)

@stm32f303ret6
Copy link

yes, now it works, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants