Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Tony_Teng
Beginner
165 Views

Openvino will crashed after running inference some seconds

Hi.

I use ncs2 on my Raspberry Pi 4 (Raspbian Buster). I installed l_openvino_toolkit_runtime_raspbian_p_2019.2.242.tgz followed by this link., run this code for testing

Everything was fine at the beginning of 10 - 20 seconds(sometimes less, sometimes longer).  Then, the inference engine crashed with the following errors:

E: [xLink] [    327401] [EventRead00Thr] dispatcherEventReceive:336     dispatcherEventReceive() Read failed (err -4) | event 0xaf1fdddc XLINK_READ_REL_REQ

E: [xLink] [    327401] [EventRead00Thr] eventReader:223        eventReader thread stopped (err -4) E: [xLink] [    327402] [python3] XLinkReadDataWithTimeOut:1323 Event data is invalid

E: [ncAPI] [    327402] [python3] ncFifoReadElem:3445   Packet reading is failed. terminate called after throwing an instance of 'InferenceEngine::details::InferenceEngineException'

what():  Failed to read output from FIFO: NC_ERROR

Aborted

I tried to insert it into the USB hub with a self-power adapter, but it still got the same errors. 

And I also tried to insert it into the USB2.0, but still not working.

I checked out the dmesg information, I found the ncs2 device will be auto-mounted when I called net.forward() at some point.

I got dmesg information by following steps:

1. check the ncs2 device is ok(I can find the device) before running the code. 

2. clear dmesg

3. running the code

4. wait and it was crashed. then, check out the dmesg.

the dmesg showing:

[87255.685160] usb 1-1.1: USB disconnect, device number 25
[87255.831256] usb 2-1: new SuperSpeed Gen 1 USB device number 18 using xhci_hcd
[87255.861963] usb 2-1: New USB device found, idVendor=03e7, idProduct=f63b, bcdDevice= 1.00
[87255.861970] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[87255.861975] usb 2-1: Product: VSC Loopback Device
[87255.861980] usb 2-1: Manufacturer: Intel Corporation
[87255.861985] usb 2-1: SerialNumber: 41440410119541BC00
[87280.181479] usb 1-1.1: new high-speed USB device number 26 using xhci_hcd
[87280.312042] usb 1-1.1: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
[87280.312048] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[87280.312053] usb 1-1.1: Product: Movidius MyriadX
[87280.312058] usb 1-1.1: Manufacturer: Movidius Ltd.
[87280.312063] usb 1-1.1: SerialNumber: 03e72485
[87280.691784] usb 2-1: USB disconnect, device number 18

Is there anything I missed? 

I have debugged it serval days. 

Thanks.

0 Kudos
3 Replies
Shubha_R_Intel
Employee
165 Views

Dear Tony Teng,

We just released OpenVino 2019R3 but I don't see the Raspbian version up yet.

Can you please run the OpenVino recommended sample instead ?

Let me know what happens,

Thanks,

Shubha

Tony_Teng
Beginner
165 Views

Dear Shubha R. (Intel),

Thanks for your answer.

I have run the OpenVino recommended sample yet. The sample works well. But the sample runs inference for only one picture.

If I put the inference in an infinite loop, likes below codes:

while True:

         color_image = cap.read()

         if not ret:

             break

         blob = cv2.dnn.blobFromImage(color_image, 0.007843, size=(300, 300), mean=(127.5,127.5,127.5), swapRB=False,crop=False)             net.setInput(blob)

         out = net.forward()

it crashed at some point. 

Thanks.

Shubha_R_Intel
Employee
165 Views

Dear Tony Teng

Perhaps that infinite loop did crash. And it could have happened for many reasons.  If you can narrow the issue down, that would be ideal. Perhaps try a debug build and run within Visual Studio - Visual Studio will land in the final code which got executed before crashing.

Thanks,

Shubha

 

Reply