Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Segmentation Fault (core dumped) in Python 2 and Python 3 #327

@RubensZimbres

Description

@RubensZimbres

I was successfully able to run a customized hotword.py notebook in Ubuntu 16.04 and also in a Raspberry Pi3, where I added:

if event.type == EventType.ON_RECOGNIZING_SPEECH_FINISHED:  
    if event.args['text'].lower()=='suspend':  
        print('Speech Recognized')  
        os.system('systemctl suspend')  

However, at home in my other Ubuntu 16.04, I get the following output:

device-model-id home-ABC12345
device_id: ABCDE12345

Fatal Python error: Segmentation fault

Thread 0x00007f6070a63700 (most recent call first):
File "/usr/lib/python2.7/threading.py", line 359 in wait
File "/usr/lib/python2.7/threading.py", line 614 in wait
File "/usr/lib/python2.7/threading.py", line 1071 in run
File "/usr/lib/python2.7/threading.py", line 801 in __bootstrap_inner
File "/usr/lib/python2.7/threading.py", line 774 in __bootstrap

Current thread 0x00007f608053f700 (most recent call first):
File "/home/theone/.local/lib/python2.7/site-packages/google/assistant/library/assistant.py", line 114 in exit
File "hotword.py", line 139 in main
File "hotword.py", line 143 in
Segmentation fault (core dumped)

Previously, I had the same problem - Segmentation fault (core dumped) with Spyder, that would only open with a specific PyQt5 version.

However, it is quite complex to map / try all dependencies of google-assistant and their versions for compatibility. It seems it depends upon the version of libraries installed, for instance, with Anaconda.

Here are my libraries from pip list -l:

Arpeggio (1.9.0)
asn1crypto (0.24.0)
cachetools (3.1.0)
certifi (2018.11.29)
cffi (1.12.1)
chardet (3.0.4)
click (6.7)
cryptography (2.5)
enum34 (1.1.6)
faulthandler (3.1)
futures (3.2.0)
gdb-tools (1.2)
google-assistant-grpc (0.2.1)
google-assistant-library (1.0.0)
google-assistant-sdk (0.5.1)
google-auth (1.6.3)
google-auth-oauthlib (0.2.0)
googleapis-common-protos (1.5.8)
grpcio (1.18.0)
idna (2.8)
ipaddress (1.0.22)
monotonic (1.5)
oauthlib (3.0.1)
pathlib (1.0.1)
pathlib2 (2.3.3)
protobuf (3.6.1)
pyasn1 (0.4.5)
pyasn1-modules (0.2.4)
pycparser (2.19)
pyOpenSSL (19.0.0)
requests (2.21.0)
requests-oauthlib (1.2.0)
rsa (4.0)
scandir (1.9.0)
setuptools (40.8.0)
six (1.12.0)
sounddevice (0.3.12)
tenacity (4.12.0)
urllib3 (1.24.1)

For Python 3 I get:

device-model-id home-ABC12345
device_id: ABCDE12345

Fatal Python error: Segmentation fault

Current thread 0x00007fb35a611700 (most recent call first):
File "/home/theone/.local/lib/python3.5/site-packages/google/assistant/library/assistant.py", line 114 in exit
File "hotword_OK.py", line 139 in main
File "hotword_OK.py", line 143 in
Segmentation fault (core dumped)

Any suggestions ? ulimit adjustment didn't solve the problem. I can run 'systemctl suspend' and 'reboot' using voice, but when I try 'scrot' it aborts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions