I have following repeated errors using the SketchViewModel in a SceneView with an added feature layer and trying to draw a point (JS API 4.18)
SceneView.js:7888 Renderer.modify called while rendering
Uncaught RangeError: Invalid array length
... cycling and weakening performances.
Has anyone encountered the same problem
Here is a Codepen to reproduce
Solved! Go to Solution.
We could reproduce the behavior with your minimized reproduction app.
It looks like this happen with this specific featurelayer which interferes somehow with the sketching. It looks like a bug and reported it. We get back as soon as this got fixed.
Seems to be a problem with renderers, here is a codepen that is working using an object type symbol instead of an simplemarker and the problem does not happen
This issue will be fixed at version 4.19 and will be released end of this week. You already can check by switching the app to https://js.arcgis.com/4.19/.
Thanks again for reporting.