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

[QUESTION]: Facing this error while running master code on my device #677

Closed
shiv50084 opened this issue Jul 30, 2020 · 2 comments
Closed
Labels
question Further information is requested

Comments

@shiv50084
Copy link

shiv50084 commented Jul 30, 2020

I am using latest commit 0550dba from master branch.

2020-07-30 08:24:43 ERROR createPeerConnection(): operation returned status code: 0x40000002
2020-07-30 08:24:43 ERROR iceAgentShutdown(): operation returned status code: 0x00000001
2020-07-30 08:24:43 ERROR freePeerConnection(): operation returned status code: 0x00000001
2020-07-30 08:24:43 ERROR closePeerConnection(): operation returned status code: 0x00000001
2020-07-30 08:24:43 ERROR freeSampleStreamingSession(): operation returned status code: 0x00000001
2020-07-30 08:24:43 ERROR receiveLwsMessageWrapper(): operation returned status code: 0x40000002
2020-07-30 08:24:43 ERROR createPeerConnection(): operation returned status code: 0x40000002
2020-07-30 08:24:43 ERROR iceAgentShutdown(): operation returned status code: 0x00000001
2020-07-30 08:24:43 ERROR freePeerConnection(): operation returned status code: 0x00000001
2020-07-30 13:54:43 ERROR closePeerConnection(): operation returned status code: 0x00000001
2020-07-30 08:24:43 ERROR freeSampleStreamingSession(): operation returned status code: 0x00000001
2020-07-30 08:24:43 ERROR receiveLwsMessageWrapper(): operation returned status code: 0x40000002
2020-07-30 08:24:43 ERROR createPeerConnection(): operation returned status code: 0x40000002
2020-07-30 08:24:43 ERROR iceAgentShutdown(): operation returned status code: 0x00000001
2020-07-30 08:24:43 ERROR freePeerConnection(): operation returned status code: 0x00000001
2020-07-30 08:24:43 ERROR closePeerConnection(): operation returned status code: 0x00000001
2020-07-30 08:24:43 ERROR freeSampleStreamingSession(): operation returned status code: 0x00000001
2020-07-30 08:24:43 ERROR receiveLwsMessageWrapper(): operation returned status code: 0x40000002
2020-07-30 08:24:43 ERROR createPeerConnection(): operation returned status code: 0x40000002
2020-07-30 08:24:43 ERROR iceAgentShutdown(): operation returned status code: 0x00000001
2020-07-30 08:24:43 ERROR freePeerConnection(): operation returned status code: 0x00000001
2020-07-30 08:24:43 ERROR closePeerConnection(): operation returned status code: 0x00000001
2020-07-30 08:24:43 ERROR freeSampleStreamingSession(): operation returned status code: 0x00000001
2020-07-30 08:24:43 ERROR receiveLwsMessageWrapper(): operation returned status code: 0x40000002
2020-07-30 08:24:44 ERROR createPeerConnection(): operation returned status code: 0x40000002
2020-07-30 08:24:44 ERROR iceAgentShutdown(): operation returned status code: 0x00000001
2020-07-30 08:24:44 ERROR freePeerConnection(): operation returned status code: 0x00000001
2020-07-30 08:24:44 ERROR closePeerConnection(): operation returned status code: 0x00000001
2020-07-30 08:24:44 ERROR freeSampleStreamingSession(): operation returned status code: 0x00000001
2020-07-30 08:24:44 ERROR receiveLwsMessageWrapper(): operation returned status code: 0x40000002
2020-07-30 08:24:44 ERROR createPeerConnection(): operation returned status code: 0x40000002
2020-07-30 08:24:44 ERROR iceAgentShutdown(): operation returned status code: 0x00000001
2020-07-30 08:24:44 ERROR freePeerConnection(): operation returned status code: 0x00000001
2020-07-30 08:24:44 ERROR closePeerConnection(): operation returned status code: 0x00000001
2020-07-30 08:24:44 ERROR freeSampleStreamingSession(): operation returned status code: 0x00000001
2020-07-30 08:24:44 ERROR receiveLwsMessageWrapper(): operation returned status code: 0x40000002

** Any design considerations/constraints **
Explain in detail how you would like to integrate our SDK into your solution

** If you would not like to open an issue to discuss your solution in open-platform, please email your question to [email protected] **

@shiv50084 shiv50084 added the question Further information is requested label Jul 30, 2020
@shiv50084
Copy link
Author

shiv50084 commented Jul 30, 2020

If i am setting log_level

export AWS_KVS_LOG_LEVEL=LOG_LEVEL_VERBOSE

at this time this error occurs and not able to stream.
Can you please check same thing happen with linux system also.

I tried to set log level bcz sometimes master not able to connect with viewer sometimes from linux system as well as from embedded device .For make it working i need to restart master again.

@shiv50084 shiv50084 reopened this Jul 30, 2020
@MushMal
Copy link
Contributor

MushMal commented Jul 30, 2020

There are two questions:

  1. Why the logs are not set
  2. The root cause of the error

Exporting the variable should have set it to verbose. I am not certain why it didn't pick up. You could set the logging level directly in your application as well - take a look at how it's done in the sample. Perhaps, the log level gets overwritten by the signaling client.

For #2 you are getting 0x40000002 trying to create a peer which then causes 0x00000001 (NULL param). 0x40000002 is defined as STATUS_INVALID_BASE in PIC utils and it is generated when the underlying low-level string to integer conversion routine fails.

I think what you are trying to do is you are setting the log level to a string literal "LOG_LEVEL_VERBOSE" and the sample fails to parse as a number. You can either enhance the sample application to map the enums or simply specify

export AWS_KVS_LOG_LEVEL=1

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

No branches or pull requests

2 participants