marcshilling / react-native-idle-timer

A cross-platform bridge that allows you to enable and disable the screen idle timer in your React Native app
MIT License
212 stars 41 forks source link

Android app crashes after installing the package #25

Closed ph98 closed 3 years ago

ph98 commented 3 years ago

Hi I've installed the package on 0.62.2 and app crashes before connecting to packager.

and here is the latest line of the adb -d logcat | grep MYAPP:

04-01 16:41:27.935  3427  4566 W SurfaceFlinger: Attempting to destroy on removed layer: Splash Screen com.MYAPP[508]#0
04-01 16:41:27.936  3898  4836 I WindowManager: Cancelling animation restarting=false, leash=null, surface=Surface(name=AppWindowToken{516860d token=Token{cd78a4 ActivityRecord{1cacb37 u0 com.MYAPP/.MainActivity t11313}}})/@0x6d252d4, parent=Surface(name=Task=11313)/@0xc20c7d, caller=com.android.server.wm.SurfaceAnimator.cancelAnimation:183 com.android.server.wm.WindowContainer.cancelAnimation:1179 com.android.server.wm.AppWindowToken.cancelAnimation:2431 com.android.server.wm.AppWindowToken.onRemovedFromDisplay:815 com.android.server.wm.DisplayContent.removeAppToken:1075 
04-01 16:41:27.939  3427  3556 I SurfaceFlinger: id=13654 Removed AppWindowToken{516860d token=Token{cd78a4 ActivityRecord{1cacb37 u0 com.MYAPP/.MainActivity t11313}}}#0 (0/61)
04-01 16:41:27.944  3427  3427 I Layer   : id=13654 onRemoved AppWindowToken{516860d token=Token{cd78a4 ActivityRecord{1cacb37 u0 com.MYAPP/.MainActivity t11313}}}#0 
04-01 16:41:27.944  3427  3427 I Layer   : id=13655 onRemoved b8cfa4b Splash Screen com.MYAPP#0 
04-01 16:41:27.945  3427  3427 I Layer   : id=13656 onRemoved Splash Screen com.MYAPP[508]#0 
04-01 16:41:28.137   639   671 D AppErrorNotification: errorType : 24, process : com.MYAPP , uid : 0
04-01 16:41:34.466   639   671 V FasUtils: There is com.MYAPP [10545] in FAS table
04-01 16:41:34.559   639   671 W AppErrorNotification: Skip. com.MYAPP is not notiable item
04-01 16:41:37.134  3898  3905 D SurfaceControl: finalize(protected), animation-leash is released by finalize, sc=Surface(name=Surface(name=AppWindowToken{516860d token=Token{cd78a4 ActivityRecord{1cacb37 u0 com.MYAPP/.MainActivity t11313}}})/@0x6d252d4 - animation-leash)/@0x387bd1f, nativeObject=491918915328, caller=java.lang.Daemons$FinalizerDaemon.doFinalize:250 java.lang.Daemons$FinalizerDaemon.runInternal:237 java.lang.Daemons$Daemon.run:103 java.lang.Thread.run:764 <bottom of call stack> <bottom of call stack> <bottom of call stack> 
ph98 commented 3 years ago

after ./gradlew clean it working like a charm :)