RidgeRun / gst-inference

A GStreamer Deep Learning Inference Framework
GNU Lesser General Public License v2.1
119 stars 29 forks source link

Segmentation fault of gst-inference on Mac OSX Catalina #306

Open m-k8s opened 4 years ago

m-k8s commented 4 years ago

When I run the command gst-inspect-1.0 inference, I get this error:

No "inference" element or plugin

And when I try a gst-inspect-1.0/usr/local/lib/gstreamer-1.0/libgstinference.so, I have a" segmentation fault ":

(process:57511): GLib-GObject-CRITICAL **: 10:31:44.927: g_param_spec_boxed: assertion 'G_TYPE_IS_BOXED (boxed_type)' failed
(process:57511): GLib-GObject-CRITICAL **: 10:31:44.927: validate_pspec_to_install: assertion 'G_IS_PARAM_SPEC (pspec)' failed
(process:57511): GLib-GObject-CRITICAL **: 10:31:44.927: g_object_new_is_valid_property: object class 'GstPadTemplate' has no property named 'caps'
(process:57511): GLib-GObject-CRITICAL **: 10:31:44.927: g_object_new_is_valid_property: object class 'GstPadTemplate' has no property named 'caps'

Segmentation fault: 11

r2inference is well compiled and installed, I checked with the r2i_verify test:

r2i_verify.cc:

#include <iostream>
#include <r2i/r2i.h>

void PrintFramework (r2i::FrameworkMeta &meta) {
  std::cout << "Name        : " << meta.name << std::endl;
  std::cout << "Description : " << meta.description << std::endl;
  std::cout << "Version     : " << meta.version << std::endl;
  std::cout << "---" << std::endl;
}

int main (int argc, char *argv[]) {
  r2i::RuntimeError error;

  std::cout << "Backends supported by your system:" << std::endl;
  std::cout << "==================================" << std::endl;

  for (auto &meta : r2i::IFrameworkFactory::List (error)) {
    PrintFramework (meta);
  }

  return 0;
}

Execution result:

Backends supported by your system:
==================================
Name        : Tensorflow
Description : Google's TensorFlow
Version     : 2.2.0
---

I am using version 1.16.1 of GStreamer: gst-inspect-1.0 --version

gst-inspect-1.0 version 1.16.1
GStreamer 1.16.1
Unknown package origin

No module blacklisted: gst-inspect-1.0 -b

Blacklisted files:
Total number: 0 blacklisted file

My operating system is Mac OSX Catalina 10.15.5

I specify that I followed the following documentation:

R2Inference - Building the library

Building the GstInference plugin

I wonder if gst-inference works on Mac OSX?

I tested under Ubuntu with the same procedure and it works correctly

Do you have an idea ?