lottie-web icon indicating copy to clipboard operation
lottie-web copied to clipboard

String: TypeError: null is not an object (evaluating 'S.onComplete')

Open vorderpneu opened this issue 6 months ago • 2 comments

We use lottie-web in an Ionic app with Angular and ngrx-lottie to display an animation. For some time now, we have been seeing the following error in our error logs:

String: TypeError: null is not an object (evaluating 'S.onComplete')
    postMessage@webpack:///node_modules/lottie-web/build/player/esm/lottie_light.min.js:424:28
    We@webpack:///node_modules/zone.js/fesm2015/zone.js:755:44
    runTask@webpack:///node_modules/zone.js/fesm2015/zone.js:173:57
    invokeTask@webpack:///node_modules/zone.js/fesm2015/zone.js:483:41
    O@webpack:///node_modules/zone.js/fesm2015/zone.js:1631:24
    N@webpack:///node_modules/zone.js/fesm2015/zone.js:1674:43

The error occurs here: https://github.com/airbnb/lottie-web/blob/0d658b34c40d4e81eafdccbf698815346454a899/player/js/utils/DataManager.js#L619

What is the reason that process can be null, and what would be the best way to handle this error properly?

Only iPhones and MacBooks are affected. Unfortunately, we have not been able to reproduce it on our own devices.

Browsers: Mobile Safari UI/WKWebView Apple Mail 605.1

OS Versions: iOS 15.6 iOS 15.7 iOS 15.8 iOS 16.3 iOS 16.7 iOS 17.5 Mac OS X 10.15

vorderpneu avatar Jul 26 '24 08:07 vorderpneu