-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors are flooding the Log (probably in case of wrong user's code) #383
Comments
The errors you shared indicate something not related to the level_color. Could you share a screenshot of your card in Lovelace when this happens? |
I tried to reproduce the case.
What I did:
adding smth in this line, removing etc. |
I see. While you are typing in the YAML editor, The card gets updated on each keystroke, resulting in invalid values that break the code. |
Probably, and as I said I could not reproduce it, a bit erratic glitch... |
please check v0.1.6-beta.2 |
Started testing, see no errors so far. |
Checklist:
Release with the issue:
v0.1.6-beta.0
Last working release (if known):
Browser and Operating System:
Chrome 123.0.6312.59 (win10x64)
Description of problem:
Noticed that the Log is flooded by these errors:
2024-03-21 16:11:25.908 ERROR (MainThread) [frontend.js.latest.202403070] Uncaught error from Chrome 123.0.0.0 on Windows 10
IndexSizeError: Failed to execute 'arc' on 'CanvasRenderingContext2D': The radius provided (-25) is negative.
v (/hacsfiles/lovelace-fluid-level-background-card/fluid-level-background-card.js:181:1290)
2024-03-21 16:11:25.909 ERROR (MainThread) [frontend.js.latest.202403070] Uncaught error from Chrome 123.0.0.0 on Windows 10
IndexSizeError: Failed to execute 'arc' on 'CanvasRenderingContext2D': The radius provided (-25) is negative.
v (/hacsfiles/lovelace-fluid-level-background-card/fluid-level-background-card.js:181:1290)
2024-03-21 16:11:25.909 ERROR (MainThread) [frontend.js.latest.202403070] Uncaught error from Chrome 123.0.0.0 on Windows 10
IndexSizeError: Failed to execute 'arc' on 'CanvasRenderingContext2D': The radius provided (-25) is negative.
v (/hacsfiles/lovelace-fluid-level-background-card/fluid-level-background-card.js:181:1290)
2024-03-21 16:11:25.910 ERROR (MainThread) [frontend.js.latest.202403070] Uncaught error from Chrome 123.0.0.0 on Windows 10
IndexSizeError: Failed to execute 'arc' on 'CanvasRenderingContext2D': The radius provided (-25) is negative.
v (/hacsfiles/lovelace-fluid-level-background-card/fluid-level-background-card.js:181:1290)
2024-03-21 16:11:25.910 ERROR (MainThread) [frontend.js.latest.202403070] Uncaught error from Chrome 123.0.0.0 on Windows 10
IndexSizeError: Failed to execute 'arc' on 'CanvasRenderingContext2D': The radius provided (-25) is negative.
v (/hacsfiles/lovelace-fluid-level-background-card/fluid-level-background-card.js:181:1290)
2024-03-21 16:11:25.911 ERROR (MainThread) [frontend.js.latest.202403070] Uncaught error from Chrome 123.0.0.0 on Windows 10
IndexSizeError: Failed to execute 'arc' on 'CanvasRenderingContext2D': The radius provided (-25) is negative.
v (/hacsfiles/lovelace-fluid-level-background-card/fluid-level-background-card.js:181:1290)
Here is only a tiny amount of same messages. They are raised in a large amount within a small time interval.
Probably these errors are caused by a wrong user's code in the card config (I played with differently defined
level_color
).Suggest to avoid this extensive generation of errors; some messages are surely should be reported - but not with this high frequency.
Javascript errors shown in the web inspector (if applicable):
I did not notice errors in console.
May be there were in fact.
Additional information:
The text was updated successfully, but these errors were encountered: