Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
m-k8s opened this issue Jun 12, 2020 · 0 comments
Open

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

m-k8s opened this issue Jun 12, 2020 · 0 comments

Comments

@m-k8s
Copy link

m-k8s commented Jun 12, 2020

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant