timbru31 / cordova-plugin-lottie-splashscreen

🐣 🎬 📱 Apache Cordova plugin to show Lottie animations as the splash screen with Airbnb's Lottie wrapper
https://www.npmjs.com/package/cordova-plugin-lottie-splashscreen
MIT License
132 stars 54 forks source link

App Crashes in middle of animation in android (randomly) #97

Closed inDivyanshu closed 5 years ago

inDivyanshu commented 5 years ago

Plugin works fine with fine with earlier animations used but new animation causes app to carsh during animation. It doesn't happen always.

Github repo of the sample: https://github.com/Divyanshu30/debug-app

Ionic Info:

ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.7.4 @angular-devkit/build-angular : 0.13.9 @angular-devkit/schematics : 7.3.9 @angular/cli : 7.3.9 @ionic/angular-toolkit : 1.5.1

Cordova:

cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1) Cordova Platforms : android 8.0.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 8 other plugins)

System:

Android SDK Tools : 26.1.1 (/Users/divyanshu/Library/Android/sdk) ios-deploy : 1.9.4 ios-sim : 8.0.1 NodeJS : v8.16.0 (/usr/local/Cellar/node@8/8.16.0/bin/node) npm : 6.4.1 OS : macOS Mojave Xcode : Xcode 10.3 Build version 10G8

android studio logs

2019-08-28 17:41:16.528 8606-8606/? I/art: Late-enabling -Xcheck:jni 2019-08-28 17:41:16.538 8606-8606/? D/TidaProvider: TidaProvider() 2019-08-28 17:41:16.543 8606-8606/? V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@ebb6469 2019-08-28 17:41:16.548 8606-8613/? I/art: Debugger is no longer active 2019-08-28 17:41:16.548 8606-8613/? I/art: Starting a blocking GC Instrumentation 2019-08-28 17:41:16.573 8606-8606/? W/ResourceType: No package identifier when getting name for resource number 0x00000000 2019-08-28 17:41:16.615 8606-8606/? I/CordovaLog: Changing log level to DEBUG(3) 2019-08-28 17:41:16.615 8606-8606/? I/CordovaActivity: Apache Cordova native platform version 8.0.0 is starting 2019-08-28 17:41:16.615 8606-8606/? D/CordovaActivity: CordovaActivity.onCreate() 2019-08-28 17:41:16.628 8606-8606/? W/ResourceType: No package identifier when getting name for resource number 0x00000000 2019-08-28 17:41:16.633 8606-8606/? I/WebViewFactory: Loading com.android.chrome version 75.0.3770.101 (code 377010137) 2019-08-28 17:41:16.687 8606-8606/? I/cr_LibraryLoader: Time to load native libraries: 4 ms (timestamps 5420-5424) 2019-08-28 17:41:16.694 8606-8606/? W/ResourceType: No package identifier when getting name for resource number 0x00000000 2019-08-28 17:41:16.700 8606-8606/? D/AccessibilityManager: current package=io.ionic.starter, accessibility manager mIsFinalEnabled=true, mOptimizeEnabled=false, mIsUiAutomationEnabled=false, mIsInterestedPackage=false 2019-08-28 17:41:16.703 8606-8606/? I/chromium: [INFO:library_loader_hooks.cc(50)] Chromium logging enabled: level = 0, default verbosity = 0 2019-08-28 17:41:16.704 8606-8606/? I/cr_LibraryLoader: Expected native library version number "75.0.3770.101", actual native library version number "75.0.3770.101" 2019-08-28 17:41:16.717 8606-8606/? I/cr_BrowserStartup: Initializing chromium process, singleProcess=true 2019-08-28 17:41:16.721 8606-8606/? W/ResourceType: Failure getting entry for 0x7f130537 (t=18 e=1335) (error -2147483647) 2019-08-28 17:41:16.806 8606-8606/? D/EgretLoader: EgretLoader(Context context) 2019-08-28 17:41:16.808 8606-8606/? D/EgretLoader: The context is not activity 2019-08-28 17:41:16.809 8606-8606/? D/IonicWebViewEngine: Ionic Web View Engine Starting Right Up 1... 2019-08-28 17:41:16.825 8606-8606/? D/SystemWebViewEngine: CordovaWebView is running on device made by: Xiaomi 2019-08-28 17:41:16.832 8606-8606/? D/PluginManager: init() 2019-08-28 17:41:16.862 8606-8606/? E/HAL: PATH3 /odm/lib64/hw/gralloc.qcom.so 2019-08-28 17:41:16.862 8606-8606/? E/HAL: PATH2 /vendor/lib64/hw/gralloc.qcom.so 2019-08-28 17:41:16.862 8606-8606/? E/HAL: PATH1 /system/lib64/hw/gralloc.qcom.so 2019-08-28 17:41:16.862 8606-8606/? E/HAL: PATH3 /odm/lib64/hw/gralloc.msm8953.so 2019-08-28 17:41:16.862 8606-8606/? E/HAL: PATH2 /vendor/lib64/hw/gralloc.msm8953.so 2019-08-28 17:41:16.862 8606-8606/? E/HAL: PATH1 /system/lib64/hw/gralloc.msm8953.so 2019-08-28 17:41:16.869 8606-8606/? D/CordovaWebViewImpl: >>> loadUrl(file:///android_asset/www/index.html) 2019-08-28 17:41:16.879 8606-8634/? W/cr_media: Requires BLUETOOTH permission 2019-08-28 17:41:16.883 8606-8649/? E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY) 2019-08-28 17:41:16.883 8606-8649/? I/Adreno: QUALCOMM build : 01d2d27, I3d52eaf367 Build Date : 12/10/16 OpenGL ES Shader Compiler Version: XE031.09.00.03 Local Branch : Remote Branch : Remote Branch : Reconstruct Branch : 2019-08-28 17:41:16.886 8606-8606/? D/CordovaActivity: Started the activity. 2019-08-28 17:41:16.893 8606-8606/? D/CordovaActivity: Resumed the activity. 2019-08-28 17:41:16.931 8606-8646/? I/OpenGLRenderer: Initialized EGL, version 1.4 2019-08-28 17:41:16.931 8606-8646/? D/OpenGLRenderer: Swap behavior 1 2019-08-28 17:41:16.947 8606-8606/? W/ContentCatcher: Failed to notify a WebView 2019-08-28 17:41:16.955 8606-8649/? W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc 2019-08-28 17:41:16.955 8606-8649/? W/VideoCapabilities: Unrecognized profile 2130706434 for video/avc 2019-08-28 17:41:16.961 8606-8649/? W/Utils: could not parse long range '175-174' 2019-08-28 17:41:16.963 8606-8649/? W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc 2019-08-28 17:41:16.963 8606-8649/? W/VideoCapabilities: Unrecognized profile 2130706434 for video/avc 2019-08-28 17:41:16.965 8606-8649/? W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc 2019-08-28 17:41:16.965 8606-8649/? W/VideoCapabilities: Unrecognized profile 2130706434 for video/avc 2019-08-28 17:41:16.967 8606-8649/? W/VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2 2019-08-28 17:41:16.967 8606-8645/? W/LOTTIE: Animation contains merge paths. Merge paths are only supported on KitKat+ and must be manually enabled by calling enableMergePathsForKitKatAndAbove(). 2019-08-28 17:41:16.968 8606-8649/? W/VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2 2019-08-28 17:41:16.983 8606-8649/? W/VideoCapabilities: Unsupported mime video/mp4v-esdp 2019-08-28 17:41:16.989 8606-8611/? I/art: Do partial code cache collection, code=30KB, data=28KB 2019-08-28 17:41:16.989 8606-8611/? I/art: After code cache collection, code=30KB, data=28KB 2019-08-28 17:41:16.989 8606-8611/? I/art: Increasing code cache capacity to 128KB 2019-08-28 17:41:16.998 8606-8649/? I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es 2019-08-28 17:41:17.046 8606-8606/? D/CordovaWebViewImpl: onPageDidNavigate(file:///android_asset/www/index.html) 2019-08-28 17:41:17.064 8606-8606/? D/CordovaWebViewImpl: onPageFinished(file:///android_asset/www/index.html) 2019-08-28 17:41:17.077 8606-8636/? D/SERVER: Handling local request: http://localhost/ 2019-08-28 17:41:17.098 8606-8606/? D/CordovaWebViewImpl: onPageDidNavigate(http://localhost/) 2019-08-28 17:41:17.114 8606-8636/? D/SERVER: Handling local request: http://localhost/runtime.js 2019-08-28 17:41:17.117 8606-8636/? D/SERVER: Handling local request: http://localhost/polyfills.js 2019-08-28 17:41:17.120 8606-8636/? D/SERVER: Handling local request: http://localhost/styles.js 2019-08-28 17:41:17.121 8606-8617/? I/art: Background sticky concurrent mark sweep GC freed 42266(2MB) AllocSpace objects, 8(160KB) LOS objects, 33% free, 12MB/17MB, paused 9.856ms total 41.218ms 2019-08-28 17:41:17.123 8606-8636/? D/SERVER: Handling local request: http://localhost/cordova.js 2019-08-28 17:41:17.125 8606-8636/? D/SERVER: Handling local request: http://localhost/vendor.js 2019-08-28 17:41:17.127 8606-8636/? D/SERVER: Handling local request: http://localhost/main.js 2019-08-28 17:41:17.438 8606-8606/? D/JsMessageQueue: Set native->JS mode to EvalBridgeMode 2019-08-28 17:41:17.453 8606-8637/? D/SERVER: Handling local request: http://localhost/cordova_plugins.js 2019-08-28 17:41:17.467 8606-8632/? D/SERVER: Handling local request: http://localhost/plugins/cordova-plugin-statusbar/www/statusbar.js 2019-08-28 17:41:17.469 8606-8632/? D/SERVER: Handling local request: http://localhost/plugins/cordova-plugin-device/www/device.js 2019-08-28 17:41:17.471 8606-8632/? D/SERVER: Handling local request: http://localhost/plugins/cordova-plugin-splashscreen/www/splashscreen.js 2019-08-28 17:41:17.473 8606-8632/? D/SERVER: Handling local request: http://localhost/plugins/cordova-plugin-ionic-webview/src/www/util.js 2019-08-28 17:41:17.475 8606-8632/? D/SERVER: Handling local request: http://localhost/plugins/cordova-plugin-ionic-keyboard/www/android/keyboard.js 2019-08-28 17:41:17.484 8606-8630/? D/SERVER: Handling local request: http://localhost/plugins/cordova-sqlite-storage/www/SQLitePlugin.js 2019-08-28 17:41:17.484 8606-8632/? D/SERVER: Handling local request: http://localhost/plugins/cordova-plugin-lottie-splashscreen/dist/www/lottie-splashscreen.js 2019-08-28 17:41:17.737 8606-8611/io.ionic.starter I/art: Do partial code cache collection, code=61KB, data=55KB 2019-08-28 17:41:17.737 8606-8611/io.ionic.starter I/art: After code cache collection, code=61KB, data=55KB 2019-08-28 17:41:17.737 8606-8611/io.ionic.starter I/art: Increasing code cache capacity to 256KB 2019-08-28 17:41:18.738 8606-8606/io.ionic.starter D/SystemWebChromeClient: http://localhost/vendor.js: Line 54506 : Angular is running in the development mode. Call enableProdMode() to enable the production mode. 2019-08-28 17:41:18.738 8606-8606/io.ionic.starter I/chromium: [INFO:CONSOLE(54506)] "Angular is running in the development mode. Call enableProdMode() to enable the production mode.", source: http://localhost/vendor.js (54506) 2019-08-28 17:41:18.744 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/common.js 2019-08-28 17:41:18.746 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/18.js 2019-08-28 17:41:18.759 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/9.js 2019-08-28 17:41:18.768 8606-8606/io.ionic.starter D/SystemWebChromeClient: http://localhost/vendor.js: Line 83901 : Ionic Native: deviceready event fired after 801 ms 2019-08-28 17:41:18.768 8606-8606/io.ionic.starter I/chromium: [INFO:CONSOLE(83901)] "Ionic Native: deviceready event fired after 801 ms", source: http://localhost/vendor.js (83901) 2019-08-28 17:41:18.781 8606-8606/io.ionic.starter D/CordovaWebViewImpl: onPageFinished(http://localhost/) 2019-08-28 17:41:18.786 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/pages-homepage-homepage-module.js 2019-08-28 17:41:18.815 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/0.js 2019-08-28 17:41:18.816 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/2.js 2019-08-28 17:41:19.013 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/8.js 2019-08-28 17:41:19.016 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/6.js 2019-08-28 17:41:19.018 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/4.js 2019-08-28 17:41:19.021 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/3.js 2019-08-28 17:41:19.028 8606-8636/io.ionic.starter D/SERVER: Handling local request: http://localhost/assets/icon/favicon.png 2019-08-28 17:41:19.053 8606-8668/io.ionic.starter I/App: WARNING: Back Button Default Behavior will be overridden. The backbutton event will be fired! 2019-08-28 17:41:19.510 8606-8646/io.ionic.starter A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 8646 (RenderThread) 2019-08-28 17:41:20.796 8606-8606/io.ionic.starter I/Choreographer: Skipped 76 frames! The application may be doing too much work on its main thread.

Device : Xiaomi Redmi note 4 Android 7

timbru31 commented 5 years ago

Sounds a lot like https://github.com/airbnb/lottie-android/issues/1199 - I'll try to reproduce this. Are you able to experience the issue with an emulator, too? Unfortunately I don't have a physical Android 7 device right now.

inDivyanshu commented 5 years ago

It works fine in emulator. I also changed animation a bit like making text static and it works fine after it.

timbru31 commented 5 years ago

Did changing the animation solve this issue? If yes, feel free to close this issue.

inDivyanshu commented 5 years ago

Yes It worked but i would have preferred if the animation with which we originally planned to roll out would not have to be changed as that particular animation at least for now is like our calling card