EDCD / EDDI

Companion application for Elite Dangerous
Other
444 stars 81 forks source link

Eddie Crash when trying to connect to Frontier Api #2575

Closed emyrsmorgan closed 1 year ago

emyrsmorgan commented 1 year ago

What's Wrong (please be as specific as possible)

Eddie pauses then crashed when i try to link to Frontier API

Expected

[Describe what you expected to happen] log into frontier api through frontier site

Observed

[Describe what actually happened. Feel free to add screenshots, link to videos, etc to help explain what happened] I got into the Frontier APi settling and click the Log in Button, Eddie Pauses for a few secs then crashes

Steps to reproduce

  1. [Give the fullest and most reproducible steps you can]
  2. [The more reproducible, the better our chances of fixing it] I got into the Frontier APi settling and click the Log in Button, Eddie Pauses for a few secs then crashes

    Configuration

    • Version [Please give full version numbers here, not just "latest" or "current"]
    • EDDI Version: 4.0.3
    • VoiceAttack Version: [if applicable]
    • Localization [if applicable] Win10 English
    • EDDI's language: [or the operating system language if EDDI's language setting is "Automatic"]
    • Voice: [Name and language]

My Investigation

Investigation Notes

[Any investigation you have done, tests using default scripts and personalities, regression tests against earlier versions, etc]

EDDI Logs

[Any log files providing additional details about what happened. These are located at %APPDATA%/EDDI and have the extension ".log"]

Player journals

[These are not required if EDDI Logs are verbose but may be helpful otherwise. They are located at [your Saved Games folder]/Frontier Developments/Elite Dangerous/. Please only provide excerpts or attach files from the play session where the issue occurred.] eddi.zip

Tkael commented 1 year ago

Well, there's an issue with your fleet carrier (I didn't think the available balance on your carrier could be negative but it's at -148848008). That's easy enough to fix but that didn't cause the crash.

According to the log, the crash actually is stemming from the Speech Service (triggered by the normal speech arising from the Frontier API connection process) and seems to occur when your system is trying to access the Windows Speech Synthesizer.

Please follow the following instructions here to check and repair any file system corruption on your PC. After repairing any corrupt files and restarting your PC, does the issue still occur?

Do you have any issues with speech in EDDI when you are not connecting to the Frontier API?

emyrsmorgan commented 1 year ago

Wierd since my fleet carrior balance definatly.not negative. I did find one thing interesting eddie voice works fine lf i run it though voice attack but crashes if i try to run it directly such as pressing test voice under text to speech. i also see that the voice drop down has nothing listed dism and sfc found no errors. perhaps some config file is corrupted for eddie? though can not find what looks like one i

emyrsmorgan commented 1 year ago

btw if i start the configure eddi through voice attack that drop down shows the correct voice and test voice works. though unfortuatke connect to frontier is greyed out when run through voice attack

On Thu, Aug 17, 2023 at 4:41 AM Emyrs Morgan @.***> wrote:

Wierd since my fleet carrior balance definatly.not negative. I did find one thing interesting eddie voice works fine lf i run it though voice attack but crashes if i try to run it directly such as pressing test voice under text to speech. i also see that the voice drop down has nothing listed dism and sfc found no errors. perhaps some config file is corrupted for eddie? though can not find what looks like one i

Tkael commented 1 year ago

The available balance is what's negative (rather than the total balance). I think this value is affected by the active buy orders on your carrier and similar.

From the log it doesn't look like a corrupted config file. It's like EDDI simply can't find / can't initialize the system speech synthesizer.

A few questions:

emyrsmorgan commented 1 year ago

According to your initial report you are running Windows 10. Which edition / version of Windows 10? Windows 10 Pro Version 21h2 When run through VoiceAttack, which voices are available? Windows tts default microsoft Catherine microsoft David microsoft James microsoft mark microsoft zira

Are you running either EDDI or VoiceAttack as an administrator? Voice attack and eddie are runing as an Asministrator, i tried eddi as non administrator and no change

re there any other applications running while EDDI is running that may be competing with EDDI for Speech Synthesizer resources? (this is normally not a problem but I want to try to eliminate as many variables as I can) No

Does the crash occur 100% when triggering any speech through the Text-To-Speech tab or Speech Responder tab? Or is it only the Frontier API tab that triggers the crash? 100 percent though text to speech or Spech responder tab

Also i have both us English (United states) and English (Austrailin) Language packs installed on WIn 10 but am currentky using normal American English display pack Switching tro Austrailion does not solve the problem though wierf that eddie can not find the speech engine only when lauched stand alone tried uninstaling and Reinstaling eddie As admin no luck Btw if i install Eddie Version 4.02 it works again in stand alone and detects the voice engine and wil authenticate the api

On Thu, Aug 17, 2023 at 9:36 AM Brian Wilson @.***> wrote:

The available balance is what's negative (rather than the total balance). I think this value is affected by the active buy orders on your carrier.

From the log it doesn't look like a corrupted config file. It's like EDDI simply can't find / can't initialize the system speech synthesizer.

A few questions:

  • According to your initial report you are running Windows 10. Which edition / version of Windows 10?
  • When run through VoiceAttack, which voices are available?
  • Are you running either EDDI or VoiceAttack as an administrator?
  • Are there any other applications running while EDDI is running that may be competing with EDDI for Speech Synthesizer resources? (this is normally not a problem but I want to try to eliminate as many variables as I can)
  • Does the crash occur 100% when triggering any speech through the Text-To-Speech tab or Speech Responder tab? Or is it only the Frontier API tab that triggers the crash?

— Reply to this email directly, view it on GitHub https://github.com/EDCD/EDDI/issues/2575#issuecomment-1682300664, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5FQ7TP6QPINE5SD7374QQLXVYM6BANCNFSM6AAAAAA3R3C53Q . You are receiving this because you authored the thread.Message ID: @.***>

emyrsmorgan commented 1 year ago

i Further narrowed it down up to Eddie Version 4.03-B4 it works fine it is only the release version that has this problem

On Thu, Aug 17, 2023 at 12:26 PM Emyrs Morgan @.***> wrote:

According to your initial report you are running Windows 10. Which edition / version of Windows 10? Windows 10 Pro Version 21h2 When run through VoiceAttack, which voices are available? Windows tts default microsoft Catherine microsoft David microsoft James microsoft mark microsoft zira

Are you running either EDDI or VoiceAttack as an administrator? Voice attack and eddie are runing as an Asministrator, i tried eddi as non administrator and no change

re there any other applications running while EDDI is running that may be competing with EDDI for Speech Synthesizer resources? (this is normally not a problem but I want to try to eliminate as many variables as I can) No

Does the crash occur 100% when triggering any speech through the Text-To-Speech tab or Speech Responder tab? Or is it only the Frontier API tab that triggers the crash? 100 percent though text to speech or Spech responder tab

Also i have both us English (United states) and English (Austrailin) Language packs installed on WIn 10 but am currentky using normal American English display pack Switching tro Austrailion does not solve the problem though wierf that eddie can not find the speech engine only when lauched stand alone tried uninstaling and Reinstaling eddie As admin no luck Btw if i install Eddie Version 4.02 it works again in stand alone and detects the voice engine and wil authenticate the api

On Thu, Aug 17, 2023 at 9:36 AM Brian Wilson @.***> wrote:

The available balance is what's negative (rather than the total balance). I think this value is affected by the active buy orders on your carrier.

From the log it doesn't look like a corrupted config file. It's like EDDI simply can't find / can't initialize the system speech synthesizer.

A few questions:

  • According to your initial report you are running Windows 10. Which edition / version of Windows 10?
  • When run through VoiceAttack, which voices are available?
  • Are you running either EDDI or VoiceAttack as an administrator?
  • Are there any other applications running while EDDI is running that may be competing with EDDI for Speech Synthesizer resources? (this is normally not a problem but I want to try to eliminate as many variables as I can)
  • Does the crash occur 100% when triggering any speech through the Text-To-Speech tab or Speech Responder tab? Or is it only the Frontier API tab that triggers the crash?

— Reply to this email directly, view it on GitHub https://github.com/EDCD/EDDI/issues/2575#issuecomment-1682300664, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5FQ7TP6QPINE5SD7374QQLXVYM6BANCNFSM6AAAAAA3R3C53Q . You are receiving this because you authored the thread.Message ID: @.***>

emyrsmorgan commented 1 year ago

er Eddie Version 4.03-B3 i ment b4 does not even load stand alone

On Thu, Aug 17, 2023 at 12:50 PM Emyrs Morgan @.***> wrote:

i Further narrowed it down up to Eddie Version 4.03-B4 it works fine it is only the release version that has this problem

On Thu, Aug 17, 2023 at 12:26 PM Emyrs Morgan @.***> wrote:

According to your initial report you are running Windows 10. Which edition / version of Windows 10? Windows 10 Pro Version 21h2 When run through VoiceAttack, which voices are available? Windows tts default microsoft Catherine microsoft David microsoft James microsoft mark microsoft zira

Are you running either EDDI or VoiceAttack as an administrator? Voice attack and eddie are runing as an Asministrator, i tried eddi as non administrator and no change

re there any other applications running while EDDI is running that may be competing with EDDI for Speech Synthesizer resources? (this is normally not a problem but I want to try to eliminate as many variables as I can) No

Does the crash occur 100% when triggering any speech through the Text-To-Speech tab or Speech Responder tab? Or is it only the Frontier API tab that triggers the crash? 100 percent though text to speech or Spech responder tab

Also i have both us English (United states) and English (Austrailin) Language packs installed on WIn 10 but am currentky using normal American English display pack Switching tro Austrailion does not solve the problem though wierf that eddie can not find the speech engine only when lauched stand alone tried uninstaling and Reinstaling eddie As admin no luck Btw if i install Eddie Version 4.02 it works again in stand alone and detects the voice engine and wil authenticate the api

On Thu, Aug 17, 2023 at 9:36 AM Brian Wilson @.***> wrote:

The available balance is what's negative (rather than the total balance). I think this value is affected by the active buy orders on your carrier.

From the log it doesn't look like a corrupted config file. It's like EDDI simply can't find / can't initialize the system speech synthesizer.

A few questions:

  • According to your initial report you are running Windows 10. Which edition / version of Windows 10?
  • When run through VoiceAttack, which voices are available?
  • Are you running either EDDI or VoiceAttack as an administrator?
  • Are there any other applications running while EDDI is running that may be competing with EDDI for Speech Synthesizer resources? (this is normally not a problem but I want to try to eliminate as many variables as I can)
  • Does the crash occur 100% when triggering any speech through the Text-To-Speech tab or Speech Responder tab? Or is it only the Frontier API tab that triggers the crash?

— Reply to this email directly, view it on GitHub https://github.com/EDCD/EDDI/issues/2575#issuecomment-1682300664, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5FQ7TP6QPINE5SD7374QQLXVYM6BANCNFSM6AAAAAA3R3C53Q . You are receiving this because you authored the thread.Message ID: @.***>

emyrsmorgan commented 1 year ago

also changing my Weekly upkeep allocation from 100 to 99 them back to 100 in elite fixed it reporting a negative available balance

On Thu, Aug 17, 2023 at 1:00 PM Emyrs Morgan @.***> wrote:

er Eddie Version 4.03-B3 i ment b4 does not even load stand alone

On Thu, Aug 17, 2023 at 12:50 PM Emyrs Morgan @.***> wrote:

i Further narrowed it down up to Eddie Version 4.03-B4 it works fine it is only the release version that has this problem

On Thu, Aug 17, 2023 at 12:26 PM Emyrs Morgan @.***> wrote:

According to your initial report you are running Windows 10. Which edition / version of Windows 10? Windows 10 Pro Version 21h2 When run through VoiceAttack, which voices are available? Windows tts default microsoft Catherine microsoft David microsoft James microsoft mark microsoft zira

Are you running either EDDI or VoiceAttack as an administrator? Voice attack and eddie are runing as an Asministrator, i tried eddi as non administrator and no change

re there any other applications running while EDDI is running that may be competing with EDDI for Speech Synthesizer resources? (this is normally not a problem but I want to try to eliminate as many variables as I can) No

Does the crash occur 100% when triggering any speech through the Text-To-Speech tab or Speech Responder tab? Or is it only the Frontier API tab that triggers the crash? 100 percent though text to speech or Spech responder tab

Also i have both us English (United states) and English (Austrailin) Language packs installed on WIn 10 but am currentky using normal American English display pack Switching tro Austrailion does not solve the problem though wierf that eddie can not find the speech engine only when lauched stand alone tried uninstaling and Reinstaling eddie As admin no luck Btw if i install Eddie Version 4.02 it works again in stand alone and detects the voice engine and wil authenticate the api

On Thu, Aug 17, 2023 at 9:36 AM Brian Wilson @.***> wrote:

The available balance is what's negative (rather than the total balance). I think this value is affected by the active buy orders on your carrier.

From the log it doesn't look like a corrupted config file. It's like EDDI simply can't find / can't initialize the system speech synthesizer.

A few questions:

  • According to your initial report you are running Windows 10. Which edition / version of Windows 10?
  • When run through VoiceAttack, which voices are available?
  • Are you running either EDDI or VoiceAttack as an administrator?
  • Are there any other applications running while EDDI is running that may be competing with EDDI for Speech Synthesizer resources? (this is normally not a problem but I want to try to eliminate as many variables as I can)
  • Does the crash occur 100% when triggering any speech through the Text-To-Speech tab or Speech Responder tab? Or is it only the Frontier API tab that triggers the crash?

— Reply to this email directly, view it on GitHub https://github.com/EDCD/EDDI/issues/2575#issuecomment-1682300664, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5FQ7TP6QPINE5SD7374QQLXVYM6BANCNFSM6AAAAAA3R3C53Q . You are receiving this because you authored the thread.Message ID: @.***>

Tkael commented 1 year ago

Ok, I'm a little confused... Does version 4.0.3-b4 "work fine" or does it "not even load stand alone"?

I'd suggest that you should run neither EDDI nor VoiceAttack as an administrator. There are only a few edge cases where VoiceAttack running as an administrator is required and most people don't run into those edge cases.

EDDI uses two speech synthesizers... the System Speech Synthesizer and the Windows Media Speech Synthesizer. Different voices are associated with each synthesizer. EDDI hides some System Speech voices when there is a (newer) Media Speech equivalent. Do you have any voices installed on your system which do not appear in EDDI's list?

From the log you sent, EDDI is actually hitting the issue with accessing the System Speech Synthesizer more than once. In one instance, the exception is caught before the entire application fails and in the other it is not. I can reinforce EDDI to guard against failures but your System Speech Synthesizer might still have an unresolved issue.

emyrsmorgan commented 1 year ago

B4 does not work b3 Does work Running them in normal mode has no different effect

On Fri, Aug 18, 2023, 11:43 AM Brian Wilson @.***> wrote:

Ok, I'm a little confused... Does version 4.0.3-b4 "work fine" or does it "not even load stand alone"?

I'd suggest that you should run neither EDDI nor VoiceAttack as an administrator. There are only a few edge cases where VoiceAttack running as an administrator is required and most people don't run into those edge cases.

EDDI uses two speech synthesizers... the System Speech Synthesizer and the Windows Media Speech Synthesizer. Different voices are associated with each synthesizer. EDDI hides some System Speech voices when there is a (newer) Media Speech equivalent. Do you have any voices installed on your system which do not appear in EDDI's list?

From the log you sent, EDDI is actually hitting the issue with accessing the System Speech Synthesizer more than once. In one instance, the exception is caught before the entire application fails and in the other it is not. I can reinforce EDDI to guard against failures but your System Speech Synthesizer might still have an unresolved issue.

— Reply to this email directly, view it on GitHub https://github.com/EDCD/EDDI/issues/2575#issuecomment-1684102636, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5FQ7TKQDH3MOOIVA3GV27TXV6ES3ANCNFSM6AAAAAA3R3C53Q . You are receiving this because you authored the thread.Message ID: @.***>

Tkael commented 1 year ago

Ok, I'm adding some additional protection in case EDDI fails to initialize the System Speech Synthesizer (I don't see any way to prevent the System Speech Synthesizer from failing on your system yet... it seems to fail as soon as EDDI touches it and before we've done anything to configure it).

Please open Powershell, then paste in and run the following to see if other applications on your system are having trouble with the same synthesizer?

Add-Type -AssemblyName System.speech
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
$speak.Speak("test");

Do you hear "test"? Does Powershell show an error? If yes, please share the results in a screenshot.

emyrsmorgan commented 1 year ago

test worked Text to speech works with all other applications i have tried it only does not work with Release. btw Beta 4 finally loaded from Voice attack worked but it took like 3-4 minutes to actualy load . Sending you both logs stand alone and started with Voice attack . Also when loaded from voice attack Beta 4 was working in text to spech tab Until i tried to connect to frontier(did not open the web site) then i saw the error in the logs. Sending you both log files

On Sat, Aug 19, 2023, 11:49 AM Brian Wilson @.***> wrote:

Ok, I'm adding some additional protection in case EDDI fails to initialize the System Speech Synthesizer (I don't see any way to prevent the System Speech Synthesizer from failing on your system yet... it seems to fail as soon as EDDI touches it and before we've done anything to configure it).

Please open Powershell, then paste in and run the following to see if other applications on your system are having trouble with the same synthesizer?

Add-Type -AssemblyName System.speech$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer$speak.Speak("test");

Do you hear "test"? Does Powershell show an error? If yes, please share the results in a screenshot.

— Reply to this email directly, view it on GitHub https://github.com/EDCD/EDDI/issues/2575#issuecomment-1685032518, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5FQ7TKFZ2S5PPTENH4UHF3XWDN75ANCNFSM6AAAAAA3R3C53Q . You are receiving this because you authored the thread.Message ID: @.***>

Tkael commented 1 year ago

Unfortunately, I don't receive attachments when you respond by email so I did not receive the new .log files.

emyrsmorgan commented 1 year ago

ed.zip

Tkael commented 1 year ago

Thanks. Version 4.0.3-b4 in standalone (eddiStand.log) seems to have the same problem as 4.0.3 (it can't access information connected to the System Speech Synthesizer while trying to inform you about an upgrade being available and fails). Have you perhaps at some point modified your registry to unlock additional voices?

In version 4.0.3-b4 in VoiceAttack (eddi.log) you seem to be running into a different issue (probably because it's not trying to speak during the upgrade process). The other speech synthesizer (the Windows Media synthesizer) is failing because Microsoft Catherine is being passed invalid IPA (specifically, "Thandco" is invalid). I'm not sure what "Thandco" is?

Have you tried swapping to a different voice to see if there's an issue with the current selected voice?

Tkael commented 1 year ago

Which voice is your currently selected voice?

emyrsmorgan commented 1 year ago

Cathrine is my current voice is is from the astralian englih back. Btw Thandco is my Commanders name

On Sun, Aug 20, 2023, 9:49 PM Brian Wilson @.***> wrote:

Which voice is your currently selected voice?

— Reply to this email directly, view it on GitHub https://github.com/EDCD/EDDI/issues/2575#issuecomment-1685499015, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5FQ7TPH2UXXAJ5UI6ETBT3XWK5BXANCNFSM6AAAAAA3R3C53Q . You are receiving this because you authored the thread.Message ID: @.***>

Tkael commented 1 year ago

If the Name (spoken) field in the Commander Details tab contains Thandco, please remove that text as it is invalid IPA. Please try removing and re-adding the Australian voice pack with Microsoft Catherine (reinstalling the voice pack) then re-testing? Please try using another voice (like Microsoft David or Microsoft James). Do these fail in the same way?