-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Ubuntu 18.04 with SR300, turning camera off then back on causes "Frames didn't arrived within 5 seconds" #7328
Comments
Hi @Belval I carefully considered your case. It does not seem like a problem that is likely to be related to erratic power, as it sounds as though your camera is stable other than when this problem occurs specifically when toggling the depth sensor on-off-on. On point 1 of your kindly provided 'How to reproduce' guide, the link to the installation method that you used goes to this page here instead. Could you confirm which method you used to install librealsense, please? Because your log was checking the status every 5 seconds it made me wonder if it was the RSUSB method, as it checks device changes every 5 seconds. If you are writing your own application in Python, would it be possible to add a hardware_reset() instruction near the start of your Python script please to see if that improves your situation? |
Sorry about the wrong link, here is the right one (I also updated it): https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md#installing-the-packages I will try the possible solutions that you mentioned. |
I can confirm that adding: # Reset all devices
ctx = rs.context()
devices = ctx.query_devices()
for dev in devices:
dev.hardware_reset() Fixes the issue for my python script, thank you for your help. Feel free to close the issue, but it does persist in RealSense viewer. |
Thanks for the update - I'm very pleased that you made progress! To avoid unplug-replug in the remaining issue with the Viewer, you could see if you can do a hardware reset in the Viewer at the start of each session of using it. This is peformed by going to the More option at the top of the options side-panel and selecting the hardware reset option from its menu. |
That works, thank you for your awesome support! |
You are very welcome - I'm glad I could help. :) Thanks for the update! |
Issue Description
When using the SR300 I cannot activate/deactivate it without having it enter an error state which requires me to powercycle (i.e. unplug/replug) the device.
How to reproduce
(backend-v4l2.cpp:1034) Frames didn't arrived within 5 seconds
What I have tried to fix the issue
Temporary fix
If I unplug and replug the USB cable the camera can be reactivated and will work as expected without rebooting. However this is very painful when debugging.
The text was updated successfully, but these errors were encountered: