Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Zhu__Dongzhi
Beginner
3,117 Views

Can not init Myriad device: NC_ERROR

Intel i5-7300CPU

GPU intel HD Graphics 620

VMware Ubuntu 16.04.6 LTS 

openVINO R2   with NCS2

 

error code:

~/inference_engine_samples_build/intel64/Release$ ./classification_sample_async -i /opt/intel/openvino/deployment_tools/demo/car.png -m ~/openvino_models/ir/FP16/classification/squeezenet/1.1/caffe/squeezenet1.1.xml -d MYRIAD
[ INFO ] InferenceEngine: 
    API version ............ 2.0
    Build .................. custom_releases/2019/R2_f5827d4773ebbe727c9acac5f007f7d94dd4be4e
    Description ....... API
[ INFO ] Parsing input parameters
[ INFO ] Parsing input parameters
[ INFO ] Files were added: 1
[ INFO ]     /opt/intel/openvino/deployment_tools/demo/car.png
[ INFO ] Creating Inference Engine
    MYRIAD
    myriadPlugin version ......... 2.0
    Build ........... 27579

[ INFO ] Loading network files
[ INFO ] Preparing input blobs
[ WARNING ] Image is resized from (787, 259) to (227, 227)
[ INFO ] Batch size is 1
[ INFO ] Loading model to the device
E: [ncAPI] [    645153] [classification_] ncDeviceOpen:844    Failed connection to device (1.1-ma2480) with error 7
[ ERROR ] Can not init Myriad device: NC_ERROR

 

i  run /install_NCS_udev_rules.sh 

install successfully

before i ran the demo, i can list usb

lsusb

Bus 001 Device 010: ID 03e7:2485 

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub

Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

 

once begin to run the demo, the usb diconnect and lose the serial

 

what is the problem?

Note that i run the demo successfully with NCS2 in Win10

0 Kudos
15 Replies
Michael_C_Intel1
Moderator
3,117 Views

Hello DongzhiZ,

The computer vision forum for OpenVINO is a more appropriate place for discussion on this topic, I will move this thread there. That being said, I'm concerned about support through OS virtualization software... that may or may not be in the scope of a software supported configuration.

 

-MichaelC

Shubha_R_Intel
Employee
3,117 Views

Dear Zhu, Dongzhi,

This Virtual Box USB OpenVino Post may help you. It's not VMWare but the symptom may be the same, which is:

It seems NCS2 USB device ID changes when script starts loading model to MYRIAD.

I was able to resolve it by adding a new USB device filter with VID= 03e7 and PID=f63b in addition to VID= 03e7 and PID=2485 in Virtualbox USB settings.

 

Hope this solves your problem

Hope it helps,

Thanks,

Shubha

Dongzhi_Z_Intel
Employee
3,117 Views

Shubha R. (Intel) wrote:

Dear Zhu, Dongzhi,

This Virtual Box USB OpenVino Post may help you. It's not VMWare but the symptom may be the same, which is:

It seems NCS2 USB device ID changes when script starts loading model to MYRIAD.

I was able to resolve it by adding a new USB device filter with VID= 03e7 and PID=f63b in addition to VID= 03e7 and PID=2485 in Virtualbox USB settings.

 

Hope this solves your problem

Hope it helps,

Thanks,

Shubha

 

Dear Shubha:

    I solved my problem by changing USB controller from 2.0 to 3.0 for all my usb filters in my Virtual machine settings .

    Thanks a lot for your suggestion!

Dongzhi

Dongzhi_Z_Intel
Employee
3,117 Views

MICHAEL C. (Intel) wrote:

Hello DongzhiZ,

The computer vision forum for OpenVINO is a more appropriate place for discussion on this topic, I will move this thread there. That being said, I'm concerned about support through OS virtualization software... that may or may not be in the scope of a software supported configuration.

 

-MichaelC

 

uration.

 

Hello MichaelC:

 I change USB controller from 2.0 to 3.0 for all my usb filters in my Virtual machine settings  and solved the problem,.

 Thank you for your suggestions.

 

Dongzhi

 

Shubha_R_Intel
Employee
3,117 Views

Dear Dongzhi,

This is a great find and thank you for sharing with the OpenVino community ! It's always great to help each other out.

Shubha

Schwojer__Georg
Beginner
3,117 Views

I get the identical error message on my raspberry pi 4 with Buster :"E: [ncAPI] [    599854] [object_detectio] ncDeviceOpen:859    Device doesn't appear after boot"

Setup:
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux

Installed is: OpenVINI 4.1.2 and opencv newest version

LSUSB shows:
pi@raspberrypi:~ $ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 18a5:0302 Verbatim, Ltd Flash Drive
Bus 001 Device 008: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 011: ID 03e7:2485 Intel Movidius MyriadX
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 

I did these setup exactly es desribed in the Intel site: https://software.intel.com/en-us/articles/raspberry-pi-4-and-intel-neural-compute-stick-2-setup and the corespondig site.

Especially the usb rules and user setting are done.

Tests are done with 

  • Benchmark app: 
    ././benchmark_app  -i /home/pi/Pictures/president_reagan-62x62.png -m ~/models/age-gender-recognition-retail-0013.xml –pp ./lib –api async -d MYRIAD
  • object_detection_sample_ssd
    ./object_detection_sample_ssd  -i /home/pi/Pictures/PNGs-Von-723/frame_0001.jpg -m ~/models/frozen_inference_graph.xml  -d MYRIAD

Output from the last:
(cv) pi@raspberrypi:~/OpenVINO/dldt/inference-engine/bin/armv7l/Release $ ./object_detection_sample_ssd  -i /home/pi/Pictures/PNGs-Von-723/frame_0001.jpg -m ~/models/frozen_inference_graph.xml  -d MYRIAD
[ INFO ] InferenceEngine: 
    API version ............ 2.1
    Build .................. custom_2019_b0c5accaf8e0c0fac17aaef688478d7f391d05bb
    Description ....... API
Parsing input parameters
[ INFO ] Files were added: 1
[ INFO ]     /home/pi/Pictures/PNGs-Von-723/frame_0001.jpg
[ INFO ] Loading Inference Engine
[ INFO ] Device info: 
    MYRIAD
    myriadPlugin version ......... 2.1
    Build ........... custom_2019_b0c5accaf8e0c0fac17aaef688478d7f391d05bb
[ INFO ] Loading network files:
    /home/pi/models/frozen_inference_graph.xml
    /home/pi/models/frozen_inference_graph.bin
[ INFO ] Preparing input blobs
[ INFO ] Batch size is 1
[ INFO ] Preparing output blobs
[ INFO ] Loading model to the device
E: [ncAPI] [    599854] [object_detectio] ncDeviceOpen:859    Device doesn't appear after boot
[ ERROR ] Can not init Myriad device: NC_ERROR
 

Thanks in advance for any hints

JesusE_Intel
Moderator
3,117 Views

Hi Georg,

Could you provide the content of the /etc/udev/rules.d/*myriad-usbboot.rules? Also, it looks like you built OpenVINO from source, could you try using the pre-built package?

Please follow these instructions and download the following OpenVINO toolkit for Raspbian OS package.

https://download.01.org/opencv/2019/openvinotoolkit/R3/l_openvino_toolkit_runtime_raspbian_p_2019.3....

Regards,

Jesus

Yuri_Tkachov
Beginner
3,117 Views

I get the same error with INCS2 on Windows 10 without any virtual boxes. To tell the truth, it works properly from time to time. But in some condition it happens and then nothing helps, including driver re-installation, system reboot, NOTHING. And after some valuable amount of time it works again!

Windows 10

OpenVINO 2020.1 (and OpenVINO2019.3 as well)

INCS2

When INCS2 is recognized by system as Movidius MyriadX among Universal Serial Bus devices output of object_detection_demo_ssd_async.exe looks like this:

InferenceEngine: 00007FF8D48CB740                                                                                                                                                         
[ INFO ] Parsing input parameters                                                                                                                                                         
[ INFO ] Reading input                                                                                                                                                                    
MFX: Can't initialize session
[ INFO ] Loading Inference Engine
[ INFO ] Device info: 
    MYRIAD
    myriadPlugin version ......... 2.1
    Build ........... 37988
[ INFO ] Loading network files
[ INFO ] Batch size is forced to  1.
[ INFO ] Checking that the inputs are as the demo expects
[ INFO ] Checking that the outputs are as the demo expects
[ INFO ] Loading model to the device
<[35mE: [ncAPI] [         0] [] ncDeviceOpen:1012       Failed to find booted device after boot<[0m                                                                                       
[ ERROR ] Can not init Myriad device: NC_ERROR

 

While loading model to the device Windows notification appears that said:

The last USB device you connected to this computer malfunctioned, and Windows does not recogize it. 

Recommendation: Try reconnecting the device. If Windows still does not recognize it, your device may not be working properly.

After that device is shown in Device Manager as WinUsb Device.

demo output looks like this:

InferenceEngine: 00007FF8D40FB740
[ INFO ] Parsing input parameters
[ INFO ] Reading input
MFX: Can't initialize session
[ INFO ] Loading Inference Engine
[ INFO ] Device info: 
    MYRIAD
    myriadPlugin version ......... 2.1
    Build ........... 37988
[ INFO ] Loading network files
[ INFO ] Batch size is forced to  1.
[ INFO ] Checking that the inputs are as the demo expects
[ INFO ] Checking that the outputs are as the demo expects
[ INFO ] Loading model to the device
[ ERROR ] Can not init Myriad device: NC_ERROR 

 

3,117 Views

Hi, I would need your help, on the same NC_ERROR issue I am facing, when using OpenVINO DL Workbench. I strictly followed the docker install procedure (https://docs.openvinotoolkit.org/latest/_docs_Workbench_DG_Install_from_Docker_Hub.html). Then, from the UI, after having imported the model and the data and selected the Myriad environment, the inference stops at 23% with the following error messge: "Can not init Myriad device: NC_ERROR". But it works using the CPU environment.

Any Idea?

Thanks in advance.

Ileni__Tudor
Beginner
3,117 Views

hi all,

I have the same problem when running the samples on Ubuntu 18.04 (in both VM and non-VM environment).

I worked to run the sample on CPU and GPU, but not with MYRIAD.

I managed to set the USB rules as:

SUBSYSTEM=="usb", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0660", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="2485", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0660", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="f63b", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0660", ENV{ID_MM_DEVICE_IGNORE}="1"

but the same error occurs:  "Can not init Myriad device: NC_ERROR".

The solution was to set my_user's primary group to the users group.

I use the following command: newgrp users.

Hope will work four you too.

N__Gautham
Beginner
3,117 Views

Hi All,

I have a similar issue with NCS-2 Connectivity, details:

Os- windows 10

model- ResNet-50
I was able to optimize it and got results when running through CPU and NCS-2.

But when NCS-2 is left connected to the system for while without inferencing and try to inference after few minutes it disconnects and throws the error as

"E: [ncAPI] [         0] [] ncDeviceOpen:859     Device doesn't appear after boot" 

And it takes a few minutes to reconnect and give the results.

So, Please suggest me some solution.

 

3,117 Views

I'm happy to see that I'm not the only one facing this issue. Interesting to know if anyone solved it.

3,117 Views

HI IIeni, I am running openvino dl workbench UI through a docker container. I tested with the docker run option "--user openvino:users" but I get an error when starting the container ( could not access private key file "/etc/ssl/private/ssl-cert-snakeoil.key": Permission denied ). It seems that setting primary group to users does not give enough access rights.

++

Ileni, Tudor wrote:

hi all,

I have the same problem when running the samples on Ubuntu 18.04 (in both VM and non-VM environment).

I worked to run the sample on CPU and GPU, but not with MYRIAD.

I managed to set the USB rules as:

SUBSYSTEM=="usb", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0660", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="2485", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0660", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="f63b", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0660", ENV{ID_MM_DEVICE_IGNORE}="1"

but the same error occurs:  "Can not init Myriad device: NC_ERROR".

The solution was to set my_user's primary group to the users group.

I use the following command: newgrp users.

Hope will work four you too.

3,117 Views

Still encountering the same issue with the lastest workbench UI version 1.0.2859.4692d612.  Still got "Can not init Myriad device: NC_ERROR" using the VPU... but it works well using the CPU (at the inference stage)

Here is the log :

app.error.job_error.CompoundInferenceError: [ ERROR ] Can not init Myriad device: NC_ERROR
[2020-05-20 09:57:03,779: INFO/ForkPoolWorker-5] emitting event "events" to all [/feed]
01bbb6ea77d740fb97eafbaf907737f3: Sending packet MESSAGE data 2/feed,["events",{"code":4002,"message":"[ ERROR ] Can not init Myriad device: NC_ERROR","details":""}]
[2020-05-20 09:57:03,905: INFO/ForkPoolWorker-5] emitting event "inference_model" to all [/inference_model]
01bbb6ea77d740fb97eafbaf907737f3: Sending packet MESSAGE data 2/inference_model,["inference_model",{"creationTimestamp":1589968607.23931,"jobId":6,"type":"SingleInferenceJob","config":{"modelId":2,"datasetId":3,"deviceId":2,"batch":1,"nireq":2,"inferenceTime":20.0,"previousJobId":null},"result":[{"execInfo":{"nireq":2,"batch":1,"latency":null,"throughput":null,"totalExecutionTime":null}}],"projectId":2,"originalModelId":2,"inferenceResultId":2,"status":{"progress":27.0,"name":"error","errorMessage":"[ ERROR ] Can not init Myriad device: NC_ERROR"}}]
[2020-05-20 09:57:04,080: ERROR/ForkPoolWorker-5] Task app.main.tasks.task.Task[45043d69-6e47-49d9-97db-76ffa4157990] raised unexpected: GeneralError('[ ERROR ] Can not init Myriad device: NC_ERROR',)
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/celery/app/trace.py", line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/celery/app/trace.py", line 648, in __protected_call__
    return self.run(*args, **kwargs)
  File "/opt/intel/openvino_2020.2.120/deployment_tools/tools/workbench/app/main/tasks/task.py", line 54, in run
    self.job.run()
  File "/opt/intel/openvino_2020.2.120/deployment_tools/tools/workbench/app/main/jobs/single_inference/single_inference_job.py", line 77, in run
    self.run_benchmark_app(parameters, parser)
  File "/opt/intel/openvino_2020.2.120/deployment_tools/tools/workbench/app/main/jobs/single_inference/single_inference_job.py", line 115, in run_benchmark_app
    return_code, message = run_console_tool(parameters, parser, self, measure_performance=True)
  File "/opt/intel/openvino_2020.2.120/deployment_tools/tools/workbench/app/main/jobs/tools_runner/runner.py", line 75, in run_console_tool
    parser.parse(output.strip())
  File "/opt/intel/openvino_2020.2.120/deployment_tools/tools/workbench/app/main/console_tool_wrapper/benchmark_app/console_output_parser.py", line 48, in parse
    raise CompoundInferenceError(string, self.emit_message.job_id)
app.error.general_error.GeneralError: [ ERROR ] Can not init Myriad device: NC_ERROR
[2020-05-20 09:57:06,714: DEBUG/MainProcess] heartbeat_tick : for connection 82be60ca2edb4f2798322a23429d2bbb
[2020-05-20 09:57:06,714: DEBUG/MainProcess] heartbeat_tick : Prev sent/recv: 34/616, now - 36/649, monotonic - 162229.495735012, last_heartbeat_sent - 162229.495731296, heartbeat int. - 60 for connection 82be60ca2edb4f2798322a23429d2bbb

 

 

owaisali
Novice
1,713 Views

kindly if you can guide me i am having this error in windows 10

Reply