-
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
Frames didn't arrive error - after improper shutdown #1086
Comments
Hi @motudor |
Hi @zivsha |
Sound like this might be a firmware issue. As a workaround, can you try to check if calling rs2::device dev = device_you_are_using();
dev.hardware_reset(); //Will disconnect the camera and reconnect it.
//NOTE: All camera settings will be restored to default after this call (same as unplug->plug)
//Don't use device after this line |
After using That means I can use this camera on the real machine now - I can just call hardware reset at the beginning of the program (at least until we find a more elegant solution). Thank you for the help! |
Glad to see that this w/a works. You can combine the hardware reset with rs2::context ctx;
rs2::device dev = get_device_from_context(ctx);
dev.hardware_reset();
rs2::device_hub hub(ctx);
dev = hub.wait_for_device(); //Note that device hub will get any device, if you have more than 1 connected it could return the other device |
Thanks for that! The plan for this project is to use two cameras, and, as I did not find a way for getting Is there a way to wait for a device with a certain serial number? My code now looks something like this:
|
A general way to handle device connectivity is using: rs2::context ctx;
ctx.set_devices_changed_callback([dev](rs2::event_information e) {
e.get_new_devices();
e.was_removed(dev);
}); Take a look at I'm not sure what was the reason not to have |
I have the same problem with python2 wrapper on Ubuntu. I run the following codes:
Sometimes I can get frames successfully, but sometimes I get error:
When this error occurs, I will run my code again and again, until the frames arrive. But sometimes I have to try many times, it wastes my time. How to solve this problem? @zivsha |
Hi @KeCh96 , |
[Realsense Customer Engineering Team Comment] Did you try the sample app of the latest librealsense and still face the issue on your system? |
same issue, occurs on D410 module+Intel UP Board with Android OS, if restart streaming after stop streaming. |
[Realsense Customer Engineering Team Comment] Still has the issue with the latest librealsense build? |
Hi @RealSense-Customer-Engineering |
[Realsense Customer Engineering Team Comment] Any further update? Is the issue resolved? |
[Realsense Customer Engineering Team Comment] I will close this first. If you still have any issue, you can re-open it. |
It did take a longer time to get back to this, but I can now confirm the problem is solved with the latest library and firmware. |
I use usb hub. Does this matter? |
Hi @Hubert51 , are you able to provide more details on what USB Hub you're using? Is it USB3? How is the hub powered? |
Is it possible in ROS? |
I have the same problem with astra camera |
Hi all,
I am working on a project where I am using a realsense D435 sensor to get data about the position of some objects and process that using OpenCV.
Normally, the sensor works fine. But if the power is turned off to the computer (or the computer is reset) while the program is running, when I try to run the program after powerup, I get:
The device is detected by query_devices() and I can read information from it using dev.get_info() but when I try to stream the depth data I get the error.
Plugging the cable out and then in again solves the issue. Just shutting down the computer, waiting a few minutes and powering up again, does not solve it.
Unfortunately, most of the shutdowns that I can expect will be improper ones (power failures) and plugging the cable out is not an option because the sensor is mounted on an automatic crane and it could takes hours until a technician gets to the power cabinet and re-plugs the cable.
When I try to run realsense-viewer, the device is detected, but when I try to stream the depth data it also fails:
The
udevadm monitor
does not show anything when I run my program or realsense-viewer.I have tried to use linux commands to replicate plugging the usb out and in again (like the ones presented here: https://askubuntu.com/questions/342061/power-on-off-usb-ports), but without any sucess.
So what should I try next?
The text was updated successfully, but these errors were encountered: