shivasiddharth / GassistPi

Google Assistant for Single Board Computers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fatal Python error: Segmentation fault Thread 0xb6fde7c0 (most recent call first): File "/home/volumio/env/lib/python3.7/site-packages/google/assistant/library/assistant.py", line 119 in __exit__ File "/home/volumio/GassistPi/src/main.py", line 294 in main File "/home/volumio/GassistPi/src/main.py", line 298 in <module> Segmentation fault

JAVAB3ANS opened this issue Β· comments

IMPORTANT NOTICE
If you do not complete the template below it is likely that your issue will not be addressed. When providing information about your issue please be as extensive as possible so that it can be solved by as little as possible responses.

FAILURE TO COMPLETE THE REQUESTED INFORMATION WILL RESULT IN YOUR ISSUE BEING CLOSED

Which branch of GassistPi are you using ? volumio

Board and OS details:

Open a terminal and run

cat /proc/cpuinfo  
cat /etc/os-release  
cat /etc/rpi-issue
Paste your Board and OS details here.   
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
VOLUMIO_BUILD_VERSION="1c5fa5a8788b087ca429be9d10851b25c5cc4f5b"
VOLUMIO_FE_VERSION="e5ce74e254a237ac98580c4437c4ed223c7d5cd9"
VOLUMIO_FE3_VERSION="a86adf3c7ed2d6c50d9bca768f58ab2f56832dc1"
VOLUMIO_BE_VERSION="c8882d89d3d4e0a1571e0dc9701741128f5a1656"
VOLUMIO_ARCH="arm"
VOLUMIO_VARIANT="volumio"
VOLUMIO_TEST="FALSE"
VOLUMIO_BUILD_DATE="Thu 31 Mar 2022 02:51:41 PM CEST"
VOLUMIO_VERSION="3.251"
VOLUMIO_HARDWARE="pi"
VOLUMIO_DEVICENAME="Raspberry Pi"
VOLUMIO_HASH="e83cc5fcd68eb3ee4105ab0b8b3779ea"
processor       : 0
model name      : ARMv7 Processor rev 3 (v7l)
BogoMIPS        : 270.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
volumio@volumio:~$ HOME_URL="http://www.raspbian.org/"
volumio@volumio:~$ SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
volumio@volumio:~$ BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

volumio@volumio:~$ VOLUMIO_BUILD_VERSION="1c5fa5a8788b087ca429be9d10851b25c5cc4f5b"
volumio@volumio:~$ VOLUMIO_FE_VERSION="e5ce74e254a237ac98580c4437c4ed223c7d5cd9"
volumio@volumio:~$ VOLUMIO_FE3_VERSION="a86adf3c7ed2d6c50d9bca768f58ab2f56832dc1"
volumio@volumio:~$ VOLUMIO_BE_VERSION="c8882d89d3d4e0a1571e0dc9701741128f5a1656"
volumio@volumio:~$ VOLUMIO_ARCH="arm"
volumio@volumio:~$ VOLUMIO_VARIANT="volumio"
volumio@volumio:~$ VOLUMIO_TEST="FALSE"
volumio@volumio:~$ VOLUMIO_BUILD_DATE="Thu 31 Mar 2022 02:51:41 PM CEST"
volumio@volumio:~$ VOLUMIO_VERSION="3.251"
volumio@volumio:~$ VOLUMIO_HARDWARE="pi"
volumio@volumio:~$ VOLUMIO_DEVICENAME="Raspberry Pi"
volumio@volumio:~$ VOLUMIO_HASH="e83cc5fcd68eb3ee4105ab0b8b3779ea"
volumio@volumio:~$ volumio@volumio:~$ cat /etc/rpi-issue
-bash: volumio@volumio:~$: command not found
volumio@volumio:~$ cat: /etc/rpi-issue: No such file or directory
-bash: cat:: command not found
volumio@volumio:~$ volumio@volumio:~$ ```^C^C
> volumio@volumio:~$ cat /proc/cpuinfo
> processor       : 0
> model name      : ARMv7 Processor rev 3 (v7l)
> BogoMIPS        : 270.00
> Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
> CPU implementer : 0x41
> CPU architecture: 7
> CPU variant     : 0x0
> CPU part        : 0xd08
> CPU revision    : 3
>
> processor       : 1
> model name      : ARMv7 Processor rev 3 (v7l)
> BogoMIPS        : 270.00
> Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
> CPU implementer : 0x41
> CPU architecture: 7
> CPU variant     : 0x0
> CPU part        : 0xd08
> CPU revision    : 3
>
> processor       : 2
> model name      : ARMv7 Processor rev 3 (v7l)
> BogoMIPS        : 270.00
> Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
> CPU implementer : 0x41
> CPU architecture: 7
> CPU variant     : 0x0
> CPU part        : 0xd08
> CPU revision    : 3
>
> processor       : 3
> model name      : ARMv7 Processor rev 3 (v7l)
> BogoMIPS        : 270.00
> Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
> CPU implementer : 0x41
> CPU architecture: 7
> CPU variant     : 0x0
> CPU part        : 0xd08
> CPU revision    : 3
>
> Hardware        : BCM2711
> Revision        : c03112
> Serial          : 100000004a70973b
> Model           : Raspberry Pi 4 Model B Rev 1.2
> cat /etc/os-release  ^C
volumio@volumio:~$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
VOLUMIO_BUILD_VERSION="1c5fa5a8788b087ca429be9d10851b25c5cc4f5b"
VOLUMIO_FE_VERSION="e5ce74e254a237ac98580c4437c4ed223c7d5cd9"
VOLUMIO_FE3_VERSION="a86adf3c7ed2d6c50d9bca768f58ab2f56832dc1"
VOLUMIO_BE_VERSION="c8882d89d3d4e0a1571e0dc9701741128f5a1656"
VOLUMIO_ARCH="arm"
VOLUMIO_VARIANT="volumio"
VOLUMIO_TEST="FALSE"
VOLUMIO_BUILD_DATE="Thu 31 Mar 2022 02:51:41 PM CEST"
VOLUMIO_VERSION="3.251"
VOLUMIO_HARDWARE="pi"
VOLUMIO_DEVICENAME="Raspberry Pi"
VOLUMIO_HASH="e83cc5fcd68eb3ee4105ab0b8b3779ea"

Describe the bug:


I don't know why I get "Fatal Python error: Segmentation fault" after just saying a couple of commands to my Google Home Assistant SDK.

Did you go through or search the issues section to check if your issue was already discussed (either currently open issues or closed issues)?

Yes

2. Is the issue related to assistant installation ?

No

If answer to question 2 is Yes, then attach the contents of terminal as a file or paste it below.


If answer to question 2 is No, then proceed further.

3. Does the assistant service start normally?

Yes

4. Is the assistant service restarting automatically?

No

If answer to question 4 is Yes, then paste the contents of the terminal below.


If answer to question 4 is No, then proceed further.

Manually start the assistant. For guidelines to start the assistant manually refer this

Paste the command below, that crashed the assistant

ON_MUTED_CHANGED:
  {"is_muted": false}

ON_START_FINISHED

ON_MEDIA_STATE_IDLE

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "how you doing"}

ON_RENDER_RESPONSE:
  {"text": "I'm good! What's up with you?", "type": 0}

{'text': "I'm good! What's up with you?", 'type': <RenderResponseType.TEXT: 0>}
ON_RESPONDING_STARTED:
  {"is_error_response": false}

{'is_error_response': False}
ON_RESPONDING_FINISHED

None
ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": true}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "not much"}

ON_RENDER_RESPONSE:
  {"text": "Nice to have some free time. Want a boredom buster?", "type": 0}

{'text': 'Nice to have some free time. Want a boredom buster?', 'type': <RenderResponseType.TEXT: 0>}
ON_RESPONDING_STARTED:
  {"is_error_response": false}

{'is_error_response': False}
ON_RESPONDING_FINISHED

None
ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": true}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "yeah I do"}

ON_RENDER_RESPONSE:
  {"text": "Can you try saying that again in a different way?", "type": 0}

{'text': 'Can you try saying that again in a different way?', 'type': <RenderResponseType.TEXT: 0>}
ON_RESPONDING_STARTED:
  {"is_error_response": false}

{'is_error_response': False}
ON_RENDER_RESPONSE:
  {"text": "I don't understand", "type": 0}

{'text': "I don't understand", 'type': <RenderResponseType.TEXT: 0>}
ON_RESPONDING_FINISHED

None
ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": true}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "yeah I want to be entertained"}

ON_RENDER_RESPONSE:
  {"text": "That’s like asking me to show off 😜", "type": 0}

{'text': 'That’s like asking me to show off 😜', 'type': <RenderResponseType.TEXT: 0>}
ON_RENDER_RESPONSE:
{
  "text": "Here are two suggestions: I can tell you an arguably funny joke, or give you a genuine compliment. What do you prefer, a joke or a compliment?",
  "type": 0
}

{'text': 'Here are two suggestions: I can tell you an arguably funny joke, or give you a genuine compliment. What do you prefer, a joke or a compliment?', 'type': <RenderResponseType.TEXT: 0>}
ON_RESPONDING_STARTED:
  {"is_error_response": false}

{'is_error_response': False}
ON_RESPONDING_FINISHED

None
ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": true}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "I'd like a compliment"}

ON_RENDER_RESPONSE:
  {"text": "You're more valuable and shiny than gold", "type": 0}

{'text': "You're more valuable and shiny than gold", 'type': <RenderResponseType.TEXT: 0>}
ON_RENDER_RESPONSE:
  {"text": "You're way cuter, too πŸ˜€", "type": 0}

{'text': "You're way cuter, too πŸ˜€", 'type': <RenderResponseType.TEXT: 0>}
ON_RESPONDING_STARTED:
  {"is_error_response": false}

{'is_error_response': False}
ON_RENDER_RESPONSE:
  {"text": "There's so much I could say about you 🌻", "type": 0}

{'text': "There's so much I could say about you 🌻", 'type': <RenderResponseType.TEXT: 0>}
ON_RENDER_RESPONSE:
  {"text": "Can I give you another compliment?", "type": 0}

{'text': 'Can I give you another compliment?', 'type': <RenderResponseType.TEXT: 0>}
ON_RESPONDING_FINISHED

None
ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": true}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "sure thing"}

ON_RENDER_RESPONSE:
  {"text": "Sorry, I didn't understand πŸ˜•", "type": 0}

{'text': "Sorry, I didn't understand πŸ˜•", 'type': <RenderResponseType.TEXT: 0>}
ON_RENDER_RESPONSE:
  {"text": "Would you like another compliment?", "type": 0}

{'text': 'Would you like another compliment?', 'type': <RenderResponseType.TEXT: 0>}
ON_RESPONDING_STARTED:
  {"is_error_response": false}

{'is_error_response': False}
ON_RESPONDING_FINISHED

None
ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": true}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "I like another compliment"}

ON_RENDER_RESPONSE:
{
  "text": "That's like asking me to compliment the most wonderful, intelligent, perfect person in the universe",
  "type": 0
}

{'text': "That's like asking me to compliment the most wonderful, intelligent, perfect person in the universe", 'type': <RenderResponseType.TEXT: 0>}
ON_RENDER_RESPONSE:
  {"text": "See what I did there? πŸ˜‰", "type": 0}

{'text': 'See what I did there? πŸ˜‰', 'type': <RenderResponseType.TEXT: 0>}
ON_RESPONDING_STARTED:
  {"is_error_response": false}

{'is_error_response': False}
ON_RENDER_RESPONSE:
  {"text": "I’m in the business of boosting your ego today 😎", "type": 0}

{'text': 'I’m in the business of boosting your ego today 😎', 'type': <RenderResponseType.TEXT: 0>}
ON_RENDER_RESPONSE:
  {"text": "Do you want another compliment?", "type": 0}

{'text': 'Do you want another compliment?', 'type': <RenderResponseType.TEXT: 0>}
ON_RESPONDING_FINISHED

None
ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": true}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "I think I'm good for now thank you so much"}

ON_RENDER_RESPONSE:
  {"text": "Sorry, I didn't understand πŸ˜•", "type": 0}

{'text': "Sorry, I didn't understand πŸ˜•", 'type': <RenderResponseType.TEXT: 0>}
ON_RESPONDING_STARTED:
  {"is_error_response": false}

{'is_error_response': False}
ON_RENDER_RESPONSE:
  {"text": "Would you like another compliment?", "type": 0}

{'text': 'Would you like another compliment?', 'type': <RenderResponseType.TEXT: 0>}
ON_RESPONDING_FINISHED

None
ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": true}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "no I think I'm good"}

ON_RENDER_RESPONSE:
  {"text": "Bummer, I still didn't understand", "type": 0}

{'text': "Bummer, I still didn't understand", 'type': <RenderResponseType.TEXT: 0>}
ON_RENDER_RESPONSE:
  {"text": "But I'll be here if you need me πŸ‘‹", "type": 0}

{'text': "But I'll be here if you need me πŸ‘‹", 'type': <RenderResponseType.TEXT: 0>}
ON_RESPONDING_STARTED:
  {"is_error_response": false}

{'is_error_response': False}
ON_RESPONDING_FINISHED

None
ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": false}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "set volume 20"}

ON_RESPONDING_STARTED:
  {"is_error_response": false}

{'is_error_response': False}
ON_RESPONDING_FINISHED

None
ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": true}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "0"}

ON_RENDER_RESPONSE:
  {"text": "Sorry, I still don't understand", "type": 0}

{'text': "Sorry, I still don't understand", 'type': <RenderResponseType.TEXT: 0>}
ON_RENDER_RESPONSE:
  {"text": "You can send feedback if you want", "type": 0}

{'text': 'You can send feedback if you want', 'type': <RenderResponseType.TEXT: 0>}
ON_RESPONDING_STARTED:
  {"is_error_response": false}

{'is_error_response': False}
ON_RESPONDING_FINISHED

None
ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": false}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "play music"}

ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": false}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "play music"}

ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": false}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "set speaker volume to 0"}

ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": false}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "okay Google set speaker volume to 100"}

ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": false}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "play music"}

ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": false}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "what is Pink Floyd"}

ON_RENDER_RESPONSE:
{
  "text": "According to Wikipedia: Pink Floyd were an English rock band formed in London in 1965. Gaining an early following as one of the first British psychedelic groups, they were distinguished for their extended compositions, sonic experimentation, philosophical lyrics and elaborate live shows.",
  "type": 0
}

{'text': 'According to Wikipedia: Pink Floyd were an English rock band formed in London in 1965. Gaining an early following as one of the first British psychedelic groups, they were distinguished for their extended compositions, sonic experimentation, philosophical lyrics and elaborate live shows.', 'type': <RenderResponseType.TEXT: 0>}
ON_RESPONDING_STARTED:
  {"is_error_response": false}

{'is_error_response': False}
ON_RESPONDING_FINISHED

None
ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": false}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "set the controls for the heart of the Sun"}

ON_RESPONDING_STARTED:
  {"is_error_response": false}

{'is_error_response': False}
ON_RESPONDING_FINISHED

None
ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": false}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "set volume to -0"}

ON_RESPONDING_STARTED:
  {"is_error_response": false}

{'is_error_response': False}
ON_RESPONDING_FINISHED

None
ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": false}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "set volume to 70"}

ON_RESPONDING_STARTED:
  {"is_error_response": false}

{'is_error_response': False}
ON_RENDER_RESPONSE:
{
  "text": "Sorry, the max volume is only 10. So, what level do you want to set it to?",
  "type": 0
}

{'text': 'Sorry, the max volume is only 10. So, what level do you want to set it to?', 'type': <RenderResponseType.TEXT: 0>}
ON_RESPONDING_FINISHED

None
ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": true}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": ""}

ON_NO_RESPONSE

ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": false}

ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "speaker volume Five"}

Paste the contents of the terminal below

 Fatal Python error: Segmentation fault  
 
 Thread 0xb6fde7c0 (most recent call first):   
 
 File "/home/volumio/env/lib/python3.7/site-packages/google/assistant/library/assistant.py", line 119 in __exit__   File "/home/volumio/GassistPi/src/main.py", line 294 in main   File "/home/volumio/GassistPi/src/main.py", line 298 in <module> Segmentation fault