OrangeJedi / Aerial

Apple TV screen saver for Windows
MIT License
702 stars 25 forks source link

JavaScript error #143

Open gineser opened 1 year ago

gineser commented 1 year ago

Describe the bug Get error message when trying to launch program. "A JavaScript error occurred in the main process."

To Reproduce Steps to reproduce the behavior: Launch program from task bar or wait for program to launch on its own

Expected behavior Program starts

Screenshots See attachments

Aerial Version 1.20 Screenshot 2023-04-08 125821

Additional context Add any other context about the problem here.

OrangeJedi commented 1 year ago

It looks like you config file got corrupted. You could try deleting it at C\:Users\%username%\AppData\Roaming\aerial\config.json and then re-starting the program. It might also be a permissions error with the file. Let me know if that helps.

ItsHamidMustafa commented 1 year ago

Brother, ur config file is corrupted. Delete that file, it'll be on this location: C\:Users\%username%\AppData\Roaming\aerial\config.json replace %username% if u wish. It should work without replacing. If that doesn't works, try opening the program as administrator. If that also don't helps, ping me.

luckehal commented 1 year ago

Happens to me as well sometimes when program is running even. Closing and restarting fixes it for me in that case.

image

gineser commented 1 year ago

That did the trick! Thank you. One thing to mention to others when offering the solution is to keep a note of the current settings before deleting the file since it contains all customizations that you setup.

Thank you

Jason

From: OrangeJedi @.> Sent: 10 April, 2023 8:21 To: OrangeJedi/Aerial @.> Cc: gineser @.>; Author @.> Subject: Re: [OrangeJedi/Aerial] JavaScript error (Issue #143)

It looks like you config file got corrupted. You could try deleting it at C\:Users\%username%\AppData\Roaming\aerial\config.json and then re-starting the program. It might also be a permissions error with the file. Let me know if that helps.

— Reply to this email directly, view it on GitHub https://github.com/OrangeJedi/Aerial/issues/143#issuecomment-1501947543 , or unsubscribe https://github.com/notifications/unsubscribe-auth/A7BXMAWJCQNHHVD45XJWMLLXAQQONANCNFSM6AAAAAAWXUTQ3Q . You are receiving this because you authored the thread. https://github.com/notifications/beacon/A7BXMAQNA6COKRC45U4HU73XAQQONA5CNFSM6AAAAAAWXUTQ3SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSZQXTJO.gif Message ID: @. @.> >

zw2312zw commented 1 year ago

I have the same issue here. Yes, deleting config.json makes the program work again - but only for a while. Sooner or later the issue will come back so apparently this indeed is a bug of sorts.

yourbest commented 1 year ago

provably, it may be caused by json type of value validation. for example, the default value is fill in numeric type like this. "videoTransitionLength": 1000,

but, after configuration via UI, the value is filled in string type. "videoTransitionLength": "1000",

luckehal commented 1 year ago

For me the error happens randomly without me touching the UI or settings in any way, the program is just running minimized in the background

SawYoung commented 1 year ago

Having the same issue as well, and the issue still happens again after deleting config.json

Kraiggers commented 1 year ago

This happens to me, as well. I've deleted the config file and started fresh several times. It always comes back.

moeserado commented 1 year ago

provably, it may be caused by json type of value validation. for example, the default value is fill in numeric type like this. "videoTransitionLength": 1000,

but, after configuration via UI, the value is filled in string type. "videoTransitionLength": "1000",

This was exactly the problem in my case. I changed this line (#10 in my config.json file): "startAfter": "5", to: "startAfter": 5,

Odd though, this isn't something that I changed recently (if at all). The program had been working fine for months.

UPDATE: I spoke too soon X)

seanbperiod commented 8 months ago

Was this fixed in the latest release? I just installed this yesterday for the first time and I get this pop up a few times a day

levi1922 commented 6 months ago

first of all, great work on that app.

Chiming in to say is get the same error fairly constantly.

I do notice more when I am running Macrium Reflect, which opens in administrator (I don’t have aerial set to admin as it didn’t seem to consistently help with Aerial playing over/behind video). not sure if the two are actually correlated or just coincidental.

Thanks again for all your work!