-
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
Intel real sense d455 frames = pipeline.wait_for_frames() RuntimeError: Frame didn't arrived within 5000 #10523
Comments
Hi @js0011003 The Frame didn't arrived within 5000 error indicates that the program may not be receiving frames from the camera and so is 'timing out' after a 5 second wait. Is your camera able to stream frames in the RealSense Viewer normally, please? |
Yes, my D455 camera work normally in RealSense Viewer. |
Thank you for the confirmation about the Viewer. That indicates that it is a pyrealsense2 related software problem rather than a camera hardware problem. I have not seen a previous case of mediapipe being used with a pyrealsense2 program, though as the code worked up until the previous day I assume that the script code is not at fault. Edit: I found another Python example of using mediapipe at #9088 where the hand is being tracked instead of the hip. Is the script at that link able to run if you test it? |
Hi @js0011003 Do you require further assistance with this case, please? Thanks! |
Hi, i also have same error, my app should run non stop, but sometimes after one or sometimes after 3 days exit whit this error. After start again, app continue running ok until next error. |
Hi @negis02 RealSense 400 Series cameras can run indefinitely so long as they remain within recommended operating temperature tolerances. These are 35 degrees C for the operating temperature and 50 degrees C for the temperature of the outer casing of the camera. If your application has been running for 3 days and the camera temperatures are below the recommended maximums then typically the problem will be more likely to be related to a glitch on the computer hardware / OS or the computer's USB ports / cable rather than with the camera hardware. The most recent supported kernels are 5.4 if installing the SDK from Debian packages, and 5.8 or 5.11 if building the SDK from source code with CMake. The SDK can work with unsupported kernels but there may be unpredictable consequences in regard to stability. |
Hi @js0011003 and @negis02 Do you require further assistance with this case, please? Thanks! |
Thanks for info, I will try to implement temperature monitor of cameras in my app. |
Thanks very much @negis02 for the update! |
Hi @negis02 Do you require further assistance with this case, please? Thanks! |
Thanks, for now running ok. I thinks it was Intel NUC PC reasons. So no need further assistance . |
Thanks very much @negis02 for the update! As you do not require further assistance, I will close this case. Thanks again! |
I get this same problem.The file of .bag could be play in RealSense Viewer ,but it can't be extracted frames in pyrealsense2.By the way,I found that there is about 1.5 second(30fram/s) loss in the begining of depth video when i put the bag file on RealSense Viewer,which maybe show the reason why i can't extract frames in pyrealsense2?I don't know |
Hi @Hanson-Chan If you wrote a script in pyrealsense2 to access bag frames, did you define |
@MartyG-RealSense Yes,i have done this |
You could check whether there is a problem with the initial frames in the bag by programming the script to skip past the initial frames. Assuming that the bag was recorded at 30 frames per second, the code below should skip the first 2 seconds (60 frames) of the bag. If your script has a 'wait_for_frames' instruction then the 'for i in range' instruction should be placed on the line before.
|
thanks for advice, for recycle is not useful for me .but i set |
Thanks so much @Hanson-Chan for sharing your solution with the RealSense community! |
I have same problem too :( . I always have this error message when I use -- frames = pipeline.wait_for_frames(): I can visualize my RealSense 435i camera on realsense-viewer and since I integrated it with ROS I can visualize it with rviz. Can you please help me to fix this issue or recommend me another way to use RealSense camera to use it with opencv-python. I need your help as soon as possible please. |
Hi @abdullahsaatci Can you try the simple Python example program at the link below, please? If that works normally then it would suggest that there is a problem in your script. If you also experience Frame didn't arrived within 5000 with this example script too then it would indicate that your code is likely okay and the problem is elsewhere. |
Hello @MartyG-RealSense ; .nh
But my main problem is visualizing colorized displaying not depth displaying, let me give you the details my problem please: I can already run this script: import pyrealsense2 as rs Initialize the pipelinepipeline = rs.pipeline() config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 30) Start streamingpipeline.start(config) try:
finally: but unfortunately whenever I add this line to script I receive the runtime error message did not arrive in 5000 which I mentioned earlier. I can visualize both depth images and colorized images on RealSense-viewer and rviz. My RealSense depth camera is -- 435i I have set uo the sdk by fallowing these steps if you wonder -- https://eu.mouser.com/applications/getting-started-with-realsense-d455/ |
What happens if you remove config from the brackets of the pipe start instruction so that the 'config' lines of the script are ignored?
The program should then automatically apply the default stream configuration of the D435i camera - 848x480 depth at 30 FPS and 1280x720 RGB color at 30 FPS. If the program runs correctly then it would suggest that the program has a problem with the config lines for some reason, even though their code is correct. |
nothing changes same error as before :/ |
Let's try using RGB from the left infrared sensor instead of RGB from the RGB sensor, as the D455 camera model supports 'RGB from left infrared' mode.
|
I think no way to fix the issue |
Do you still get RuntimeError: Frame didn't arrived within 5000 if you insert the Python camera reset code below at the line before your pipe start line?
|
now it sometimes gives this error : abdullah@abdullah:~/yazilim$ python3 main.py and sometimes: abdullah@abdullah:~/yazilim$ python3 main.py |
I receive this error too: |
There was a case at #10570 (comment) where the map_device_descriptor error was being caused by including the hardware_reset() instruction in the script. RuntimeError: Couldn't resolve requests is caused because the camera is unable to provide the particular 'config' stream configuration that was requested. However, your depth config line was working and you only had a problem when adding a color config line.
We established that the depth stream is able to be accessed because you were able to run the python-tutorial-depth-1.py. Can you confirm whether or not you were able to stream color from infrared instead of from the RGB instruction using the config line at #10523 (comment) |
when I run this code you mentioned import pyrealsense2 as rs try:
finally: I receive this error Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): But when I remove this line of script |
What happens if you enable the color stream without setting any configuration values for it?
|
I receive this error again abdullah@abdullah:~/yazilim$ python3 learn_depth.py |
I wonder if the lines below are breaking the script when the color stream is included.
It is basically saying to prevent the script from continuing to work if there is a stream type enabled that is not the depth stream. |
Issue ### Description
i have my d455 set up and it worked normally yesterday. But when i ready to demo it to others an error happened. i have same code and same USB port, which i am confused what going wrong. My goal is tracking ones hip distance using mediapipe and real sense camera. Any help will be much appreciated. Here is my python code.
cap.release()
The text was updated successfully, but these errors were encountered: