Items with no label
3338 Discussões

Hi Team, We have a c# app that streams color stream over IP(HTTP).App runs fine for 2 to 3 days continuosly without any error.Streaming of color frames get stuck at some point.

HShet1
Principiante
799 Visualizações

Streaming of color frames continue once I refresh the HTTP url(http:://localhost:8080)..I am using Intel RealSense SDK V2.18.0 on Windows 10.

I have attached the DEBUG logs of the frame at which streaming gets stuck.Please have a look and advise.

 

0 Kudos
3 Respostas
MartyG
Colaborador honorário III
470 Visualizações

Although RealSense cameras can run indefinitely in theory as long as they remain within operating temperature tolerances, in practice 3 days tends to be the outer limits of long-running operations before a problem occurs. When there is a glitch, it is usually unrelated to the camera hardware and is instead due to something that has occurred in the computing hardware, its operating system or the USB port.

 

I looked at your kindly provided log. The vast majority of the messages seem to be related to frames taking longer than expected to arrive (which would correlate with your description of the stream getting 'stuck'). As the IP stream resumes when you reset the page, it sounds as though it is the browser page freezing up whilst the camera hardware continues to transmit, and so the stream resumes once the page resets. It may be similar to the old internet problem 'Page is unresponsive' where a problem with a web script causes a browser page to lock up.

 

If the problem was with the USB port that the camera was attached to, I would not expect the camera to resume streaming when the browser page was refreshed.

 

You could try checking if there is some component of your browser, such as an extension, that may cause issues.

 

https://www.cloudpro.co.uk/leadership/cloud-essentials/7443/how-to-stop-your-browser-freezing

HShet1
Principiante
470 Visualizações

Thanks for the response.I would like to mention additional details which may help in further analysis.Along with HTTP streaming of color stream, we have one more API to get depth values. So whenever HTTP streaming stucks, if we refresh API to get depth values also then streaming would resume. It is not necessary to refresh HTTP streaming URL only.

MartyG
Colaborador honorário III
470 Visualizações

Apologies for the delayed response. Forum login went down. It is a good opportunity to highlight that RealSense support has moved to a new location, and that Intel support staff are no longer providing assistance at this forum.

 

https://support.intelrealsense.com/hc/en-us/community/topics

 

It sounds as though the depth program is your main program, and that program also generates the color stream that is sent to http. Is this correct, please? If that is the case, it would stand to reason that if the depth program is reset then generation of the color stream would be reset too.

 

If the depth program was shut down (turning off the camera pipeline) and then the program is re-started, this should re-initialize the camera pipeline when the program starts up, which would account for why the streams resume.

 

You can put an instruction called hardware_reset in the start of a RealSense SDK script that resets the camera without having to do a physical intervention such as a program shutdown / restart, or unplugging and replugging the USB cable. This is useful for applications such as long-running, or in situations where the camera / PC is in a cabinet that cannot be easily accessed.

 

C# wrapper support for hardware_reset was added in the February 2019 update of the SDK.

 

https://github.com/IntelRealSense/librealsense/pull/3192

 

https://github.com/IntelRealSense/librealsense/pull/3192/commits/59d7f65fdd561d95728ccca5b3a0169d7d6f15fe

Responder