The stroke index was wrong when a influence filter is active in the modifier, this would lead to crashes. Now corrected this by only iterating duplicated strokes in front of the curves geometry. Pull Request: https://projects.blender.org/blender/blender/pulls/134038