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 during GStreamer Pipeline #15

Open
hall488 opened this issue Mar 8, 2022 · 3 comments
Open

Segmentation Fault during GStreamer Pipeline #15

hall488 opened this issue Mar 8, 2022 · 3 comments
Assignees
Labels
comp:model Model related isssues Hardware:Dev Board Coral Dev Board issues subtype:Mendel Linux Mendel Linux Build/installation issues subtype:windows Windos Build/installation issues type:build/install Build and install issues

Comments

@hall488
Copy link

hall488 commented Mar 8, 2022

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$
@google-coral-bot google-coral-bot bot added comp:model Model related isssues Hardware:Dev Board Coral Dev Board issues subtype:Mendel Linux Mendel Linux Build/installation issues subtype:windows Windos Build/installation issues type:build/install Build and install issues labels Mar 8, 2022
@hjonnala
Copy link
Contributor

hjonnala commented Mar 8, 2022

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'
>>> 

@hall488
Copy link
Author

hall488 commented Mar 9, 2022

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'

@hjonnala
Copy link
Contributor

<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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:model Model related isssues Hardware:Dev Board Coral Dev Board issues subtype:Mendel Linux Mendel Linux Build/installation issues subtype:windows Windos Build/installation issues type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

2 participants