This error occurs if a Lens is unable to continue rendering.
If this error occurs, Camera Kit automatically removes the Lens from the session.
It's always a good idea to handle this error and update the user experience accordingly.
For example, you could remove the faulty Lens from your Lens selection UI.
cameraKitSession.events.addEventListener('error', ({ detail }) => { if (detail.error.name === 'LensExecutionError') { console.log(`Lens ${detail.lens.name} encountered an error and was removed. Please pick a different lens.`) } })
If the Lens's own script threw while running, the script's error is behind this one; see LensScriptError.
This error occurs if a Lens is unable to continue rendering.
If this error occurs, Camera Kit automatically removes the Lens from the session. It's always a good idea to handle this error and update the user experience accordingly. For example, you could remove the faulty Lens from your Lens selection UI.
If the Lens's own script threw while running, the script's error is behind this one; see LensScriptError.