Shadow Cast Widget Bug

491
1
Jump to solution
11-28-2021 09:16 PM
JethroLeevers
Occasional Contributor

I have recently been investigating the use of the ShadowCast widget in an upcoming project.

There seems to be an issue when the two extents of the time slider cross, the entire widget stops working.

I have tried this in edge and chrome.

sunUtils.js:formatted:168 Uncaught RangeError: Invalid array length
at Object.z.computeDirectionsOverTime (sunUtils.js:formatted:168)
at w.get (ShadowCastViewModel.js:17)
at Object.a.runTracked ((index):144)
at g.k.getComputed ((index):139)
at w._lightDirections ((index):212)
at ShadowCastViewModel.js:8
at Object.a.runTracked ((index):144)
at d.t [as _notify] ((index):194)
at d.h.onCommitted ((index):196)
at g.k.onCommitted ((index):142)

It looks like a divide by zero error in the sunUtils computeDirectionsOverTime function, caused by a 0 value being passed as the 3rd parameter

0 Kudos
1 Solution

Accepted Solutions
JethroLeevers
Occasional Contributor

Looks like this has been resolved in the 4.22 release

View solution in original post

0 Kudos
1 Reply
JethroLeevers
Occasional Contributor

Looks like this has been resolved in the 4.22 release

0 Kudos