example-object-tracker icon indicating copy to clipboard operation
example-object-tracker copied to clipboard

Segmentation Fault during GStreamer Pipeline

Open hall488 opened this issue 3 years ago • 3 comments

Description

I am not completely sure what is going on here. I am unexperienced with the Coral AI Board. It seems that there is a segmentation fault while trying to setup the GStreamer Pipeline.

Click to expand!

Issue Type

Build/Install

Operating System

Windows 10, Mendel Linux

Coral Device

Dev Board

Other Devices

No response

Programming Language

Python 3.7

Relevant Log Output

<e-coral/example-object-tracker/gstreamer$ python3 detect.py
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Loading ../models/mobilenet_ssd_v2_coco_quant_postprocess_edgetpu.tflite with ../models/coco_l
abels.txt labels.
Detected Edge TPU dev board.
Gstreamer pipeline:
 v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480,framerate=30/1 ! decodebin ! gl
upload ! tee name=t
            t. ! queue ! glfilterbin filter=glbox name=glbox ! video/x-raw,format=RGB,width=30
0,height=300 ! appsink name=appsink emit-signals=true max-buffers=1 drop=true
            t. ! queue ! glsvgoverlaysink name=overlaysink


(detect.py:7609): Gtk-←[1;35mCRITICAL←[0m **: ←[34m19:19:22.005←[0m: _gtk_style_provider_priva
te_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(detect.py:7609): Gtk-←[1;35mCRITICAL←[0m **: ←[34m19:19:22.006←[0m: _gtk_style_provider_priva
te_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(detect.py:7609): Gtk-←[1;35mCRITICAL←[0m **: ←[34m19:19:22.006←[0m: _gtk_style_provider_priva
te_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
Segmentation fault
mendel@elusive-mole:~/google-coral/example-object-tracker/gstreamer$

hall488 avatar Mar 08 '22 19:03 hall488

can you please share the output of below commands:

mendel@undefined-apple:~$ uname -r
4.14.98-imx
mendel@undefined-apple:~$ cat /etc/mendel_version
5.3
Python 3.9.7 (default, Sep  3 2021, 06:18:44) 
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tflite_runtime as tflite
>>> import pycoral
>>> from pycoral.utils.edgetpu import get_runtime_version
>>> get_runtime_version()
'BuildLabel(COMPILER=6.3.0 20170516,DATE=redacted,TIME=redacted), RuntimeVersion(14)'
>>> tflite.__version__
'2.5.0.post1'
>>> pycoral.__version__
'2.0.0'
>>> 

hjonnala avatar Mar 08 '22 20:03 hjonnala

mendel@elusive-mole:~$ uname -r
4.14.98-imx
mendel@elusive-mole:~$ cat /etc/mendel_version
5.3
mendel@elusive-mole:~$
mendel@elusive-mole:~$ python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tflite_runtime as tflite
>>> import pycoral
>>> from pycoral.utils.edgetpu import get_runtime_version
>>> get_runtime_version()
'BuildLabel(COMPILER=6.3.0 20170516,DATE=redacted,TIME=redacted), RuntimeVersion(14)'
>>> tflite.__version__
'2.5.0.post1'
>>> pycoral.__version__
'2.0.0'

hall488 avatar Mar 09 '22 18:03 hall488

<e-coral/example-object-tracker/gstreamer$ python3 detect.py
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Loading ../models/mobilenet_ssd_v2_coco_quant_postprocess_edgetpu.tflite with ../models/coco_l
abels.txt labels.
Detected Edge TPU dev board.
Gstreamer pipeline:
 v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480,framerate=30/1 ! decodebin ! gl
upload ! tee name=t
            t. ! queue ! glfilterbin filter=glbox name=glbox ! video/x-raw,format=RGB,width=30
0,height=300 ! appsink name=appsink emit-signals=true max-buffers=1 drop=true
            t. ! queue ! glsvgoverlaysink name=overlaysink


(detect.py:7609): Gtk-←[1;35mCRITICAL←[0m **: ←[34m19:19:22.005←[0m: _gtk_style_provider_priva
te_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(detect.py:7609): Gtk-←[1;35mCRITICAL←[0m **: ←[34m19:19:22.006←[0m: _gtk_style_provider_priva
te_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(detect.py:7609): Gtk-←[1;35mCRITICAL←[0m **: ←[34m19:19:22.006←[0m: _gtk_style_provider_priva
te_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
Segmentation fault
mendel@elusive-mole:~/google-coral/example-object-tracker/gstreamer$

The issue is due to improper HDMI connection. Have you connected the board to the HDMI monitor?

hjonnala avatar Jun 28 '22 21:06 hjonnala