You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok, so if in init of PolylineNodesampleCount == 1, then when creating geometry of PolylineShader in render func it tries to create positions in
for index in (0..<sampleCount).reversed() {
let position = polyline.getPositon(atProgress: progressAtSample(index))
addCap(atPosition: position, withIndex: index)
}
So it iterates from 0 to 0. It tries to progressAtSample with parameter 0. This methods looks like this:
The code crashed in line 58, which is:
let spineSegmentStartIndex: Int = min(Int(absoluteProgress), curvePoints.count - 2 - pad * 2) // Integer time for the index of the starting curvePoint
absoluteProgress
isNaN
,curvePoints.count
is4
,pad
is1
.Unfortunately, I'm not sure why
absoluteProgress
isn't a number. However, at the moment, it is happening in 100% cases I'm trying to render a route.The text was updated successfully, but these errors were encountered: