March 3, 20215 yr When I restart P2A mid flight (I need to do this due to loss of voice recognition), then press the connect button, I get this message (latest version release & with MSFS). It still tracks me but the plane icon on the moving map is not displayed. Error in ATCListener AddUserNames System.FormatException: 'one-of' must contain at least one 'item' element. at System.Speech.Internal.SrgsParser.XmlParser.ThrowSrgsException(SRID id, Object[] args) at System.Speech.Internal.SrgsCompiler.OneOf.System.Speech.Internal.SrgsParser.IElement.PostParse(IElement parentElement) at System.Speech.Internal.SrgsParser.SrgsDocumentParser.ParseOneOf(SrgsOneOf srgsOneOf, IElement parent, IRule rule) at System.Speech.Internal.SrgsParser.SrgsDocumentParser.ProcessChildNodes(SrgsElement srgsElement, IElement parent, IRule rule) at System.Speech.Internal.SrgsParser.SrgsDocumentParser.ParseRule(IGrammar grammar, SrgsRule srgsRule) at System.Speech.Internal.SrgsParser.SrgsDocumentParser.ProcessGrammarElement(SrgsGrammar source, IGrammar grammar) at System.Speech.Internal.SrgsParser.SrgsDocumentParser.Parse() at System.Speech.Internal.SrgsCompiler.SrgsCompiler.CompileStream(Int32 iCfg, ISrgsParser srgsParser, String srgsPath, String filename, Stream stream, Boolean fOutputCfg, StringBuilder innerCode, Object cfgResources, CultureInfo& culture, String[] referencedAssemblies, String keyFile) at System.Speech.Internal.SrgsCompiler.SrgsCompiler.CompileStream(SrgsDocument srgsGrammar, String filename, Stream stream, Boolean fOutputCfg, String[] referencedAssemblies, String keyFile) at System.Speech.Recognition.SrgsGrammar.SrgsGrammarCompiler.Compile(SrgsDocument srgsGrammar, Stream outputStream) at P2A_2020.ATCListener.AddUserNames(List`1 Route, Single PathWidthNM)
March 3, 20215 yr Commercial Member This is obviously a bug. The program is trying to build a vocabulary of names along the route. If you in the middle of nowhere or don't have a flight plan when you connect, that might be causing it. I'll check it out. Thanks, Dave Edited March 3, 20215 yr by Dave-Pilot2ATC
March 5, 20215 yr Author Sorry for delay - been away from PC. FYI, I do have a filed flight plan - sort of! the steps - 1. create a flight plan, validate (save it), connect to MSFS and click file 2. deal as usual, with IFR clearance, taxi, takeoff etc. 3. at some point inthe flight, P2A no longer detects my voice/microphone, so I close and restart 4. I load the flight plan created at 1 and click the connect button (MSFS is still running) 5. That exception above is triggered. I click OK. I notice the connect button is not green but it is conencted. As I file again and the highlighted row clicks to where I am.
March 5, 20215 yr Commercial Member The connect button should turn green when you connect or else you are only partially connected. I did make a tweak to the code for the next update that should reduce the odds of this error occurring. What I don't get is why ATC would stop responding during your cruise. Assuming you're on the latest version of P2A, the next time this happens to you, after shutting down P2A so the Log File gets written, email that log file to [email protected] and I'll have a look at it. Please don't copy/paste the log here as it is way too long and more difficult to comb through. Thanks, Dave Edited March 5, 20215 yr by Dave-Pilot2ATC
March 6, 20215 yr Author Will do. I've no idea either! I have tried USB and std 3.5mm microphone. Certain it's something my end. Just od it detects microphone after I restart P2A with no other changes.
Archived
This topic is now archived and is closed to further replies.