Trevelopment / MZD-AIO

Desktop app for AIO
https://mazdatweaks.com
Other
584 stars 88 forks source link

Error message while opening AIO Setup #199

Open ghost opened 9 months ago

ghost commented 9 months ago

Screenshot 2024-02-03 105817

jc-frosty commented 9 months ago

Same on macOS Monterey. Screen Shot 2024-02-03 at 08 24 12

SayWut commented 9 months ago

Ok I am not sure if the developers still working on this project or not. I found it comes from the embedded google translate. At app/index.html they are calling to this url https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit which is deprecated by Google source: https://support.google.com/translate/thread/200407374?hl=en&msgid=200409076

Error:

DOMException: Failed to execute 'measure' on 'Performance': The mark '[object Object]' does not exist.
    at ho (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:110:499)
    at new ly (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:372:38)
    at new Dy (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:423:91)
    at new Py (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:438:244)
    at googleTranslateElementInit (file:///D:/SayWut/ProgramingProjects/mazda/MZD-AIO/app/index.html:281:9)
    at e (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:468)
    at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:497
    at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:502
    at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:442:4

I am not sure if it possible to fix it from the code or we need to replace this translation resource. If we unable to fix this so it is possible to just remove the code and to leave the program in the default lang which is English.

Trevelopment commented 9 months ago

You have to disconnect from the internet when you start the app. I was in the process of fixing this issue but my laptop broke so it's going to be a while before I can fix this.

Trevelopment commented 9 months ago

Ok I am not sure if the developers still working on this project or not. I found it comes from the embedded google translate. At app/index.html they are calling to this url https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit which is deprecated by Google source: https://support.google.com/translate/thread/200407374?hl=en&msgid=200409076

Error:

DOMException: Failed to execute 'measure' on 'Performance': The mark '[object Object]' does not exist.
    at ho (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:110:499)
    at new ly (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:372:38)
    at new Dy (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:423:91)
    at new Py (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:438:244)
    at googleTranslateElementInit (file:///D:/SayWut/ProgramingProjects/mazda/MZD-AIO/app/index.html:281:9)
    at e (https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:468)
    at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:497
    at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:439:502
    at https://translate.googleapis.com/_/translate_http/_/js/k=translate_http.tr.iw.ofEXNemCj0M.O/d=1/exm=el_conf/ed=1/rs=AN8SPfqfUisEoMO6MZCJ7MLwMHAl7GwuPg/m=el_main:442:4

I am not sure if it possible to fix it from the code or we need to replace this translation resource. If we unable to fix this so it is possible to just remove the code and to leave the program in the default lang which is English.

Thanks for letting me know the issue ye other issue is that so many of the packages I used are outdated so updating all those packages will take some work. Maybe we could try contacting google to make that link available for the sake of not crashing the app.

SayWut commented 9 months ago

@Trevelopment

Thanks for letting me know the issue ye other issue is that so many of the packages I used are outdated so updating all those packages will take some work. Maybe we could try contacting google to make that link available for the sake of not crashing the app.

You can try but i don't think that it will work with electron because they want your domain to your website. Probably they are adding your website to a whitelist or something like that

Form: sign up with our form Source: https://developers.google.com/search/blog/2020/05/google-translates-website-translator

walterkammi commented 9 months ago

The following worked for me, as a temporal workaround, with keeping internet connection. Set var translateUrl as unreachable URL, result to start in default language, English. [app/index.html] if (navigator.onLine) { // var translateUrl = "https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" var translateUrl = "https://foo.example.com/"

SayWut commented 9 months ago

The following worked for me, as a temporal workaround, with keeping internet connection. Set var translateUrl as unreachable URL, result to start in default language, English. [app/index.html] if (navigator.onLine) { // var translateUrl = "https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" var translateUrl = "https://foo.example.com/"

Yes it is the same as disabling the translation feature. I mentioned it above it is possible to do it but it will kill the feature