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

D415 got stuck/frooze in wait_for_frame() after unplug-replug #10543

Closed
LLY13 opened this issue May 24, 2022 · 8 comments
Closed

D415 got stuck/frooze in wait_for_frame() after unplug-replug #10543

LLY13 opened this issue May 24, 2022 · 8 comments

Comments

@LLY13
Copy link

LLY13 commented May 24, 2022

Required Info
Camera Model D415
Firmware Version 5.13 just updated today successfully
Operating System & Version Win 10
Platform PC
SDK Version updated to latest 2.50.x
Language c++
Segment Robot

Issue Description

D415 got stuck in wait_for_frame() after unplug-replug about 45 seconds occasionally. I just updated everything today but it still happend in my code. So I copied demo code, still got stuck. I need know it's normal situation or exception. In the image, I unplugged and replugged immediately.
exception

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented May 24, 2022

Hi @LLY13 It is possible for a program to become unresponsive after the camera is disconnected by some means (such as physically unplugging it from the USB port). RealSense users have sometimes created workaround mechanisms when frames stop arriving, such as automatically resetting the camera with the hardware_reset() instruction. A C++ case that discusses the issue is at #10084

@LLY13
Copy link
Author

LLY13 commented May 25, 2022

I have tried use hardware_reset() before this I posted this issue, seemed like useless. I'd just try not to unplug it.

@MartyG-RealSense
Copy link
Collaborator

When you unplug, how long on average do you wait before re-inserting? Upon disconnection, the pipeline should be able to resume streaming if the camera is reconnected within 5 seconds, otherwise the connection time-outs.

@LLY13
Copy link
Author

LLY13 commented May 26, 2022

less than 1 seconds. yep most time reconnected in 5 seconds. but somtimes 15s even 45s+

@MartyG-RealSense
Copy link
Collaborator

I would recommend trying a wait period of 2 seconds before re-inserting to give the computer time to properly register the removal of the device from the USB system and see whether that reduces the occurrences of the long time-out events.

@MartyG-RealSense
Copy link
Collaborator

Hi @LLY13 Do you require further assistance with this case, please? Thanks!

@LLY13
Copy link
Author

LLY13 commented Jun 2, 2022

no thx

@MartyG-RealSense
Copy link
Collaborator

Thanks very much @LLY13 for the update. As you do not require further assistance, I will close this case. Thanks again!

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

No branches or pull requests

2 participants