Frame didn't arrived within 5000
This is most likely a duplicate of issue #1889, #927, #840 and #901
| Required Info | |
|---|---|
| Camera Model | D415 |
| Firmware Version | |
| Operating System & Version | L4T 28 / Ubuntu 16.04 |
| Kernel Version (Linux Only) | 4.4.38+ |
| Platform | Jetson TX2 |
| SDK Version | master branch |
| Language | Python3 |
Issue Description
At random intervals,opening the pipeline returns the error Frame didn't arrived within 5000.
Looking at dmsg reveals:
[ 2838.605731] CPU: 0 PID: 2934 Comm: python3 Tainted: G W 4.4.38+ #7
[ 2838.613022] Hardware name: quill (DT)
[ 2838.616676] task: ffffffc075784b00 ti: ffffffc072448000 task.ti: ffffffc072448000
[ 2838.624146] PC is at v4l_enum_fmt+0x1270/0x1608
[ 2838.628665] LR is at v4l_enum_fmt+0x1270/0x1608
[ 2838.633184] pc : [<ffffffc000752c10>] lr : [<ffffffc000752c10>] pstate: 60000145
[ 2838.640562] sp : ffffffc07244bbf0
[ 2838.643868] x29: ffffffc07244bbf0 x28: ffffffc0012ba2c0
[ 2838.649187] x27: 0000000000000000 x26: ffffffc07244bd20
[ 2838.654508] x25: 0000007fec193510 x24: ffffffbffcf63288
[ 2838.659825] x23: ffffffc1e459f380 x22: ffffffc075646300
[ 2838.665144] x21: ffffffbffcf63288 x20: 0000000000000000
[ 2838.670466] x19: ffffffc07244bd20 x18: 0000000000000014
[ 2838.675785] x17: 0000007f91210290 x16: ffffffc0001d5974
[ 2838.681104] x15: 0000000000000028 x14: 5a3136200000005a
[ 2838.686425] x13: 000001e000000280 x12: ffffffc001218000
[ 2838.691745] x11: 0000000000000002 x10: 0000000000000001
[ 2838.697064] x9 : 0000000000000c79 x8 : 0000000000000002
[ 2838.702382] x7 : 0000000000000000 x6 : 0000000000000028
[ 2838.707703] x5 : 0000000000000000 x4 : 0000000000000000
[ 2838.713021] x3 : 0000000000000000 x2 : 0000000000000000
[ 2838.718340] x1 : 0000000000000000 x0 : 000000000000001e
[ 2838.725144] ---[ end trace 53854ec78f528e6e ]---
[ 2838.729750] Call trace:
[ 2838.732189] [<ffffffc000752c10>] v4l_enum_fmt+0x1270/0x1608
[ 2838.737748] [<ffffffc00075375c>] __video_do_ioctl+0x224/0x298
[ 2838.743481] [<ffffffc0007531d4>] video_usercopy+0x22c/0x574
[ 2838.749040] [<ffffffc000753530>] video_ioctl2+0x14/0x1c
[ 2838.754253] [<ffffffc00074e55c>] v4l2_ioctl+0xbc/0xcc
[ 2838.759296] [<ffffffc0001d56b4>] do_vfs_ioctl+0x324/0x5e4
[ 2838.764683] [<ffffffc0001d59f8>] SyS_ioctl+0x84/0x98
[ 2838.769637] [<ffffffc000084ff0>] el0_svc_naked+0x24/0x28
[ 2838.775057] Unknown pixelformat 0x2036315a
[ 2838.779168] ------------[ cut here ]------------
[ 2838.783775] WARNING: at ffffffc000752c10 [verbose debug info unavailable]
[ 2838.790546] Modules linked in: fuse uvcvideo videobuf2_vmalloc bcmdhd pci_tegra bluedroid_pm
[ 2838.800525] CPU: 0 PID: 2934 Comm: python3 Tainted: G W 4.4.38+ #7
[ 2838.807818] Hardware name: quill (DT)
[ 2838.811471] task: ffffffc075784b00 ti: ffffffc072448000 task.ti: ffffffc072448000
[ 2838.818939] PC is at v4l_enum_fmt+0x1270/0x1608
[ 2838.823459] LR is at v4l_enum_fmt+0x1270/0x1608
[ 2838.827978] pc : [<ffffffc000752c10>] lr : [<ffffffc000752c10>] pstate: 60000145
[ 2838.835357] sp : ffffffc07244bbf0
[ 2838.838663] x29: ffffffc07244bbf0 x28: ffffffc0012ba2c0
[ 2838.843982] x27: 0000000000000000 x26: ffffffc07244bd20
[ 2838.849303] x25: 0000007fec193428 x24: ffffffbffcf63288
[ 2838.854622] x23: ffffffc1e459f380 x22: ffffffc075646300
[ 2838.859940] x21: ffffffbffcf63288 x20: 0000000000000000
[ 2838.865260] x19: ffffffc07244bd20 x18: 0000000000000014
[ 2838.870579] x17: 0000007f91210290 x16: ffffffc0001d5974
[ 2838.875898] x15: 0000000000000028 x14: 5a3136200000005a
[ 2838.881216] x13: 000001e000000280 x12: ffffffc001218000
[ 2838.886535] x11: 0000000000000002 x10: 0000000000000001
[ 2838.891855] x9 : 0000000000000c9f x8 : 0000000000000002
[ 2838.897177] x7 : 0000000000000000 x6 : 000000000000002e
[ 2838.902495] x5 : 0000000000000000 x4 : 0000000000000000
[ 2838.907815] x3 : 0000000000000000 x2 : 0000000000000000
[ 2838.913134] x1 : 0000000000000000 x0 : 000000000000001e
[ 2838.919941] ---[ end trace 53854ec78f528e6f ]---
[ 2838.924545] Call trace:
[ 2838.926985] [<ffffffc000752c10>] v4l_enum_fmt+0x1270/0x1608
[ 2838.932544] [<ffffffc00075375c>] __video_do_ioctl+0x224/0x298
[ 2838.938277] [<ffffffc0007531d4>] video_usercopy+0x22c/0x574
[ 2838.943836] [<ffffffc000753530>] video_ioctl2+0x14/0x1c
[ 2838.949048] [<ffffffc00074e55c>] v4l2_ioctl+0xbc/0xcc
[ 2838.954089] [<ffffffc0001d56b4>] do_vfs_ioctl+0x324/0x5e4
[ 2838.959475] [<ffffffc0001d59f8>] SyS_ioctl+0x84/0x98
[ 2838.964429] [<ffffffc000084ff0>] el0_svc_naked+0x24/0x28
[ 2838.969895] Unknown pixelformat 0x00000000
The camera is brand new D415, the usb cable is USB 3.1-C and I've tried with both the one provided by the camera package, as well as another one which is 9 inches long. The camera is powered by the TX2 which in turn is powered by 19V 5A power supply. Worse of it all this happens some times, and sometimes the camera streams. Is there an update or fix on this?
Any errors displayed when running from RealSense Viewer?
@dorodnic I don't have an Xdesktop only ssh access to it. I seem to have temporarily fixed it by constantly resetting the usb device before trying to access it. I also tried the rs-capture and it gave exactly the same error.
I'm mainly concerned about "Incomplete frame detected" errors, the Viewer helps visualize those, but you can also add rs2::log_to_console(RS2_LOG_SEVERITY_DEBUG); to any of the textual examples to see if appears.
I have this issue with my TX2 each time I start the pipeline. I have to unplug and plug it back it back it in every time. I am told if I upgrade the TX2 L4T this will no longer happen. I have not upgraded it yet but I am hopeful it will fix my issue. I believe you need to be at 28.2 or later.
@dorodnic I'll try connecting an HDMI to the TX2 tomorrow and running the Viewer.
Is there an equivalent python to log_to_console?
This is by the way L4T R28.1 so maybe a newer kernel would help, albeit I think this is a driver issue...
I am getting the following error when I am using the Librealsense tool called convert.
RealSense error calling rs2_pipeline_wait_for_frames(pipe:0x21ccd60):
Frame didn't arrived within 5000
I am not sure what is the problem over here. I am using a prerecorded bag file to convert it into the png format
FWIW: we were seeing this error as well, and we've found version 5.8.15 of the firmware to be much more stable in this regard.
Have TX2 with JetPack 3.2.1 and L4T 28.2.1. The problem still exists.
Using python I just reset the usb device and it seems to do the trick. I haven't had the time to connect it to an hdmi to see what happens with X enabled, but I will get back to you on this. Where do I find the firmware version?
[Realsense Customer Engineering Team Comment] Hi @alexge233,
You can find all firmware here to have a try. Which python example did you try? https://downloadcenter.intel.com/download/27954/Latest-Firmware-for-Intel-RealSense-D400-Product-Family
@ankith001, rs-convert is used to playback the ros-bag file convert it. Not sure how you see the similar issue.
@alexge233
You can use rs.log_to_console(rs.log_severity.debug) in your code to display it to console.
@RealSense-Customer-Engineering sorry I meant how do I find out which version of firmware do I currently have installed?
[Realsense Customer Engineering Team Comment] Hi @alexge233, Please check below guide to install DFU tool which can be used to check the firmware version and upgrade it. You also can use librealsense app like realsense-viewer to check the firmware version. https://www.intel.com/content/dam/support/us/en/documents/emerging-technologies/intel-realsense-technology/Linux-RealSense-D400-DFU-Guide.pdf
Two things:
- I managed to run
RealsenseViewertoday under VNC and it has exactly the same error, a hardware notification that frames didn't arrive - The
RealsenseVieweralso alerts me that I have a slightly older firmware version
The error appears for both the RGB camera, as well as the IR cameras
I've also updated the firmware but the same error still persists, regardless of the application executing it.
[Realsense Customer Engineering Team Comment] Hi @alexge233,
Several questions:
- Still run Realsense-viewer under VNC, and the same error happens? Which VNC tool do you use? Is it necessary to run the app under VNC?
- Is the firmware 5.9.14?
- Is your test configuration also based on JetPack 3.2.1 and L4T 28.2.1?
- Can you try to run "rs-capture" to see if it also has the same error?
@RealSense-Customer-Engineering Hi, thanks for the help:
- Running under VNC because we are using it for a prototype where HDMI/Screen/KB/mouse won't be present. VNC is running under
display:=0I am using tightVNC server andremminaas the client - I updated it last week to
5.9.13didn't see a5.9.14version - It is based on JetPack 3.1.X due to Orbitty carrier firmware (albeit they do support newer versions)
rs-captureand any app invoking the pipeline has the same error
I've noticed this seems to happen on a one-off-one-on operation, meaning it won't happen the first time, it will happen the second time, it won't happen the third time, and so on so forth.
Furthermore, the terminal window from which I invoke the realsense-viewer outputs the following warnings which may or may not have something to do with this:
16/08 17:47:22,260 WARNING [547912126464] (backend-v4l2.cpp:489) Failed to read busnum/devnum. Device Path: /sys/dev/char/81:0/device/../../../../../../../../../../
16/08 17:47:22,265 WARNING [547912126464] (backend-hid.cpp:1104) Failed to read busnum/devnum. Device Path: /sys/bus/iio/devices/iio:device0
16/08 17:47:22,265 WARNING [547912126464] (backend-hid.cpp:1104) Failed to read busnum/devnum. Device Path: /sys/bus/iio/devices/iio:device1
16/08 17:47:22,267 WARNING [547912126464] (backend-v4l2.cpp:489) Failed to read busnum/devnum. Device Path: /sys/dev/char/81:0/device/../../../../../../../../../../
16/08 17:47:22,272 WARNING [547912126464] (backend-hid.cpp:1104) Failed to read busnum/devnum. Device Path: /sys/bus/iio/devices/iio:device0
16/08 17:47:22,272 WARNING [547912126464] (backend-hid.cpp:1104) Failed to read busnum/devnum. Device Path: /sys/bus/iio/devices/iio:device1
16/08 17:47:22,302 WARNING [547884744368] (backend-v4l2.cpp:489) Failed to read busnum/devnum. Device Path: /sys/dev/char/81:0/device/../../../../../../../../../../
16/08 17:47:22,418 WARNING [547884744368] (backend-v4l2.cpp:489) Failed to read busnum/devnum. Device Path: /sys/dev/char/81:0/device/../../../../../../../../../../
16/08 17:47:22,427 WARNING [547884744368] (backend-v4l2.cpp:489) Failed to read busnum/devnum. Device Path: /sys/dev/char/81:0/device/../../../../../../../../../../
16/08 17:47:23,458 WARNING [547912126464] (backend-v4l2.cpp:489) Failed to read busnum/devnum. Device Path: /sys/dev/char/81:0/device/../../../../../../../../../../
16/08 17:47:23,463 WARNING [547912126464] (backend-hid.cpp:1104) Failed to read busnum/devnum. Device Path: /sys/bus/iio/devices/iio:device0
16/08 17:47:23,463 WARNING [547912126464] (backend-hid.cpp:1104) Failed to read busnum/devnum. Device Path: /sys/bus/iio/devices/iio:device1
16/08 17:47:23,695 WARNING [547884744368] (backend-v4l2.cpp:1164) Pixel format 36315752-1a66-a242-9065-d01814a likely requires patch for fourcc code RW16!
16/08 17:47:23,697 WARNING [547884744368] (sensor.cpp:329) Unregistered Media formats : [ RW16 ]; Supported: [ ]
16/08 17:47:27,274 WARNING [547899244208] (backend-v4l2.cpp:489) Failed to read busnum/devnum. Device Path: /sys/dev/char/81:0/device/../../../../../../../../../../
16/08 17:47:27,285 WARNING [547899244208] (backend-hid.cpp:1104) Failed to read busnum/devnum. Device Path: /sys/bus/iio/devices/iio:device0
16/08 17:47:27,286 WARNING [547899244208] (backend-hid.cpp:1104) Failed to read busnum/devnum. Device Path: /sys/bus/iio/devices/iio:device1
16/08 17:47:32,287 WARNING [547899244208] (backend-v4l2.cpp:489) Failed to read busnum/devnum. Device Path: /sys/dev/char/81:0/device/../../../../../../../../../../
16/08 17:47:32,293 WARNING [547899244208] (backend-hid.cpp:1104) Failed to read busnum/devnum. Device Path: /sys/bus/iio/devices/iio:device0
16/08 17:47:32,294 WARNING [547899244208] (backend-hid.cpp:1104) Failed to read busnum/devnum. Device Path: /sys/bus/iio/devices/iio:device1
16/08 17:47:37,295 WARNING [547899244208] (backend-v4l2.cpp:489) Failed to read busnum/devnum. Device Path: /sys/dev/char/81:0/device/../../../../../../../../../../
16/08 17:47:37,302 WARNING [547899244208] (backend-hid.cpp:1104) Failed to read busnum/devnum. Device Path: /sys/bus/iio/devices/iio:device0
16/08 17:47:37,302 WARNING [547899244208] (backend-hid.cpp:1104) Failed to read busnum/devnum. Device Path: /sys/bus/iio/devices/iio:device1
16/08 17:47:42,304 WARNING [547899244208] (backend-v4l2.cpp:489) Failed to read busnum/devnum. Device Path: /sys/dev/char/81:0/device/../../../../../../../../../../
16/08 17:47:42,315 WARNING [547899244208] (backend-hid.cpp:1104) Failed to read busnum/devnum. Device Path: /sys/bus/iio/devices/iio:device0
16/08 17:47:42,316 WARNING [547899244208] (backend-hid.cpp:1104) Failed to read busnum/devnum. Device Path: /sys/bus/iio/devices/iio:device1
16/08 17:47:47,316 WARNING [547899244208] (backend-v4l2.cpp:489) Failed to read busnum/devnum. Device Path: /sys/dev/char/81:0/device/../../../../../../../../../../
16/08 17:47:47,321 WARNING [547899244208] (backend-hid.cpp:1104) Failed to read busnum/devnum. Device Path: /sys/bus/iio/devices/iio:device0
16/08 17:47:47,321 WARNING [547899244208] (backend-hid.cpp:1104) Failed to read busnum/devnum. Device Path: /sys/bus/iio/devices/iio:device1
Hi,
I used to see the following issue for the rs-convert for the video data being more than 20 seconds.
If the data is less than 20 seconds I do not get that error.
[Realsense Customer Engineering Team Comment] Hi @alexge233,
Per my experience, this is the TX2 driver stability issue as you mentioned it happens on a one-off-one-on operation. JetPack 3.2 should resolve the driver issue.
@ankith001,
Can you separate your issue in another ticket for rs-convert tool? We will further check it.