question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Segmentation fault

See original GitHub issue

Hi,

I need to do inference on a Raspberry Pi 4B with NCS 2 using YOLO. I get the default model in IR (the xml and the bin file) before converting custom models to try, and used two demos of open_model_zoo but I always get a Segmentation fault error. Here are the outputs:

Command ./multi_channel_object_detection_demo_yolov3 -m ../../../build/frozen_darknet_yolov3_model.xml -d MYRIAD -i ../../../build/cars.mp4

Output: [ INFO ] InferenceEngine: IE version ......... 2021.4 Build ........... 0 [ INFO ] Parsing input parameters [ INFO ] Detection model: ../../../build/frozen_darknet_yolov3_model.xml [ INFO ] Detection threshold: 0.5 [ INFO ] Utilizing device: MYRIAD [ INFO ] Batch size: 1 [ INFO ] Number of infer requests: 5 [ INFO ] Model path: ../../../build/frozen_darknet_yolov3_model.xml Segmentation fault

Command ./object_detection_demo -m ../../../build/frozen_darknet_yolov3_model.xml -d MYRIAD -i ../../../build/cars.mp4 -at yolo

Output: [ INFO ] InferenceEngine: IE version ......... 2021.4 Build ........... 0 [ INFO ] Parsing input parameters [ INFO ] Reading input [ WARN:0] global ../opencv/modules/videoio/src/cap_gstreamer.cpp (1044) open OpenCV | GStreamer warning: unable to query duration of stream [ WARN:0] global ../opencv/modules/videoio/src/cap_gstreamer.cpp (1081) open OpenCV | GStreamer warning: Cannot query video position: status=1, value=0, duration=-1 [ INFO ] Loading Inference Engine [ INFO ] Device info: [ INFO ] MYRIAD myriadPlugin version ......... 2021.4 Build ........... 0 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 Segmentation fault

I don’t know what could be the error or how to fix it. If anyone knows another way to do inference with YOLO on a Raspberry with the NCS it would be also good.

Thanks in advance

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
diego-varela-seijascommented, Jul 14, 2021

Adding that made it work. Thank you!!

1reaction
alvoroncommented, Jul 14, 2021

@diego-varela-seijas could you try to add -DCMAKE_CXX_FLAGS="-march=armv7-a" to cmake command when you build OMZ demo?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Segmentation fault - Wikipedia
Segmentation faults are a common class of error in programs written in languages like C that provide low-level memory access and few to...
Read more >
c++ - What is a segmentation fault? - Stack Overflow
A segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to...
Read more >
Identify what's causing segmentation faults (segfaults)
A segmentation fault (aka segfault) is a common condition that causes programs to crash; they are often associated with a file named core...
Read more >
Core Dump (Segmentation fault) in C/C++ - GeeksforGeeks
When a piece of code tries to do read and write operation in a read only location in memory or freed block of...
Read more >
What Is a Segmentation Fault in Linux?
A segmentation fault, or segfault, is a memory error in which a program tries to access a memory address that does not exist...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found