-
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
Camera doesn't work more than once and "No Frames Received!" on Viewer Ubuntu 18.04 #9786
Comments
Hi @vigkrish123 There are some past cases of this issue or similar occurring, examples of which are #1889 and #4655 In the RealSense Viewer, is a complete shutdown and restart of the computer required to clear the problem, or can it be resolved if you perform a reset of the camera? The camera can be reset by going to the More option near the top of the Viewer's options side-panel and selecting the Hardware Reset option from its drop-down menu. |
Are you using the official 1 meter USB cable that was supplied with the camera or a longer USB cable of your own choice, please? |
I am using the official one which came along with the camera. I also tried another cable thinking maybe the official one was faulty. But both gave me the same result |
Thanks very much for the information. Which method did you use to install the RealSense SDK on your computer? |
I followed the link from the homepage I followed the steps provided in this link |
This problem has the characteristics of a program that has been improperly shut down after the first successful run, as described in #1086 Are you closing the RealSense Viewer by left-clicking on the orange 'X' in the top corner, please? |
The problem arises even when the program is running as it stops receiving frames after a time period or due to connection time out. When that happens , I am using the 'X' in the top corner to exit the application. |
Are you enabling only the RGB stream in the Viewer and your OpenCV program, or are you enabling three stream types at the same time (RGB, Depth, Motion Module) |
I am enabling only RGB Stream in OpenCV (i also mapped the correct camera input i.e. in my case RGB is '/dev/video4') and in the Viewer all streams work but in any case, after a time period it stops functioning and doesn't work more than once |
If you open the Controls section of the 'Stereo Module' options in the Viewer and observe the ASIC Temperature and Projector Temperature read-outs, what values do they display? Are they higher than 40? Also, is the casing of the camera hot to the touch if you touch it after the camera has been running for a few minutes after starting from a cold state? |
Yes. The time out takes place even if I turn off the laser before enabling the stream. Also while using it via OpenCV, it still stops after a time period and wont work the next time until camera plugged out and plugged in again. If I get the timeout in realsense-viewer, then the camera wont even work the first time in OpenCV and vice versa. So the camera work once for a time period and stops working. |
So the depth stream does seem to be updating correctly in the first few seconds after stream start before it time-outs? If it does, this suggests that the camera hardware is okay and there is a communications problem. |
Seems so. The camera works perfectly when it works. But cant get it working for a longer period. Any idea how I can solve the issue? Coz while using it for OpenCV, am just taking the camera directly as an input so there's nothing much I can do with any software updates to the realsense viewer. |
Have you got any other cameras apart from the D435i attached to the computer that might be conflicting with the D435i (for example, a built-in laptop webcam). I noticed earlier that your RGB was using /video4. On a computer with just a RealSense D435i camera attached I would normally expect the /video detection to be enumerated as /video0 for depth, video1 for infrared and /video2 for RGB. |
Nope the D435i is the only webcam attached to the PC and it shows 6 devices attached. /video0, video1... video5. I had to do a trial and error to find that RGB was video4. I am currently planning on trying the D435i on a Jetson Nano to see if the problem is occurring in all machines. But I still want to figure out why it wouldn't work in the PC. |
Building the SDK from source code with the RSUSB backend method instead of building from packages would help to eliminate the possibility that there is a conflict with your Linux version or kernel version, as RSUSB is dependent on neither and does not require kernel patching. |
Could you tell me how I can do this? I am fairly new to Linux and I found only V4L backend. If there is a installation documentation on the RSUSB Backend, please do refer me that |
If you are planning on using Nano then an RSUSB Backend installation guide at #6964 (comment) should be helpful. In regard to an RSUSB Backend installation on PC, installation guidance can be found at #6845 (comment) |
Thanks a lot. Does this mean I need to change a lot in the code to accommodate the fact that I am using RSUSB Backend instead of V4L? My code i.e. which uses the camera with openCV looks like this:
Sorry for being very specific as I am new to this and want to learn how the changes have an impact and where. |
The difference between builds made with V4L and RSUSB backends is mostly with processes in the background, and the same code can be used for both backends. The back-end differences may result in some behavioural differences for certain kinds of function when the program is running. For example, an RSUSB build may check less often (every 5 seconds by default) whether device settings have changed, meaning that when the program makes a request to alter a setting, the program may miss that request. The time between checks can be reduced with a code edit though, with the trade-off that CPU percentage usage increases. This phenomenon is discussed in #6921 |
Thanks a lot. I shall try this one. I will close this issue and reopen it if the solution does not work or get further problems. |
Thanks very much @vigkrish123 for the update. Please do feel free to re-open the issue at a future date or create a new issue if you require further assistance later. Good luck! |
Issue Description
Hi, I am using the above configuration for my RealSense D435i Camera for Video input purpose (such as OpenCV). The camera gives the video output the first time but after closing the application and opening the next time, it does not work. Similarly, RealSense viewer works well at first time and doesn't work the second time. Hence there is a pattern.
Solutions tried:
Only time it works again is if i restart the system and even after that it works once and the problem continues.
Looking for a solution as I have been working on this issue for days trying to find a fix.
The text was updated successfully, but these errors were encountered: