Board index FlightGear Support Tools ATC-pie

[Crash] crash on solo mode using voice recognition  Topic is solved

ATC-pie is a radar air traffic control simulation program for the FlightGear multi-player network.

[Crash] crash on solo mode using voice recognition

Postby nocusuzo » Sat May 26, 2018 10:32 pm

I just got an crash on solo mode, the terminal output was this:

Code: Select all
Traceback (most recent call last):
  File "/home/username/atcpie/game/solo.py", line 332, in handleVoiceInstrMessage
    acft_matches = [acft for acft in self.getAircraft() if radio_callsign_match(radio_callsign_tokens, acft.identifier)]
  File "/home/username/atcpie/game/solo.py", line 332, in <listcomp>
    acft_matches = [acft for acft in self.getAircraft() if radio_callsign_match(radio_callsign_tokens, acft.identifier)]
  File "/home/username/atcpie/ext/sr.py", line 465, in radio_callsign_match
    while called != [] and called[-1] == target[-1 - tail_chars_matched]:
IndexError: string index out of range
Aborted


I also got these output before the crash:

Code: Select all
Loading aircraft & airline data... done.
Reading world navigation data... done.
Speech recognition modules loaded successfully.
Speech synthesis module loaded successfully.
Setting up session 1533-0 in AD mode at location PHNL...
No elevation map found; using field elevation.
Radar position is: 21°19'2.83''N 157°54'57.71''W
QProcess: Destroyed while process ("/home/username/atcpie/resources/fgcom/linux/fgcom") is still running.
ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Solo simulation begins.
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3,
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3,
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3,
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3,
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3,
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3,
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3,
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3,
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3,
Error: "Your GStreamer installation is missing a plug-in."
QProcess: Destroyed while process ("/home/username/atcpie/resources/fgcom/linux/fgcom") is still running.
QProcess: Destroyed while process ("/home/username/atcpie/resources/fgcom/linux/fgcom") is still running.
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3,
Error: "Your GStreamer installation is missing a plug-in."
QProcess: Destroyed while process ("/home/username/atcpie/resources/fgcom/linux/fgcom") is still running.
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3,
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3,
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3,
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
GStreamer; Unable to pause - "file:///home/username/atcpie/resources/sounds/strip.mp3"
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)2, layer=(int)3, rate=(int)22050, channels=(int)1, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)2, layer=(int)3, rate=(int)22050, channels=(int)1, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
QProcess: Destroyed while process ("/home/username/atcpie/resources/fgcom/linux/fgcom") is still running.
QProcess: Destroyed while process ("/home/username/atcpie/resources/fgcom/linux/fgcom") is still running.
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'.
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
GStreamer; Unable to pause - "file:///home/username/atcpie/resources/sounds/aeroplaneDing.mp3"
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)2, layer=(int)3, rate=(int)22050, channels=(int)1, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
GStreamer; Unable to pause - "file:///home/username/atcpie/resources/sounds/aeroplaneDing.mp3"
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)2, layer=(int)3, rate=(int)22050, channels=(int)1, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)2, layer=(int)3, rate=(int)22050, channels=(int)1, parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
nocusuzo
 
Posts: 12
Joined: Fri May 25, 2018 8:17 pm

Re: [Crash] crash on solo mode using voice recognition

Postby nocusuzo » Sun May 27, 2018 9:27 am

After installing some GStreamer Debian packages:

Code: Select all
qtgstreamer-plugins
qtgstreamer-plugins-qt5
gstreamer1.0-qt5
gstreamer1.0-plugins-ugly
gstreamer1.0-plugins-bad
gstreamer1.0-fluendo-mp3


I could get the MP3 sounds to work and got rid of these messages:

Code: Select all
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3,
Error: "Your GStreamer installation is missing a plug-in."


I don't know if all those packages were necessary to fix this though because I just happened to install all related to GStreamer, QT and MP3 that were available.
nocusuzo
 
Posts: 12
Joined: Fri May 25, 2018 8:17 pm

Re: [Crash] crash on solo mode using voice recognition  

Postby mickybadia » Sun May 27, 2018 1:17 pm

Thank you for the crash report. A rare bug which I have fixed for the next upgrade.
For the record I remind readers that plain bug reports requiring no discussion are for me better placed as tickets on the SF project page, as among other things they improve track of open issues.

nocusuzo wrote in Sun May 27, 2018 9:27 am:After installing some GStreamer Debian packages
I could get the MP3 sounds to work and got rid of these messages
I don't know if all those packages were necessary to fix this though because I just happened to install all related to GStreamer, QT and MP3 that were available.

These were multimedia dependencies indicated in the README as "python3-pyqt5.qtmultimedia" and "libqt5multimedia5-plugins", which enable the sound notifications. Unrelated to the crash issue of this topic, but solved another, of missing dependencies. Might as well check in that README that you have not missed any other.
mickybadia
 
Posts: 444
Joined: Tue Sep 24, 2013 9:12 am

Re: [Crash] crash on solo mode using voice recognition

Postby nocusuzo » Sun May 27, 2018 1:36 pm

mickybadia wrote in Sun May 27, 2018 1:17 pm:[...]Might as well check in that README that you have not missed any other.


I did had read the README and installed all dependencies and remember to have the sounds working well, but I guess that after installing Jack audio system and other stuff I should have messed around with something and installing those packages solved the problem.
nocusuzo
 
Posts: 12
Joined: Fri May 25, 2018 8:17 pm

Re: [Crash] crash on solo mode using voice recognition

Postby markaldo » Wed Nov 13, 2019 6:32 am

nocusuzo wrote in Sat May 26, 2018 10:32 pm:IndexError: string index out of range


In Python, a string is a single-dimensional array of characters. The string index out of range means that the index you are trying to access does not exist. In a string, that means you're trying to get a character from the string at a given point. If that given point does not exist , then you will be trying to get a character that is not inside of the string. Indexes in Python programming start at 0. This means that the maximum index for any string will always be length-1. There are several ways to account for this. Knowing the length of your string (using len() function)could certainly help you to avoid going over the index.
markaldo
 
Posts: 1
Joined: Wed Nov 13, 2019 6:30 am

Re: [Crash] crash on solo mode using voice recognition

Postby mickybadia » Wed Nov 13, 2019 7:40 am

As you can read in a post of mine up this thread, this problem was fixed a year and a half ago. Nocosuzo (OP) should mark this as solved.
mickybadia
 
Posts: 444
Joined: Tue Sep 24, 2013 9:12 am


Return to ATC-pie

Who is online

Users browsing this forum: No registered users and 1 guest