PerWel

No response instead crash

Recommended Posts

Windows 7 64 Ultimate, X-plane 11.05. P2A test license.

I am trying P2A and have setup and microphone that works ok in the Grammar Helper. It understands what I am saying.

But after filing a plane things do not work.

If I press Say It "Beach 31 ready to copy" a voice is saying it but no reply from ATC. Text comes back in Green. Nothing happens at all but....

If I speak the same phrase "Beach 31 ready to copy" this error shows up...

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: StartIndex cannot be less than zero.
Parameter name: startIndex
   at System.String.Substring(Int32 startIndex, Int32 length)
   at P2A_2016.CallSign.get_CallSign()
   at P2A_2016.ATCFlt.get_CallSign()
   at P2A_2016.Controller.RespondToPilot(SpeechInteraction SI)
   at P2A_2016.ATCListener.HandleRecognizedSpeech(Boolean SpeechEmulated)
   at P2A_2016.ATCListener.a(Object A_0, RecognizeCompletedEventArgs A_1)
   at System.Speech.Recognition.SpeechRecognitionEngine.RecognizeCompletedProxy(Object sender, RecognizeCompletedEventArgs e)

 

What is wrong? Something in Windows?

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Works now. I think I know what the problem was. My Call sign and Flight/Tail Number. I had:

Call Sign: Beach
Flight/Tail No: 31

As a programmer I have read Stacktraces like this before and I saw that RespondToPilot() called get_callsign() and last when it crashed was
in Substring(). Substring picks out text from "startindex" and "length" number of characters. So I changed Flight/Tail Number to:
BA31 and now it works. So it looks like it is removing letters like my BA and use the rest because now text ATC window says

Beach 31 now without BA. But it worked in Grammar Help with only "31" in Tail number!?

Feels like a little bug or maybe some info in the manual on how Flight/Tail numbers should look like.

Share this post


Link to post
Share on other sites

Just checked the manual and there are info about Callsigns. Will read it letter by letter.

Looks like my fault from start:blush:

Share this post


Link to post
Share on other sites
23 minutes ago, Dave-Pilot2ATC said:

The new update has a fix that should prevent the crash like you got.

Thanks,

Dave

Is it released now?

Share this post


Link to post
Share on other sites
22 minutes ago, Dave-Pilot2ATC said:

Yes, just posted it.

OK Great. Found it and is downloading the Update. Looking good so far, I mean P2A and what it can do.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now