canvas-gauges icon indicating copy to clipboard operation
canvas-gauges copied to clipboard

Gauge randomly starts spinning after running for 10-20min

Open julianstogs opened this issue 3 years ago • 9 comments

I am encountering an issue where my gauges run great for a short period of time, I am using a radial gauge to show current RPM, which is retrieved from pulling engine data via GET request.

After about 20min, my gauge randomly starts spinning in circles, not just the needle, but the entire gauge object. I am extremely stumped on why this could be happening.

Anyone else encounter this?

julianstogs avatar Dec 06 '21 19:12 julianstogs

yes i have the same issue

rgnader avatar Jan 23 '22 19:01 rgnader

on ipad

rgnader avatar Jan 23 '22 19:01 rgnader

me too. using 2.1.7 and it gets frozen after 5 minutes and 32 seconds 1 second update. I'm using a radial gauge.

peakhunt avatar Nov 07 '22 04:11 peakhunt

您的邮件我已收到,谢谢!

TuShen121 avatar Nov 07 '22 04:11 TuShen121

Same issue here on Safari based browsers (Desktop and iOS). Doesn't appear to be happening on Chrome or Firefox for me.

noisymime avatar Dec 18 '23 00:12 noisymime

您的邮件我已收到,谢谢!

TuShen121 avatar Dec 18 '23 00:12 TuShen121

Use version 1 if you just need radial . It's rock solid and not much different.

X25guru avatar Jan 22 '24 02:01 X25guru

您的邮件我已收到,谢谢!

TuShen121 avatar Jan 22 '24 02:01 TuShen121

This happened for me on iPad. I think the reason might be reaching the stack limit on CanvasRenderingContext2D.save. There is a leak somewhere not cleaning those up. Not sure where exactly.

In my case I observe the render ticks on "render" event. I just call redraw after a certain limit. The limit depends on your specific usage. For me it was after ~450 ticks.

Strandinator avatar Feb 14 '24 12:02 Strandinator