MotazSabri / Hanami-release

Live translator that captures any audio that comes from a WINDOWS speaker or microphone and translates it to the desired language.
32 stars 7 forks source link

Got this error when i use the latest #18

Closed jeraldpunx closed 1 month ago

jeraldpunx commented 1 month ago

image

MotazSabri commented 1 month ago

@jeraldpunx Thanks a lot for reporting the bug. I created a new hotfix for this issue. Do you mind downloading the new version and confirming the fix?

I appreciate your feedback, Thanks

jeraldpunx commented 1 month ago

here is the new version, only one hanami instance but got error. image

MotazSabri commented 1 month ago

The application forks smaller apps while operating to ensure robust performance.

The shutting down takes few seconds (to minutes), especially if the shutdown happens abruptly. Have you uninstalled the olde version and installed the new version?

Sorry if the questions are naive, i am trying to check the context of the issue.

jeraldpunx commented 1 month ago

tried uninstall, then restart pc, and install then open... still same error

MotazSabri commented 1 month ago

Thanks for describing the situation, @jeraldpunx . This seems to be related to your machine configuration. We need to debug this by observing the logs.

  1. Install this custom version of Hanami (The link will be removed after this issue is resolved), This version allows logging all events and errors in details. Do not run the application yet.
  2. Go to the Windows TEMP folder (By clicking WINDOWS + R and then type %temp% and enter) and find a folder called HanamiApp.
  3. The file contains the operational contents, delete everything in it (To avoid sharing any personal details) then run the Hanami application.
  4. After a while of running the app (Seconds), in the HanamiApp folder, you will find a file called Traces.log. In it, we may find clues as to why this issue happened.
  5. If it's a thing you can not manage by yourself, please share the traces.log here so I can try debugging it.

looking forward to hearing from you.

jeraldpunx commented 1 month ago

Hello, i've got same error. also here is the traces.log Traces.log

MotazSabri commented 1 month ago

Thank you for your data preparation. It appears that the problem might be occurring within the new GPT component on your side. When the application crashes, it should display more messages if the issue originates within the application itself. However, it seems like the issue might be external, possibly related to a firewall or access permissions.

Do you have rules in your network that prevent access to OpenAI or any GPT service provider?

Could you please try this version? It has enhanced logging to capture more external errors, if any.

Thanks for your help and looking forward to hearing from you!

jeraldpunx commented 1 month ago

here is the new traces.log... what i did was uninstall -> remove hanamiApp on %temp% -> install that new installer then got this traces.log from %temp%/hanamiApp Traces.log

also on timestamp : 18:25:14 i off both firewall public/private and i still got same error.

MotazSabri commented 1 month ago

Thank you for your effort. According to the logs, it looks like the app is attempting to detect your speakers and request access, but it’s unable to do so successfully.

Have you made any recent changes to your speakers, such as disabling them or configuring settings that might block Hanami from accessing them?

As we isolated the current cause in this area, do you mind installing this version and then run it with admin rights and check what we get in the logs?

Thanks for your follow-up.

jeraldpunx commented 1 month ago

it can open now, but didn't translate it. image

here is the new traces.log (i just cut other lines "new chunk" cause it pass 25mb limit) Traces.log

MotazSabri commented 1 month ago

Thanks, I can see the error source now in the logs. it is referenced by

Error 0x8889000a

that suggests an issue related to the audio endpoint device. This could be due to several reasons, such as permissions, device availability, or compatibility issues.

Try this version and apply the following Solutions:

  1. Test with Different Devices: If possible, test with a different speaker to see if the issue is specific to the current device.

  2. Check Device Availability: Ensure that the device is available and not being used by another application.

  3. Verify Permissions: Make sure that your application has the necessary permissions to access the audio devices. This may involve adjusting system settings or running your application with elevated permissions.

  4. Update Drivers: Ensure that your audio drivers are up to date, as outdated drivers can cause compatibility issues.

  5. Check for Configuration Changes: Verify if any recent changes have been made to the audio configuration, such as disabling devices or modifying settings that could affect access.

Looking forward to hearing from you.

jeraldpunx commented 1 month ago

btw it's working now on this new version

MotazSabri commented 1 month ago

btw it's working now on this new version

Thanks for confirming.