gst-inspect throws a Dbus error when DISPLAY is set

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

gst-inspect throws a Dbus error when DISPLAY is set

bromeara
Hi,
I am writing a gstreamer plugin for a usb camera and have been getting an error only when I run gst-inspect-1.0 while display is set as follows
$ export DISPLAY=:1
$ gst-inspect ./libgstpxlcamsrc.so
dbus[20467]: arguments to dbus_message_new_method_call() were incorrect, assertion "path != NULL" failed in file ../../../dbus/dbus-message.c line 1362.
This is normally a bug in some application using the D-Bus library.

  D-Bus not built with -rdynamic so unable to print a backtrace
Aborted (core dumped)

$ unset DISPLAY
$ gst-inspect ./libgstpxlcamsrc.so
Plugin Details:
  Name                     pxlcamsrc
  Description              Pixelink Camera Source
  Filename                 ./libgstpxlcamsrc.so
  Version                  0.0.0
  License                  LGPL
  Source module            pixelink
  Binary package           pxlcamerasrc
  Origin URL               -

  pxlcamsrc: Pixelink Camera Source

  1 features:
  +-- 1 elements

My version is 1.14.5 which I am locked to since I am on an Nvidia Jetson TX2 and their gstreamer plugins are build for 1.14.5 Which is also how I found out that it only breaks when DISPLAY is set since I mostly develop from an ssh terminal where it was running fine but when I tried hooking up a monitor to see the output it broke. Also, I have tried this from an SSH session with DISPLAY set manually and on the desktop with DISPLAY and all other envs auto-populated to the same effect. gst-inspect for other plugins work fine with both configurations.

Will this DBus error effect my plugin when I run it? since I'm still debugging the plugin I need to be able to figure out where the system errors begin and the plugin specific errors begin.

Also when I went to run gst-inspect-1.0 --version to get my version for this thread I got the following output.

$gst-inspect --version
dbus[25480]: arguments to dbus_message_new_method_call() were incorrect, assertion "path != NULL" failed in file ../../../dbus/dbus-message.c line 1362.
This is normally a bug in some application using the D-Bus library.

  D-Bus not built with -rdynamic so unable to print a backtrace
dbus[25487]: arguments to dbus_message_new_method_call() were incorrect, assertion "path != NULL" failed in file ../../../dbus/dbus-message.c line 1362.
This is normally a bug in some application using the D-Bus library.

  D-Bus not built with -rdynamic so unable to print a backtrace
0:00:02.311475042 25479   0x55ae588870 ERROR     GST_PLUGIN_LOADING gstpluginloader.c:277:plugin_loader_replay_pending: Plugin file /media/SD/Repositories/gst-pixelink/build/libgstpxlcamsrc.so failed to load. Blacklisting
gst-inspect-1.0 version 1.14.5
GStreamer 1.14.5
https://launchpad.net/distros/ubuntu/+source/gstreamer1.0
I'm not really sure why my plugin would cause the version call to throw errors.
I did build this manually with cmake since I couldn't figure out how to build with meson since gst-template uses it and gst-element-maker doesn't seem to but maybe I'm missing something important in the build phase. I can post code if it would be useful but I'm not sure which parts of my plugin gst-inspect-1.0 even executes.