colaorange / daily-money-one-doc

daily money one, issues
0 stars 0 forks source link

App crash when starting after a long standby #39

Closed dennischen closed 2 weeks ago

dennischen commented 3 months ago

error1.log normal.log

dennischen commented 3 months ago

start up normally if trun auto backup off normal-without-backup.log

dennischen commented 3 months ago

start up fail if trun aubotbackup up again after a day inactivity crash-again-withbackup.log

dennischen commented 3 months ago

maybe relate to this : https://github.com/expo/expo/issues/28728 and this: https://github.com/expo/expo/pull/29024

dennischen commented 3 weeks ago

Stack trace of core level: Native module load error causing crash when starting the app (with a registered background fetch task) after a day of app inactivity

Fatal Exception: com.facebook.react.common.JavascriptException
TypeError: Cannot read property 'NativeModule' of undefined, js engine: hermes, 
stack: anonymous@1:684380 
loadModuleImplementation@1:75965 
guardedLoadModule@1:75513 
metroRequire@1:75135 
anonymous@1:681236 
loadModuleImplementation@1:75965 
guardedLoadModule@1:75513 
metroRequire@1:75135 
anonymous@1:680454 
loadModuleImplementation@1:75965 
guardedLoadModule@1:75513 
metroRequire@1:75135 
anonymous@1:677337 
loadModuleImplementation@1:75965 
guardedLoadModule@1:75513 
metroRequire@1:75135 
anonymous@1:82017 
loadModuleImplementation@1:75965 
guardedLoadModule@1:75470 
metroRequire@1:75135 
global@1:74687

And The following is an app-level exception stack trace recorded by the application's error handling.

Fatal Exception: com.facebook.react.common.JavascriptException
Exit from Fatal Error, js engine: hermes, 
stack: _construct@1:87311 
Wrapper@1:86965 
_callSuper@1:103100 
SyntheticError@1:104592 
handleException@1:103929 
handleError@1:261346 
?anon_0_@1:817973 
asyncGeneratorStep@1:82850 
_next@1:83108 
anonymous@1:274158 
_callTimer@1:273157 
_callReactNativeMicrotasksPass@1:273301 
callReactNativeMicrotasks@1:275235 
__callReactNativeMicrotasks@1:94329 
anonymous@1:93464 
__guard@1:94203 
flushedQueue@1:93375 
invokeCallbackAndReturnFlushedQueue@1:93318
dennischen commented 3 weeks ago

The following is an simulated App background-fetch task import time error

TypeError: Cannot read property 'test' of undefined, js engine: hermes, 
stack: anonymous@1:887278 
loadModuleImplementation@1:75997 
guardedLoadModule@1:75502 
metroRequire@1:75167 
?anon_0_@1:883381 
asyncGeneratorStep@1:82882 
_next@1:83140 anonymous@1:83092 
anonymous@1:83013 
?anon_0_@1:886821 
asyncGeneratorStep@1:82882 
_next@1:83140 
anonymous@1:83092 
anonymous@1:83013 
anonymous@1:887083
dennischen commented 2 weeks ago

fix by remove expo-task-manager and expo-background-fetch, then implemeted native background task to call headless-js-worker