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

Resource temporarily unavailable, number: 11 #9985

Closed
kongxin22 opened this issue Nov 21, 2021 · 20 comments
Closed

Resource temporarily unavailable, number: 11 #9985

kongxin22 opened this issue Nov 21, 2021 · 20 comments

Comments

@kongxin22
Copy link

Required Info
Camera Model { D455 }
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version {Linux (Ubuntu 16)
Kernel Version (Linux Only) (e.g. 5.4.0)
Platform PC
SDK Version { legacy / 2.<49>.<0> }
Language {C/C# }
Segment {Robot/Smartphone/VR/AR/others }

Issue Description

I'm so sorry that a new problem occurs.At first everything went well,but suddenly something happened like these:
21/11 16:43:00,257 WARNING [140271777982208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
21/11 16:43:01,343 ERROR [140271650064128] (ds5-options.cpp:88) Asic Temperature value is not valid!
21/11 16:29:51,418 WARNING [140271777982208] (messenger-libusb.cpp:42) control_transfer returned error, index: 300, error: No data available, number: 3d

Is my camera broken?I'm so worried!
PS:I have not installed the librealsense-ros.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Nov 21, 2021

Hi @kongxin22 There is no need to apologize :)

control_transfer returned errors are usually not caused by a camera hardware failure but instead by a communication problem such as camera data temporararily not being received by the computer's USB port.

If the messages are only occurring occasionally (for example, once or twice a minute) and are not disrupting the correct operation of the camera then they can be safely ignored. An Asic Temperature is not valid! warning is also usually not a cause for concern if it occurs infrequently.

@kongxin22
Copy link
Author

@MartyG-RealSense But the statements on my terminal are only "Resource temporarily unavailable, number: 11",which appear one by one.And there are other problems on another computer:

22/11 22:51:26,811 WARNING [140535454770944] (backend-v4l2.cpp:1358) Pixel format 36315752-1a66-a242-9065-d01814a likely requires patch for fourcc code RW16!
22/11 22:51:31,730 WARNING [140535035463424] (hdr-merge.cpp:38) HDR Merge filter cannot process frames because relevant metadata params are missing
22/11 22:51:33,982 ERROR [140535079630592] (http-downloader.cpp:143) Download error from URL: https://librealsense.intel.com/Releases/rs_versions_db.json, error info: Timeout was reached
22/11 22:53:31,783 WARNING [140535729716672] (ds5-motion.cpp:473) IMU Calibration is not available, default intrinsic and extrinsic will be used.
22/11 22:53:31,787 WARNING [140534081386240] (backend-hid.cpp:715) HID set_power 1 failed for /sys/devices/pci0000:00/0000:00:14.0/usb4/4-2/4-2:1.5/0003:8086:0B5C.0002/HID-SENSOR-200073.2.auto/iio:device0/buffer/enable

I have tried to reinstall the SDK,but there was no luck.I am worried because the troubles occurred so suddenly.
Please forgive me for my broken English!

@MartyG-RealSense
Copy link
Collaborator

Your English is very good, so don't worry!

The warning message that you experienced is of the 'control_transfer returned' type. 'Resource temporarily unavailable' describes the kind of control_transfer returned warning that it is.

WARNING [140271777982208] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11

The 'IMU Calibration is not available' warning suggests that the D455's internal IMU hardware component (called the Motion Module in the RealSense Viewer) has not been calibrated using Intel's IMU calibration tool since the camera was purchased. This is not a serious problem though.

https://dev.intelrealsense.com/docs/imu-calibration-tool-for-intel-realsense-depth-camera

The warning 'Pixel format 36315752-1a66-a242-9065-d01814a likely requires patch for fourcc code RW16!' suggests that if you built the SDK using Linux and you built it from source code then the Linux kernel was not patched during the installation process. I note though that the SDK was working normally for you at first and then suddenly having problems. This suggests that the SDK was installed correctly.

What are your problems on the other computer, please?

@kongxin22
Copy link
Author

@MartyG-RealSense
How to solve the problem of the 'control_transfer returned' type?And today the problem changes:
23/11 22:17:57,865 WARNING [140339591505664] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: No data available, number: 61
23/11 22:17:58,916 WARNING [140339591505664] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: No data available, number: 61
23/11 22:17:59,967 WARNING [140339591505664] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: No data available, number: 61
23/11 22:18:03,019 WARNING [140339591505664] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: No data available, number: 61
23/11 22:18:18,082 WARNING [140339591505664] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: No data available, number: 61
23/11 22:18:19,133 WARNING [140339591505664] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: No data available, number: 61
23/11 22:18:35,193 WARNING [140339591505664] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: No data available, number: 61
23/11 22:18:56,258 WARNING [140339591505664] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: No data available, number: 61
Will these troubles affect me?Thank you very much!

@MartyG-RealSense
Copy link
Collaborator

If the camera streams appear to be operating normally then you could ignore the control_transfer returned messages. If you wish to try to reduce them though then you could test whether the number of messages reduce if you use a lower resolution. For example, setting 640x480 and 30 FPS for the depth stream in the RealSense Viewer tool.

image

@kongxin22
Copy link
Author

kongxin22 commented Nov 23, 2021

@MartyG-RealSense
Yes,it does work normally.Only the statements on the terminal worry me:
23/11 22:52:54,990 WARNING [139858452395776] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: No data available, number: 61
23/11 22:53:03,046 WARNING [139858452395776] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: No data available, number: 61
23/11 22:53:13,102 WARNING [139858452395776] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: No data available, number: 61
23/11 22:53:15,154 WARNING [139858452395776] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: No data available, number: 61
23/11 22:53:16,205 WARNING [139858452395776] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: No data available, number: 61
And sometimes:
Resource temporarily unavailable, number: 11
But I found that the problem occurs only on one computer no matter which the USB port is.Does it mean I can ignore the problem?

@MartyG-RealSense
Copy link
Collaborator

Yes, if it is not causing you problems then you can ignore the warnings without worry. They may be related to the USB hardware on that particular computer.

@MartyG-RealSense
Copy link
Collaborator

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

@wilsonz91
Copy link

Hi, I'm having a similar problem on a Lenovo T480s and a VR capable NUC (although I am running L515). Tried both v2.48 and v2.5 also and still getting the same problem. The messages appear constantly, both on realsense-viewer and ROS.
The error pops up when the depth sensor stream is enabled; for rgb only it works fine.
Tried switching the original USB C cable around at the L515 side but still getting the error.
Set up: Ubuntu 18 + ROS melodic
(Not sure if I should open a new thread, thought i'll try here first)

@MartyG-RealSense
Copy link
Collaborator

Hi @wilsonz91 In ROS, do the messages still occur if you add initial_reset:=true to your roslaunch instruction to reset the camera at launch. For example:

roslaunch realsense2_camera rs_camera.launch initial_reset:=true

@wilsonz91
Copy link

Hi @MartyG-RealSense, sadly, yes it does

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Nov 29, 2021

@wilsonz91 Are you able to stream the camera images in the Viewer and in RViz in ROS without apparent negative impact on performance? If you can then I would repeat the advice given to @kongxin22 above to simply ignore the messages.

@wilsonz91
Copy link

wilsonz91 commented Nov 29, 2021

I'll have to check on that.

Could I ask regarding the ROS timestamp seen on the image/depth messages: are they from the camera time or the time they are published?
So for eg if the camera image is published at fixed rate, and images are lost due to say USB hardware fault, would the timestamp show up as follows:
No. | Timestamp
1 | 0001
2 | 0002
3 | 0003 (this image is lost)
4 | 0004 (this image received would have this time stamp)

or would image 4 shows up timestamp 0003?

@MartyG-RealSense
Copy link
Collaborator

In the RealSense ROS wrapper, Global Time is enabled by default for 400 Series cameras (including the D455). Doronhi the RealSense ROS wrapper developer provides advice about Global Time in regard to timestamps and how it aligns device time with system time at IntelRealSense/realsense-ros#796

Global Time is discussed further in detail at #4505

In regard to your specific question about timestamp numbering, I don't know unfortunately.

@kongxin22
Copy link
Author

Hi @MartyG-RealSense ,I have taken your advice to ignore the "Resource temporarily unavailable, number: 11" and "No data available, number: 61".But I find that when I run a script,which need to collect data from the camera,similar problem occurred:No device connected.
Sometimes it can be solved by re-inserting the camera.However,mots of the time the script can't run ,no matter on which computer.Does it mean my camera broken?

@MartyG-RealSense
Copy link
Collaborator

Hi @kongxin22 If the problem can be solved sometimes by USB unplug-replug then it suggests that the camera hardware is okay and the problem may be elsewhere, such as in the USB system (either the USB port of the computer, the port's USB controller or the USB cable).

Are you using the official 1 meter USB cable supplied with the camera or a longer USB cable of your own choice, please?

@MartyG-RealSense
Copy link
Collaborator

Hi @kongxin22 and @wilsonz91 Do you require further assistance with this case, please? Thanks!

@wilsonz91
Copy link

Hi @MartyG-RealSense, thanks for the information. I'm ignoring the warnings for now.

@MartyG-RealSense
Copy link
Collaborator

Thanks very much @wilsonz91 for the update of your particular situation!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

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

3 participants