transistorsoft / react-native-background-fetch

Periodic callbacks in the background for both IOS and Android
MIT License
1.48k stars 193 forks source link

Triggering after terminate: "Calling JS function after bridge has been destroyed:/sending message to a Handler on a dead thread #136

Closed nickelbob closed 5 years ago

nickelbob commented 5 years ago

Your Environment

App.tsx

async componentDidMount() {

        // Configure background spot checking task
        this.ConfigureConditionAlerts();

        BackgroundFetch.status((status) => {
            switch (status) {
                case BackgroundFetch.STATUS_RESTRICTED:
                    console.log("BackgroundFetch restricted");
                    break;
                case BackgroundFetch.STATUS_DENIED:
                    console.log("BackgroundFetch denied");
                    break;
                case BackgroundFetch.STATUS_AVAILABLE:
                    console.log("BackgroundFetch is enabled");
                    break;
            }
        });

    }

private ConfigureConditionAlerts() {
        console.log("configuring background task...");
        BackgroundFetch.configure({
            minimumFetchInterval: 15,
            stopOnTerminate: false,
            startOnBoot: true, // <-- Android-only
            enableHeadless: true,
            forceReload: true
        }, CheckSpotsInBackgroundTask, (error) => {
            bugsnag.notify(new Error(error.toString()));
            console.log("[js] RNBackgroundFetch failed to start");
        });
    }

index.js

import App from './src/App';
import { AppRegistry } from 'react-native';
import BackgroundFetch from "react-native-background-fetch";
import CheckSpotsInBackgroundTask from './src/task/CheckSpotsInBackgroundTask';

console.log('lazy surfer index.js starting');

BackgroundFetch.registerHeadlessTask(CheckSpotsInBackgroundTask);
console.log('lazy surfer index.js starting 1');
AppRegistry.registerComponent('LazySurfer', () => App);

CheckSpotsInBackgroundTask.tsx

import BackgroundFetch from "react-native-background-fetch";

export default async () => {

    try {
        console.log("[js] Received background-fetch event");
        // Some data processing/fetching
    }
    catch (e) {
        //bugsnag.notify(e)
        console.log(e);
    }
    finally {
        // Required: Signal completion of your task to native code
        // If you fail to do this, the OS can terminate your app
        // or assign battery-blame for consuming too much background-time
        console.log('background fetch task finished');
        BackgroundFetch.finish(BackgroundFetch.FETCH_RESULT_NEW_DATA);
    }

}

Expected Behavior

When I terminate the app and do "adb shell cmd jobscheduler run -f com.lazysurfer 999" it should run my CheckSpotsInBackgroundTask code

Actual Behavior

Not much. See 'adb logcat' output during "adb shell cmd jobscheduler run -f com.lazysurfer 999" below (note the "sending message to a Handler on a dead thread" and "Calling JS function after bridge has been destroyed")

I also see this when running adb logcat while terminating app -

03-09 12:16:38.905  3588  9785 W ActivityManager: Scheduling restart of crashed service com.lazysurfer/com.transistorsoft.rnbackgroundfetch.HeadlessJobService in 1000ms

Steps to Reproduce

Let me know if you're stumped on this and I can try to find a minimal reproducible sample.

Context

This works fine when the app is running or in the background but doesn't work when terminated.

Debug logs

adb logcat while terminated and executing "adb shell cmd jobscheduler run -f com.lazysurfer 999"

03-09 12:06:18.676  5016  5016 E adbd    : service_to_fd: shell,v2,raw:cmd jobscheduler run -f com.lazysurfer 999
03-09 12:06:18.694 17353 17353 E propClient: PropClient failed to load
03-09 12:06:18.717  3588  3604 D StorageManagerService: getExternalStorageMountMode : 1
03-09 12:06:18.718  3588  3604 D StorageManagerService: getExternalStorageMountMode : 3
03-09 12:06:18.719  3588  3604 D StorageManagerService: getExternalStorageMountMode : final mountMode=1, uid : 10197, packageName : com.lazysurfer
03-09 12:06:18.709 17353 17353 E propClient: PropClient failed to load
03-09 12:06:18.720  3588  3604 I ApplicationPolicy: isApplicationExternalStorageWhitelisted:com.lazysurfer user:0
03-09 12:06:18.720  3588  3604 D ApplicationPolicy: isApplicationExternalStorageWhitelisted: DO is not enabled on user 0. Allowed.
03-09 12:06:18.720  3588  3604 D ActivityManager: package  com.lazysurfer, user - 0 is SDcard whitelisted
03-09 12:06:18.720  3588  3604 I ApplicationPolicy: isApplicationExternalStorageBlacklisted:com.lazysurfer user:0
03-09 12:06:18.720  3588  3604 D ApplicationPolicy: isApplicationExternalStorageBlacklisted: DO is not enabled on user 0. Allowed.
03-09 12:06:18.740  3588  3604 I ActivityManager: Start proc 17356:com.lazysurfer/u0a197 for service com.lazysurfer/com.transistorsoft.tsbackgroundfetch.FetchJobService
03-09 12:06:18.744 17356 17356 E Zygote  : isWhitelistProcess - Process is Whitelisted
03-09 12:06:18.745 17356 17356 E libpersona: scanKnoxPersonas
03-09 12:06:18.745 17356 17356 E libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
03-09 12:06:18.750 17356 17356 W SELinux : SELinux selinux_android_compute_policy_index : Policy Index[2],  Con:u:r:zygote:s0 RAM:SEPF_SAMSUNG-SM-G930A_8.0.0_0007, [-1 -1 -1 -1 0 1]
03-09 12:06:18.752 17356 17356 I SELinux : SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.lazysurfer
03-09 12:06:18.765 17356 17356 I zygote  : Late-enabling -Xcheck:jni
03-09 12:06:18.796   723   723 I android.hardware.wifi@1.0-service: getLinkLayerStats
03-09 12:06:18.811 17356 17356 W zygote  : Using default instruction set features for ARM CPU variant (cortex-a9) using conservative defaults
03-09 12:06:18.811  3588  3588 D CustomFrequencyManagerService: releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT  frequency : 883200  uid : 1000  pid : 3588  tag : GESTURE_DETECTED@CPU_MIN@74
03-09 12:06:18.822  5016  5016 E adbd    : recv: OPEN 000008dc 00000000 000b:6A 64 77 70 3A 31 37 33 35 36 00
03-09 12:06:18.822  5016  5016 E adbd    : service_to_fd: jdwp:17356
03-09 12:06:18.842 17356 17356 D TimaKeyStoreProvider: TimaKeyStore is not enabled: cannot add TimaSignature Service and generateKeyPair Service
03-09 12:06:18.842 17356 17356 D ActivityThread: Added TimaKeyStore provider
03-09 12:06:18.846  3588  3604 I ActivityManager: DSS on for com.lazysurfer and scale is 1.0
03-09 12:06:18.881 17356 17356 I zygote  : no shared libraies, dex_files: 1
03-09 12:06:18.972 17356 17356 V FA      : Registered activity lifecycle callback
03-09 12:06:18.977 17356 17377 W DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
03-09 12:06:18.984 17356 17356 D FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
03-09 12:06:18.985 17356 17356 I FirebaseInitProvider: FirebaseApp initialization successful
03-09 12:06:18.992 17356 17356 D SoLoader: init start
03-09 12:06:18.992 17356 17356 D SoLoader: adding system library source: /vendor/lib
03-09 12:06:18.992 17356 17356 D SoLoader: adding system library source: /system/lib
03-09 12:06:18.993 17356 17356 D SoLoader: adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.lazysurfer-JWQmt3HT0ExO1fZerxNUlA==/lib/arm flags = 0]
03-09 12:06:18.993 17356 17379 W DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
03-09 12:06:18.993 17356 17356 D SoLoader: adding backup  source: com.facebook.soloader.ApkSoSource[root = /data/data/com.lazysurfer/lib-main flags = 1]
03-09 12:06:18.994 17356 17356 D SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/lib flags = 2]
03-09 12:06:18.994 17356 17356 D SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/vendor/lib flags = 2]
03-09 12:06:18.994 17356 17356 D SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.lazysurfer-JWQmt3HT0ExO1fZerxNUlA==/lib/arm flags = 0]
03-09 12:06:18.995 17356 17356 D SoLoader: Preparing SO source: com.facebook.soloader.ApkSoSource[root = /data/data/com.lazysurfer/lib-main flags = 1]
03-09 12:06:18.998 17356 17356 V fb-UnpackingSoSource: locked dso store /data/user/0/com.lazysurfer/lib-main
03-09 12:06:19.004 17356 17356 I fb-UnpackingSoSource: dso store is up-to-date: /data/user/0/com.lazysurfer/lib-main
03-09 12:06:19.004 17356 17356 V fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.lazysurfer/lib-main
03-09 12:06:19.005 17356 17356 D SoLoader: init finish: 4 SO sources prepared
03-09 12:06:19.005 17356 17356 D SoLoader: init exiting
03-09 12:06:19.012 17356 17356 D TSBackgroundFetch: - Background Fetch event received
03-09 12:06:19.013 17356 17379 I FirebaseAuth: [FirebaseAuth:] Loading module via FirebaseOptions.
03-09 12:06:19.013 17356 17379 I FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to gms implementation
03-09 12:06:19.024 17356 17356 D TSBackgroundFetch: - finish
03-09 12:06:19.024 17356 17356 D TSBackgroundFetch: - jobFinished
03-09 12:06:19.028  3588  5273 I SamsungAlarmManager: setLocked to kernel - T:2 / 20190309T121919, SetElapsed=612049318, nowELAPSED=611269328
03-09 12:06:19.029  3588  5273 D SamsungAlarmManager: setInexact Listener (T:2/F:0/AC:false) 20190309T121233 - CU:1000/CP:3588
03-09 12:06:19.029  3588  5273 I SamsungAlarmManager: setLocked to kernel - T:2 / 20190309T121233, SetElapsed=611644224, nowELAPSED=611269328
03-09 12:06:19.031  3588  5273 D SamsungAlarmManager: setInexact Listener (T:2/F:0/AC:false) 20190309T122017 - CU:1000/CP:3588
03-09 12:06:19.045  3588  5273 I SamsungAlarmManager: setLocked to kernel - T:2 / 20190309T121919, SetElapsed=612049318, nowELAPSED=611269345
03-09 12:06:19.045  3588  5273 D SamsungAlarmManager: setInexact Listener (T:2/F:0/AC:false) 20190309T121233 - CU:1000/CP:3588
03-09 12:06:19.045  3588  5273 I SamsungAlarmManager: setLocked to kernel - T:2 / 20190309T121233, SetElapsed=611644224, nowELAPSED=611269345
03-09 12:06:19.047  3588  5273 D SamsungAlarmManager: setInexact Listener (T:2/F:0/AC:false) 20190309T122017 - CU:1000/CP:3588
03-09 12:06:19.058 17356 17356 D TSBackgroundFetch: HeadlessJobService onStartJob
03-09 12:06:19.061 17356 17356 D SoLoader: About to load: libreactnativejni.so
03-09 12:06:19.062 17356 17376 V FA      : Collection enabled
03-09 12:06:19.063 17356 17356 D SoLoader: libreactnativejni.so not found on /data/data/com.lazysurfer/lib-main
03-09 12:06:19.063 17356 17356 D SoLoader: libreactnativejni.so found on /data/app/com.lazysurfer-JWQmt3HT0ExO1fZerxNUlA==/lib/arm
03-09 12:06:19.063 17356 17356 D SoLoader: Not resolving dependencies for libreactnativejni.so
03-09 12:06:19.063 17356 17376 V FA      : App package, google app id: com.lazysurfer, 1:763059670439:android:9acc3e19081998a3
03-09 12:06:19.066 17356 17376 I FA      : App measurement is starting up, version: 14711
03-09 12:06:19.069 17356 17376 I FA      : To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
03-09 12:06:19.070 17356 17376 I FA      : To enable faster debug mode event logging run:
03-09 12:06:19.070 17356 17376 I FA      :   adb shell setprop debug.firebase.analytics.app com.lazysurfer
03-09 12:06:19.070 17356 17376 D FA      : Debug-level message logging enabled
03-09 12:06:19.083 17356 17356 D SoLoader: Loaded: libreactnativejni.so
03-09 12:06:19.084 17356 17356 D SoLoader: About to load: libfb.so
03-09 12:06:19.084 17356 17356 D SoLoader: libfb.so not found on /data/data/com.lazysurfer/lib-main
03-09 12:06:19.085 17356 17356 D SoLoader: libfb.so found on /data/app/com.lazysurfer-JWQmt3HT0ExO1fZerxNUlA==/lib/arm
03-09 12:06:19.085 17356 17356 D SoLoader: Not resolving dependencies for libfb.so
03-09 12:06:19.088 17356 17356 D SoLoader: About to load: libfb.so
03-09 12:06:19.088 17356 17356 D SoLoader: libfb.so not found on /data/data/com.lazysurfer/lib-main
03-09 12:06:19.089 17356 17356 D SoLoader: libfb.so found on /data/app/com.lazysurfer-JWQmt3HT0ExO1fZerxNUlA==/lib/arm
03-09 12:06:19.089 17356 17356 D SoLoader: Not resolving dependencies for libfb.so
03-09 12:06:19.089 17356 17356 I zygote  : Thread[1,tid=17356,Native,Thread*=0xe6bf4000,peer=0x727fd550,"main"] recursive attempt to load library "/data/app/com.lazysurfer-JWQmt3HT0ExO1fZerxNUlA==/lib/arm/libfb.so"
03-09 12:06:19.089 17356 17356 D SoLoader: Loaded: libfb.so
03-09 12:06:19.090 17356 17356 D SoLoader: Loaded: libfb.so
03-09 12:06:19.095 17356 17356 D ReactNative: ReactInstanceManager.ctor()
03-09 12:06:19.096 17356 17356 D SoLoader: init exiting
03-09 12:06:19.110 17356 17376 V FA      : Connecting to remote service
03-09 12:06:19.117 17356 17356 D NetworkSecurityConfig: No Network Security Config specified, using platform default
03-09 12:06:19.129 17356 17376 V FA      : Connection attempt already in progress
03-09 12:06:19.131  3588  5273 I SensorService: createSensorEventConnection package name com.facebook.react.common.ShakeDetector
03-09 12:06:19.133  3588  5273 D SensorService: Calling batch handle==1 flags=0 rate=66667000 timeout== 0
03-09 12:06:19.133   721  2017 I qti_sensors_hal: batch:sensor(android.sensor.accelerometer) handle:1 flags:0x0 period_ns 66667000
03-09 12:06:19.134   721  2017 I qti_sensors_hal: SMGRReportAdd:sensor(android.sensor.accelerometer) handle=1, sample_rate=14.999925 report_rate=0 buffer=0
03-09 12:06:19.141 17356 17356 D SensorManager: registerListener :: 1, K6DS3TR Accelerometer, 66667, 0,
03-09 12:06:19.157  3336  3827 D DnsProxyListener: DNSDBG::dns addrinfo af 2
03-09 12:06:19.158  3336  3827 D DnsProxyListener: DNSDBG::dns addrinfo af 2
03-09 12:06:19.158 17356 17356 D ReactNative: ReactInstanceManager.createReactContextInBackground()
03-09 12:06:19.159 17356 17356 D ReactNative: ReactInstanceManager.recreateReactContextInBackgroundInner()
03-09 12:06:19.162 17356 17356 D ReactNative: ReactInstanceManager.onJSBundleLoadedFromServer()
03-09 12:06:19.165 17356 17356 D ReactNative: ReactInstanceManager.recreateReactContextInBackground()
03-09 12:06:19.165 17356 17356 D ReactNative: ReactInstanceManager.runCreateReactContextOnNewThread()
03-09 12:06:19.171 17356 17392 D ReactNative: ReactInstanceManager.createReactContext()
03-09 12:06:19.175 17356 17376 D FA      : Connected to remote service
03-09 12:06:19.178 17356 17376 V FA      : Processing queued up service tasks: 2
03-09 12:06:19.185 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupViewManager
03-09 12:06:19.187 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode
03-09 12:06:19.187 17356 17395 W unknown:InspectorPackagerConnection: Couldn't connect to packager, will silently retry
03-09 12:06:19.191  3588  3588 D PreBindingService: handleMessage : 1
03-09 12:06:19.192 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeViewManager
03-09 12:06:19.193   721   901 I qti_sensors_hal: processReportInd: Accel - X: -0.376 Y: 0.538 Z: 9.622
03-09 12:06:19.193 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode
03-09 12:06:19.197 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextViewManager
03-09 12:06:19.198 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextShadowNode
03-09 12:06:19.201 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.checkbox.ReactCheckBoxManager
03-09 12:06:19.213 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode
03-09 12:06:19.230 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager
03-09 12:06:19.236 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager
03-09 12:06:19.242 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDropdownPickerManager
03-09 12:06:19.245 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollViewManager
03-09 12:06:19.258 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollContainerViewManager
03-09 12:06:19.260  5654  5654 D io_stats: !@   8,0 r 590570 49127984 w 804694 20366768 d 60269 26580132 f 245654 245628 iot 980170 699043 th 51200 0 0 pt 0 inp 0 0 426623.670
03-09 12:06:19.262 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager
03-09 12:06:19.267 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ProgressBarShadowNode
03-09 12:06:19.272 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager
03-09 12:06:19.284 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager
03-09 12:06:19.290 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager$ReactSliderShadowNode
03-09 12:06:19.293 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
03-09 12:06:19.298 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
03-09 12:06:19.301 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.toolbar.ReactToolbarManager
03-09 12:06:19.310 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.webview.ReactWebViewManager
03-09 12:06:19.322 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager
03-09 12:06:19.329 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewManager
03-09 12:06:19.331 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewShadowNode
03-09 12:06:19.334 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageViewManager
03-09 12:06:19.335 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode
03-09 12:06:19.341 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.image.ReactImageManager
03-09 12:06:19.351 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ReactModalHostManager
03-09 12:06:19.355 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ModalHostShadowNode
03-09 12:06:19.357 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager
03-09 12:06:19.359 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextShadowNode
03-09 12:06:19.362 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
03-09 12:06:19.378 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputShadowNode
03-09 12:06:19.388 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager
03-09 12:06:19.395 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextShadowNode
03-09 12:06:19.398 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.view.ReactViewManager
03-09 12:06:19.409 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.viewpager.ReactViewPagerManager
03-09 12:06:19.414 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
03-09 12:06:19.415 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextShadowNode
03-09 12:06:19.418 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenContainerViewManager
03-09 12:06:19.421 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenViewManager
03-09 12:06:19.424 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class co.apptailor.googlesignin.RNGoogleSigninButtonViewManager
03-09 12:06:19.430 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.gesturehandler.react.RNGestureHandlerRootViewManager
03-09 12:06:19.434 17356 17392 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.gesturehandler.react.RNGestureHandlerButtonViewManager
03-09 12:06:19.469  3588  9785 W StorageManager: getStorageLowBytes lowPercent : 5, lowBytes : 1251943424, maxLowBytes : 524288000
03-09 12:06:19.470 17356 17392 D SoLoader: About to load: librealmreact.so
03-09 12:06:19.470 17356 17392 D SoLoader: librealmreact.so not found on /data/data/com.lazysurfer/lib-main
03-09 12:06:19.471 17356 17392 D SoLoader: librealmreact.so found on /data/app/com.lazysurfer-JWQmt3HT0ExO1fZerxNUlA==/lib/arm
03-09 12:06:19.471 17356 17392 D SoLoader: Not resolving dependencies for librealmreact.so
03-09 12:06:19.481 17356 17392 D SoLoader: Loaded: librealmreact.so
03-09 12:06:19.482 17356 17392 V JSRealm : setDefaultRealmFileDirectory
03-09 12:06:19.482 17356 17392 D JSRealm : Absolute path: /data/data/com.lazysurfer/files
03-09 12:06:19.486 17356 17392 D RNFirebaseAuth: instance-created
03-09 12:06:19.487 17356 17392 D RNFirebaseAnalytics: New instance
03-09 12:06:19.488 17356 17392 D ReactNative: Initializing React Xplat Bridge.
03-09 12:06:19.492 17356 17392 D ReactNative: Initializing React Xplat Bridge before initializeBridge
03-09 12:06:19.508 17356 17392 D ReactNative: Initializing React Xplat Bridge after initializeBridge
03-09 12:06:19.508 17356 17392 D ReactNative: CatalystInstanceImpl.runJSBundle()
03-09 12:06:19.510 17356 17399 D ReactNative: ReactInstanceManager.setupReactContext()
03-09 12:06:19.510 17356 17399 D ReactNative: CatalystInstanceImpl.initialize()
03-09 12:06:19.519 17356 17356 W unknown:ReactNative: Packager connection already open, nooping.
03-09 12:06:19.521 17356 17399 D RNFirebaseAuth: instance-initialized
03-09 12:06:19.522 17356 17399 D ReactNativeNotifs: Native module init
03-09 12:06:19.526  3588  9785 W ActivityManager: Background start not allowed: service Intent { cmp=com.lazysurfer/com.wix.reactnativenotifications.gcm.FcmInstanceIdRefreshHandlerService (has extras) } to com.lazysurfer/com.wix.reactnativenotifications.gcm.FcmInstanceIdRefreshHandlerService from pid=17356 uid=10197 pkg=com.lazysurfer
03-09 12:06:19.532 17356 17399 E unknown:ReactNative: Exception in native call
03-09 12:06:19.532 17356 17399 E unknown:ReactNative: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.lazysurfer/com.wix.reactnativenotifications.gcm.FcmInstanceIdRefreshHandlerService (has extras) }: app is in background uid UidRecord{4558379 u0a197 TRNB idle procs:1 seq(0,0,0)}
03-09 12:06:19.532 17356 17399 E unknown:ReactNative:   at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1538)
03-09 12:06:19.532 17356 17399 E unknown:ReactNative:   at android.app.ContextImpl.startService(ContextImpl.java:1484)
03-09 12:06:19.532 17356 17399 E unknown:ReactNative:   at android.content.ContextWrapper.startService(ContextWrapper.java:663)
03-09 12:06:19.532 17356 17399 E unknown:ReactNative:   at com.wix.reactnativenotifications.RNNotificationsModule.startGcmIntentService(RNNotificationsModule.java:121)
03-09 12:06:19.532 17356 17399 E unknown:ReactNative:   at com.wix.reactnativenotifications.RNNotificationsModule.initialize(RNNotificationsModule.java:52)
03-09 12:06:19.532 17356 17399 E unknown:ReactNative:   at com.facebook.react.bridge.ModuleHolder.doInitialize(ModuleHolder.java:206)
03-09 12:06:19.532 17356 17399 E unknown:ReactNative:   at com.facebook.react.bridge.ModuleHolder.markInitializable(ModuleHolder.java:92)
03-09 12:06:19.532 17356 17399 E unknown:ReactNative:   at com.facebook.react.bridge.NativeModuleRegistry.notifyJSInstanceInitialized(NativeModuleRegistry.java:110)
03-09 12:06:19.532 17356 17399 E unknown:ReactNative:   at com.facebook.react.bridge.CatalystInstanceImpl$2.run(CatalystInstanceImpl.java:401)
03-09 12:06:19.532 17356 17399 E unknown:ReactNative:   at android.os.Handler.handleCallback(Handler.java:789)
03-09 12:06:19.532 17356 17399 E unknown:ReactNative:   at android.os.Handler.dispatchMessage(Handler.java:98)
03-09 12:06:19.532 17356 17399 E unknown:ReactNative:   at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
03-09 12:06:19.532 17356 17399 E unknown:ReactNative:   at android.os.Looper.loop(Looper.java:164)
03-09 12:06:19.532 17356 17399 E unknown:ReactNative:   at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
03-09 12:06:19.532 17356 17399 E unknown:ReactNative:   at java.lang.Thread.run(Thread.java:764)
03-09 12:06:19.534 17356 17356 E unknown:ReactNative: Unable to launch redbox because react activity is not available, here is the error that redbox would've displayed: Not allowed to start service Intent { cmp=com.lazysurfer/com.wix.reactnativenotifications.gcm.FcmInstanceIdRefreshHandlerService (has extras) }: app is in background uid UidRecord{4558379 u0a197 TRNB idle procs:1 seq(0,0,0)}
03-09 12:06:19.534 17356 17356 D ReactNative: CatalystInstanceImpl.destroy() start
03-09 12:06:19.534 17356 17399 D RNFirebaseAuth: instance-destroyed
03-09 12:06:19.540  3588  9785 D BatteryService: !@BatteryListener : batteryPropertiesChanged!
03-09 12:06:19.540  3588  9785 D BatteryService: level:100, scale:100, status:5, health:2, present:true, voltage: 4270, temperature: 292, technology: Li-ion, AC powered:false, USB powered:true, POGO powered:false, Wireless powered:false, icon:17303851, invalid charger:0, maxChargingCurrent:0, maxChargingVoltage:0, chargeCounter:0
03-09 12:06:19.540  3588  9785 D BatteryService: online:4, current avg:-168, charge type:1, power sharing:false, high voltage charger:false, capacity:280000, batterySWSelfDischarging:false, misc_event:0, current_event:0, current_now:-262
03-09 12:06:19.541  3588  3588 D BatteryService: Sending ACTION_BATTERY_CHANGED.
03-09 12:06:19.542  3588  3588 I MotionRecognitionService: Plugged
03-09 12:06:19.542  3588  3588 D MotionRecognitionService:   mCableConnection= 1
03-09 12:06:19.542  3588  3588 D MotionRecognitionService: setPowerConnected : mGripEnabled = false
03-09 12:06:19.542  3588  3588 D SamsungPhoneWindowManager: ACTION_BATTERY_CHANGED - Level :: 100, battStatus :: 5
03-09 12:06:19.543  3588  3849 D UsbDeviceManager: handleMessage -> MSG_UPDATE_CHARGING_STATE = 1
03-09 12:06:19.544  4889  4889 D KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED
03-09 12:06:19.544  3588  6079 W StorageManager: getStorageLowBytes lowPercent : 5, lowBytes : 1251943424, maxLowBytes : 524288000
03-09 12:06:19.546  4889  4889 D BatteryController: onReceive-ACTION_BATTERY_CHANGED : mLevel=100, mBatteryStatus=5
03-09 12:06:19.550  4889  4889 D PowerUI : priorPlugType = 2 mPlugType =  2
03-09 12:06:19.550 13843 13843 D BatteryManager: ***Receiving Battery Change 100.0% ***
03-09 12:06:19.550 13843 13843 D BatteryManager: ***Receiving Battery Change1 1.0% ***
03-09 12:06:19.550 13843 13843 D BatteryManager: ***Receiving Battery Change2 0.15% ***
03-09 12:06:19.550 13843 13843 D BatteryManager: ***Receiving Battery Change3 false% ***
03-09 12:06:20.025 17356 17356 W unknown:ReactNative: Calling JS function after bridge has been destroyed: AppRegistry.startHeadlessTask([1,"BackgroundFetch",{}])
03-09 12:06:20.028 17356 17356 W MessageQueue: Handler (android.os.Handler) {bb70243} sending message to a Handler on a dead thread
03-09 12:06:20.028 17356 17356 W MessageQueue: java.lang.IllegalStateException: Handler (android.os.Handler) {bb70243} sending message to a Handler on a dead thread
03-09 12:06:20.028 17356 17356 W MessageQueue:  at android.os.MessageQueue.enqueueMessage(MessageQueue.java:545)
03-09 12:06:20.028 17356 17356 W MessageQueue:  at android.os.Handler.enqueueMessage(Handler.java:661)
03-09 12:06:20.028 17356 17356 W MessageQueue:  at android.os.Handler.sendMessageAtTime(Handler.java:630)
03-09 12:06:20.028 17356 17356 W MessageQueue:  at android.os.Handler.sendMessageDelayed(Handler.java:600)
03-09 12:06:20.028 17356 17356 W MessageQueue:  at android.os.Handler.postDelayed(Handler.java:428)
03-09 12:06:20.028 17356 17356 W MessageQueue:  at com.facebook.react.jstasks.HeadlessJsTaskContext.scheduleTaskTimeout(HeadlessJsTaskContext.java:152)
03-09 12:06:20.028 17356 17356 W MessageQueue:  at com.facebook.react.jstasks.HeadlessJsTaskContext.startTask(HeadlessJsTaskContext.java:103)
03-09 12:06:20.028 17356 17356 W MessageQueue:  at com.transistorsoft.rnbackgroundfetch.HeadlessTask$2.run(HeadlessTask.java:100)
03-09 12:06:20.028 17356 17356 W MessageQueue:  at android.os.Handler.handleCallback(Handler.java:789)
03-09 12:06:20.028 17356 17356 W MessageQueue:  at android.os.Handler.dispatchMessage(Handler.java:98)
03-09 12:06:20.028 17356 17356 W MessageQueue:  at android.os.Looper.loop(Looper.java:164)
03-09 12:06:20.028 17356 17356 W MessageQueue:  at android.app.ActivityThread.main(ActivityThread.java:6944)
03-09 12:06:20.028 17356 17356 W MessageQueue:  at java.lang.reflect.Method.invoke(Native Method)
03-09 12:06:20.028 17356 17356 W MessageQueue:  at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
03-09 12:06:20.028 17356 17356 W MessageQueue:  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
03-09 12:06:20.029 17356 17356 D TSBackgroundFetch: onHeadlessJsTaskStart: 1
03-09 12:06:20.182 17356 17398 W unknown:ReactNative: Tried to enqueue runnable on already finished thread: 'native_modules... dropping Runnable.
03-09 12:06:20.184 17356 17398 W MessageQueue: Handler (com.facebook.react.bridge.queue.MessageQueueThreadHandler) {e0bf8ec} sending message to a Handler on a dead thread
03-09 12:06:20.184 17356 17398 W MessageQueue: java.lang.IllegalStateException: Handler (com.facebook.react.bridge.queue.MessageQueueThreadHandler) {e0bf8ec} sending message to a Handler on a dead thread
03-09 12:06:20.184 17356 17398 W MessageQueue:  at android.os.MessageQueue.enqueueMessage(MessageQueue.java:545)
03-09 12:06:20.184 17356 17398 W MessageQueue:  at android.os.Handler.enqueueMessage(Handler.java:661)
03-09 12:06:20.184 17356 17398 W MessageQueue:  at android.os.Handler.sendMessageAtTime(Handler.java:630)
03-09 12:06:20.184 17356 17398 W MessageQueue:  at android.os.Handler.sendMessageDelayed(Handler.java:600)
03-09 12:06:20.184 17356 17398 W MessageQueue:  at android.os.Handler.post(Handler.java:356)
03-09 12:06:20.184 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadImpl.runOnQueue(MessageQueueThreadImpl.java:59)
03-09 12:06:20.184 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
03-09 12:06:20.184 17356 17398 W MessageQueue:  at android.os.Handler.handleCallback(Handler.java:789)
03-09 12:06:20.184 17356 17398 W MessageQueue:  at android.os.Handler.dispatchMessage(Handler.java:98)
03-09 12:06:20.184 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
03-09 12:06:20.184 17356 17398 W MessageQueue:  at android.os.Looper.loop(Looper.java:164)
03-09 12:06:20.184 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
03-09 12:06:20.184 17356 17398 W MessageQueue:  at java.lang.Thread.run(Thread.java:764)
03-09 12:06:20.239 17356 17398 W unknown:ReactNative: Tried to enqueue runnable on already finished thread: 'native_modules... dropping Runnable.
03-09 12:06:20.241 17356 17398 W MessageQueue: Handler (com.facebook.react.bridge.queue.MessageQueueThreadHandler) {e0bf8ec} sending message to a Handler on a dead thread
03-09 12:06:20.241 17356 17398 W MessageQueue: java.lang.IllegalStateException: Handler (com.facebook.react.bridge.queue.MessageQueueThreadHandler) {e0bf8ec} sending message to a Handler on a dead thread
03-09 12:06:20.241 17356 17398 W MessageQueue:  at android.os.MessageQueue.enqueueMessage(MessageQueue.java:545)
03-09 12:06:20.241 17356 17398 W MessageQueue:  at android.os.Handler.enqueueMessage(Handler.java:661)
03-09 12:06:20.241 17356 17398 W MessageQueue:  at android.os.Handler.sendMessageAtTime(Handler.java:630)
03-09 12:06:20.241 17356 17398 W MessageQueue:  at android.os.Handler.sendMessageDelayed(Handler.java:600)
03-09 12:06:20.241 17356 17398 W MessageQueue:  at android.os.Handler.post(Handler.java:356)
03-09 12:06:20.241 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadImpl.runOnQueue(MessageQueueThreadImpl.java:59)
03-09 12:06:20.241 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
03-09 12:06:20.241 17356 17398 W MessageQueue:  at android.os.Handler.handleCallback(Handler.java:789)
03-09 12:06:20.241 17356 17398 W MessageQueue:  at android.os.Handler.dispatchMessage(Handler.java:98)
03-09 12:06:20.241 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
03-09 12:06:20.241 17356 17398 W MessageQueue:  at android.os.Looper.loop(Looper.java:164)
03-09 12:06:20.241 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
03-09 12:06:20.241 17356 17398 W MessageQueue:  at java.lang.Thread.run(Thread.java:764)
03-09 12:06:20.250 17356 17398 W unknown:ReactNative: Tried to enqueue runnable on already finished thread: 'native_modules... dropping Runnable.
03-09 12:06:20.251 17356 17398 W MessageQueue: Handler (com.facebook.react.bridge.queue.MessageQueueThreadHandler) {e0bf8ec} sending message to a Handler on a dead thread
03-09 12:06:20.251 17356 17398 W MessageQueue: java.lang.IllegalStateException: Handler (com.facebook.react.bridge.queue.MessageQueueThreadHandler) {e0bf8ec} sending message to a Handler on a dead thread
03-09 12:06:20.251 17356 17398 W MessageQueue:  at android.os.MessageQueue.enqueueMessage(MessageQueue.java:545)
03-09 12:06:20.251 17356 17398 W MessageQueue:  at android.os.Handler.enqueueMessage(Handler.java:661)
03-09 12:06:20.251 17356 17398 W MessageQueue:  at android.os.Handler.sendMessageAtTime(Handler.java:630)
03-09 12:06:20.251 17356 17398 W MessageQueue:  at android.os.Handler.sendMessageDelayed(Handler.java:600)
03-09 12:06:20.251 17356 17398 W MessageQueue:  at android.os.Handler.post(Handler.java:356)
03-09 12:06:20.251 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadImpl.runOnQueue(MessageQueueThreadImpl.java:59)
03-09 12:06:20.251 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
03-09 12:06:20.251 17356 17398 W MessageQueue:  at android.os.Handler.handleCallback(Handler.java:789)
03-09 12:06:20.251 17356 17398 W MessageQueue:  at android.os.Handler.dispatchMessage(Handler.java:98)
03-09 12:06:20.251 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
03-09 12:06:20.251 17356 17398 W MessageQueue:  at android.os.Looper.loop(Looper.java:164)
03-09 12:06:20.251 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
03-09 12:06:20.251 17356 17398 W MessageQueue:  at java.lang.Thread.run(Thread.java:764)
03-09 12:06:20.344 17356 17398 W ReactNativeJS: Require cycle: node_modules\react-native-firebase\dist\utils\apps.js -> node_modules\react-native-firebase\dist\modules\core\app.js -> node_modules\react-native-firebase\dist\utils\apps.js
03-09 12:06:20.344 17356 17398 W ReactNativeJS:
03-09 12:06:20.344 17356 17398 W ReactNativeJS: Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
03-09 12:06:20.350 17356 17398 W ReactNativeJS: Require cycle: node_modules\react-native-firebase\dist\modules\admob\index.js -> node_modules\react-native-firebase\dist\modules\admob\Interstitial.js -> node_modules\react-native-firebase\dist\modules\admob\index.js
03-09 12:06:20.350 17356 17398 W ReactNativeJS:
03-09 12:06:20.350 17356 17398 W ReactNativeJS: Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
03-09 12:06:20.352 17356 17398 W ReactNativeJS: Require cycle: node_modules\react-native-firebase\dist\modules\admob\index.js -> node_modules\react-native-firebase\dist\modules\admob\RewardedVideo.js -> node_modules\react-native-firebase\dist\modules\admob\index.js
03-09 12:06:20.352 17356 17398 W ReactNativeJS:
03-09 12:06:20.352 17356 17398 W ReactNativeJS: Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
03-09 12:06:20.528 17356 17398 W ReactNativeJS: Require cycle: node_modules\react-native-firebase\dist\modules\database\Reference.js -> node_modules\react-native-firebase\dist\utils\SyncTree.js -> node_modules\react-native-firebase\dist\modules\database\Reference.js
03-09 12:06:20.528 17356 17398 W ReactNativeJS:
03-09 12:06:20.528 17356 17398 W ReactNativeJS: Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
03-09 12:06:20.531 17356 17398 W ReactNativeJS: Require cycle: node_modules\react-native-firebase\dist\modules\core\firebase.js -> node_modules\react-native-firebase\dist\utils\apps.js -> node_modules\react-native-firebase\dist\modules\core\app.js -> node_modules\react-native-firebase\dist\modules\database\index.js -> node_modules\react-native-firebase\dist\modules\core\firebase.js
03-09 12:06:20.531 17356 17398 W ReactNativeJS:
03-09 12:06:20.531 17356 17398 W ReactNativeJS: Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
03-09 12:06:20.539 17356 17398 W ReactNativeJS: Require cycle: node_modules\react-native-firebase\dist\modules\firestore\DocumentSnapshot.js -> node_modules\react-native-firebase\dist\modules\firestore\DocumentReference.js -> node_modules\react-native-firebase\dist\modules\firestore\DocumentSnapshot.js
03-09 12:06:20.539 17356 17398 W ReactNativeJS:
03-09 12:06:20.539 17356 17398 W ReactNativeJS: Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
03-09 12:06:20.539 17356 17398 W ReactNativeJS: Require cycle: node_modules\react-native-firebase\dist\modules\firestore\CollectionReference.js -> node_modules\react-native-firebase\dist\modules\firestore\Query.js -> node_modules\react-native-firebase\dist\modules\firestore\QuerySnapshot.js -> node_modules\react-native-firebase\dist\modules\firestore\DocumentChange.js -> node_modules\react-native-firebase\dist\modules\firestore\DocumentSnapshot.js -> node_modules\react-native-firebase\dist\modules\firestore\DocumentReference.js -> node_modules\react-native-firebase\dist\modules\firestore\CollectionReference.js
03-09 12:06:20.539 17356 17398 W ReactNativeJS:
03-09 12:06:20.539 17356 17398 W ReactNativeJS: Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
03-09 12:06:20.541 17356 17398 W ReactNativeJS: Require cycle: node_modules\react-native-firebase\dist\modules\firestore\DocumentReference.js -> node_modules\react-native-firebase\dist\modules\firestore\utils\serialize.js -> node_modules\react-native-firebase\dist\modules\firestore\DocumentReference.js
03-09 12:06:20.541 17356 17398 W ReactNativeJS:
03-09 12:06:20.541 17356 17398 W ReactNativeJS: Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
03-09 12:06:20.542 17356 17398 W ReactNativeJS: Require cycle: node_modules\react-native-firebase\dist\modules\firestore\utils\serialize.js -> node_modules\react-native-firebase\dist\modules\firestore\FieldValue.js -> node_modules\react-native-firebase\dist\modules\firestore\utils\serialize.js
03-09 12:06:20.542 17356 17398 W ReactNativeJS:
03-09 12:06:20.542 17356 17398 W ReactNativeJS: Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
03-09 12:06:20.549 17356 17398 W ReactNativeJS: Require cycle: node_modules\react-native-firebase\dist\modules\core\firebase.js -> node_modules\react-native-firebase\dist\utils\apps.js -> node_modules\react-native-firebase\dist\modules\core\app.js -> node_modules\react-native-firebase\dist\modules\functions\index.js -> node_modules\react-native-firebase\dist\modules\core\firebase.js
03-09 12:06:20.549 17356 17398 W ReactNativeJS:
03-09 12:06:20.549 17356 17398 W ReactNativeJS: Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
03-09 12:06:20.598 17356 17398 W ReactNativeJS: Require cycle: node_modules\react-native-firebase\dist\modules\storage\index.js -> node_modules\react-native-firebase\dist\modules\storage\reference.js -> node_modules\react-native-firebase\dist\modules\storage\task.js -> node_modules\react-native-firebase\dist\modules\storage\index.js
03-09 12:06:20.598 17356 17398 W ReactNativeJS:
03-09 12:06:20.598 17356 17398 W ReactNativeJS: Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
03-09 12:06:20.604  3588  5035 E Watchdog: !@Sync 14210 [2019-03-09 12:06:20.604]
03-09 12:06:21.211  3336  3827 D DnsProxyListener: DNSDBG::dns addrinfo af 2
03-09 12:06:21.551 17356 17398 W ReactNativeJS: Require cycle: node_modules\react-native\Libraries\Network\fetch.js -> node_modules\react-native\Libraries\vendor\core\whatwg-fetch.js -> node_modules\react-native\Libraries\Network\fetch.js
03-09 12:06:21.551 17356 17398 W ReactNativeJS:
03-09 12:06:21.551 17356 17398 W ReactNativeJS: Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
03-09 12:06:21.553 17356 17398 W unknown:ReactNative: Tried to enqueue runnable on already finished thread: 'native_modules... dropping Runnable.
03-09 12:06:21.555 17356 17398 W MessageQueue: Handler (com.facebook.react.bridge.queue.MessageQueueThreadHandler) {e0bf8ec} sending message to a Handler on a dead thread
03-09 12:06:21.555 17356 17398 W MessageQueue: java.lang.IllegalStateException: Handler (com.facebook.react.bridge.queue.MessageQueueThreadHandler) {e0bf8ec} sending message to a Handler on a dead thread
03-09 12:06:21.555 17356 17398 W MessageQueue:  at android.os.MessageQueue.enqueueMessage(MessageQueue.java:545)
03-09 12:06:21.555 17356 17398 W MessageQueue:  at android.os.Handler.enqueueMessage(Handler.java:661)
03-09 12:06:21.555 17356 17398 W MessageQueue:  at android.os.Handler.sendMessageAtTime(Handler.java:630)
03-09 12:06:21.555 17356 17398 W MessageQueue:  at android.os.Handler.sendMessageDelayed(Handler.java:600)
03-09 12:06:21.555 17356 17398 W MessageQueue:  at android.os.Handler.post(Handler.java:356)
03-09 12:06:21.555 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadImpl.runOnQueue(MessageQueueThreadImpl.java:59)
03-09 12:06:21.555 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
03-09 12:06:21.555 17356 17398 W MessageQueue:  at android.os.Handler.handleCallback(Handler.java:789)
03-09 12:06:21.555 17356 17398 W MessageQueue:  at android.os.Handler.dispatchMessage(Handler.java:98)
03-09 12:06:21.555 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
03-09 12:06:21.555 17356 17398 W MessageQueue:  at android.os.Looper.loop(Looper.java:164)
03-09 12:06:21.555 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
03-09 12:06:21.555 17356 17398 W MessageQueue:  at java.lang.Thread.run(Thread.java:764)
03-09 12:06:21.813   723   723 I android.hardware.wifi@1.0-service: getLinkLayerStats
03-09 12:06:21.816 17356 17398 W unknown:ReactNative: Tried to enqueue runnable on already finished thread: 'native_modules... dropping Runnable.
03-09 12:06:21.817 17356 17398 W MessageQueue: Handler (com.facebook.react.bridge.queue.MessageQueueThreadHandler) {e0bf8ec} sending message to a Handler on a dead thread
03-09 12:06:21.817 17356 17398 W MessageQueue: java.lang.IllegalStateException: Handler (com.facebook.react.bridge.queue.MessageQueueThreadHandler) {e0bf8ec} sending message to a Handler on a dead thread
03-09 12:06:21.817 17356 17398 W MessageQueue:  at android.os.MessageQueue.enqueueMessage(MessageQueue.java:545)
03-09 12:06:21.817 17356 17398 W MessageQueue:  at android.os.Handler.enqueueMessage(Handler.java:661)
03-09 12:06:21.817 17356 17398 W MessageQueue:  at android.os.Handler.sendMessageAtTime(Handler.java:630)
03-09 12:06:21.817 17356 17398 W MessageQueue:  at android.os.Handler.sendMessageDelayed(Handler.java:600)
03-09 12:06:21.817 17356 17398 W MessageQueue:  at android.os.Handler.post(Handler.java:356)
03-09 12:06:21.817 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadImpl.runOnQueue(MessageQueueThreadImpl.java:59)
03-09 12:06:21.817 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
03-09 12:06:21.817 17356 17398 W MessageQueue:  at android.os.Handler.handleCallback(Handler.java:789)
03-09 12:06:21.817 17356 17398 W MessageQueue:  at android.os.Handler.dispatchMessage(Handler.java:98)
03-09 12:06:21.817 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
03-09 12:06:21.817 17356 17398 W MessageQueue:  at android.os.Looper.loop(Looper.java:164)
03-09 12:06:21.817 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
03-09 12:06:21.817 17356 17398 W MessageQueue:  at java.lang.Thread.run(Thread.java:764)
03-09 12:06:21.818 17356 17398 W ReactNativeJS: Require cycle: node_modules\react-native-gesture-handler\index.js -> node_modules\react-native-gesture-handler\DrawerLayout.js -> node_modules\react-native-gesture-handler\index.js
03-09 12:06:21.818 17356 17398 W ReactNativeJS:
03-09 12:06:21.818 17356 17398 W ReactNativeJS: Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
03-09 12:06:21.920 17356 17398 W unknown:ReactNative: Tried to enqueue runnable on already finished thread: 'native_modules... dropping Runnable.
03-09 12:06:21.922 17356 17398 W MessageQueue: Handler (com.facebook.react.bridge.queue.MessageQueueThreadHandler) {e0bf8ec} sending message to a Handler on a dead thread
03-09 12:06:21.922 17356 17398 W MessageQueue: java.lang.IllegalStateException: Handler (com.facebook.react.bridge.queue.MessageQueueThreadHandler) {e0bf8ec} sending message to a Handler on a dead thread
03-09 12:06:21.922 17356 17398 W MessageQueue:  at android.os.MessageQueue.enqueueMessage(MessageQueue.java:545)
03-09 12:06:21.922 17356 17398 W MessageQueue:  at android.os.Handler.enqueueMessage(Handler.java:661)
03-09 12:06:21.922 17356 17398 W MessageQueue:  at android.os.Handler.sendMessageAtTime(Handler.java:630)
03-09 12:06:21.922 17356 17398 W MessageQueue:  at android.os.Handler.sendMessageDelayed(Handler.java:600)
03-09 12:06:21.922 17356 17398 W MessageQueue:  at android.os.Handler.post(Handler.java:356)
03-09 12:06:21.922 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadImpl.runOnQueue(MessageQueueThreadImpl.java:59)
03-09 12:06:21.922 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
03-09 12:06:21.922 17356 17398 W MessageQueue:  at android.os.Handler.handleCallback(Handler.java:789)
03-09 12:06:21.922 17356 17398 W MessageQueue:  at android.os.Handler.dispatchMessage(Handler.java:98)
03-09 12:06:21.922 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
03-09 12:06:21.922 17356 17398 W MessageQueue:  at android.os.Looper.loop(Looper.java:164)
03-09 12:06:21.922 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
03-09 12:06:21.922 17356 17398 W MessageQueue:  at java.lang.Thread.run(Thread.java:764)
03-09 12:06:21.926 17356 17398 I ReactNativeJS: lazy surfer index.js starting
03-09 12:06:21.958 17356 17398 I ReactNativeJS: lazy surfer index.js starting 1
03-09 12:06:21.960 17356 17398 W unknown:ReactNative: Tried to enqueue runnable on already finished thread: 'native_modules... dropping Runnable.
03-09 12:06:21.961 17356 17398 W MessageQueue: Handler (com.facebook.react.bridge.queue.MessageQueueThreadHandler) {e0bf8ec} sending message to a Handler on a dead thread
03-09 12:06:21.961 17356 17398 W MessageQueue: java.lang.IllegalStateException: Handler (com.facebook.react.bridge.queue.MessageQueueThreadHandler) {e0bf8ec} sending message to a Handler on a dead thread
03-09 12:06:21.961 17356 17398 W MessageQueue:  at android.os.MessageQueue.enqueueMessage(MessageQueue.java:545)
03-09 12:06:21.961 17356 17398 W MessageQueue:  at android.os.Handler.enqueueMessage(Handler.java:661)
03-09 12:06:21.961 17356 17398 W MessageQueue:  at android.os.Handler.sendMessageAtTime(Handler.java:630)
03-09 12:06:21.961 17356 17398 W MessageQueue:  at android.os.Handler.sendMessageDelayed(Handler.java:600)
03-09 12:06:21.961 17356 17398 W MessageQueue:  at android.os.Handler.post(Handler.java:356)
03-09 12:06:21.961 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadImpl.runOnQueue(MessageQueueThreadImpl.java:59)
03-09 12:06:21.961 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
03-09 12:06:21.961 17356 17398 W MessageQueue:  at android.os.Handler.handleCallback(Handler.java:789)
03-09 12:06:21.961 17356 17398 W MessageQueue:  at android.os.Handler.dispatchMessage(Handler.java:98)
03-09 12:06:21.961 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
03-09 12:06:21.961 17356 17398 W MessageQueue:  at android.os.Looper.loop(Looper.java:164)
03-09 12:06:21.961 17356 17398 W MessageQueue:  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
03-09 12:06:21.961 17356 17398 W MessageQueue:  at java.lang.Thread.run(Thread.java:764)
03-09 12:06:22.034 17356 17390 D ReactNative: CatalystInstanceImpl.destroy() end
03-09 12:06:22.182 14493 14533 D ContactsProvider_EventLog: contents_sample_state: [CONTACT contacts(3) data(23) accounts({com.google (3)=2, vnd.sec.contact.phone (2)=1}) accounts deleted({}) calls([]) countryIso(US) userId(0)  ]
03-09 12:06:22.182 14493 14533 D ContactsProvider_EventLog: contents_sample_state: [ agr({[3]=2, [2]=1})  ]
03-09 12:06:22.182 14493 14533 D ContactsProvider_EventLog: contents_sample_state: [ actCnt({com.samsung.android.contacts(17159)=25, android.process.acore(14493)=1})  ]
03-09 12:06:22.182 14493 14533 D ContactsProvider_EventLog: contents_sample_state: [PROFILE contacts(0) data(0) accounts({})  ]
03-09 12:06:22.182 14493 14533 D ContactsProvider_EventLog: contents_sample_state: [SAPROFILE contacts(1) data(1) accounts({vnd.sec.contact.phone (1)=1})  ]
03-09 12:06:22.191 14493 14533 E ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 1Kb duration : 5ms lastUpdatedAfter : 11029 ms mFlush_time_threasold : 2000 mCurrentSize : 539
03-09 12:06:22.349 31296 15841 I EventLogSendingHelper: Sending log events.
03-09 12:06:22.771  3588  8089 D SSRM:a  : SIOP:: AP = 380, PST = 366 (W:6), BAT = 292, CHG = 335
03-09 12:06:22.917   718   718 D SEC LightsHAL: button : 0 +
03-09 12:06:22.950   718   718 D SEC LightsHAL: button : 0 -
03-09 12:06:23.253  3336  3827 D DnsProxyListener: DNSDBG::dns addrinfo af 2
03-09 12:06:23.892 17356 17371 I zygote  : Waiting for a blocking GC ProfileSaver
03-09 12:06:23.913 17356 17371 I zygote  : WaitForGcToComplete blocked for 21.085ms for cause ProfileSaver
03-09 12:06:24.217 17356 17376 V FA      : Inactivity, disconnecting from the service
03-09 12:06:24.264  5654  5654 D io_stats: !@   8,0 r 590570 49127984 w 804761 20367336 d 60271 26580208 f 245656 245630 iot 980210 699059 th 51200 0 0 pt 0 inp 0 0 426628.673
03-09 12:06:24.839   723   723 I android.hardware.wifi@1.0-service: getLinkLayerStats
03-09 12:06:25.214 16601 16654 I ReschedulableTimer: [#CMH#] ReschedulableTimer started
03-09 12:06:25.314  3336  3827 D DnsProxyListener: DNSDBG::dns addrinfo af 2
03-09 12:06:27.349 31296 15834 I EventLogSendingHelper: Sending log events.
03-09 12:06:27.376  3336  3827 D DnsProxyListener: DNSDBG::dns addrinfo af 2
03-09 12:06:28.076   721   901 I qti_sensors_hal: processReportInd: Accel - X: -0.373 Y: 0.554 Z: 9.614
03-09 12:06:29.272  5654  5654 D io_stats: !@   8,0 r 590570 49127984 w 804787 20367496 d 60272 26580212 f 245657 245631 iot 980210 699065 th 51200 0 0 pt 0 inp 0 0 426633.681
03-09 12:06:29.405  3336  3827 D DnsProxyListener: DNSDBG::dns addrinfo af 2
03-09 12:06:29.827  3588  6079 D BatteryService: !@BatteryListener : batteryPropertiesChanged!
03-09 12:06:29.829  3588  6079 D BatteryService: level:100, scale:100, status:5, health:2, present:true, voltage: 4337, temperature: 294, technology: Li-ion, AC powered:false, USB powered:true, POGO powered:false, Wireless powered:false, icon:17303851, invalid charger:0, maxChargingCurrent:0, maxChargingVoltage:0, chargeCounter:0
03-09 12:06:29.829  3588  6079 D BatteryService: online:4, current avg:79, charge type:1, power sharing:false, high voltage charger:false, capacity:280000, batterySWSelfDischarging:false, misc_event:0, current_event:0, current_now:191
03-09 12:06:29.830  3588  3588 D BatteryService: Sending ACTION_BATTERY_CHANGED.
03-09 12:06:29.835  3588  3588 I MotionRecognitionService: Plugged
03-09 12:06:29.836  3588  3588 D MotionRecognitionService:   mCableConnection= 1
03-09 12:06:29.836  3588  3588 D MotionRecognitionService: setPowerConnected : mGripEnabled = false
03-09 12:06:29.837  3588  3588 D SamsungPhoneWindowManager: ACTION_BATTERY_CHANGED - Level :: 100, battStatus :: 5
03-09 12:06:29.839  3588  3849 D UsbDeviceManager: handleMessage -> MSG_UPDATE_CHARGING_STATE = 1
03-09 12:06:29.841  4889  4889 D KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED
03-09 12:06:29.849  4889  4889 D BatteryController: onReceive-ACTION_BATTERY_CHANGED : mLevel=100, mBatteryStatus=5
03-09 12:06:29.853 13843 13843 D BatteryManager: ***Receiving Battery Change 100.0% ***
03-09 12:06:29.853 13843 13843 D BatteryManager: ***Receiving Battery Change1 1.0% ***
03-09 12:06:29.853 13843 13843 D BatteryManager: ***Receiving Battery Change2 0.15% ***
03-09 12:06:29.853 13843 13843 D BatteryManager: ***Receiving Battery Change3 false% ***
03-09 12:06:29.855  4889  4889 D PowerUI : priorPlugType = 2 mPlugType =  2
03-09 12:06:30.895   723   723 I android.hardware.wifi@1.0-service: getLinkLayerStats
03-09 12:06:31.467  3336  3827 D DnsProxyListener: DNSDBG::dns addrinfo af 2
03-09 12:06:31.680  4889  5150 D NetworkController.MobileSignalController(0/-2): onSignalStrengthsChanged signalStrength=SignalStrength: 19 255 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 0 2147483647 0x5 P gsm|lte level=5
03-09 12:06:31.681  4889  5150 D NetworkController.MobileSignalController(0/-2): getMobileIconGroup(): 0
03-09 12:06:31.681  4889  5150 D NetworkController.MobileSignalController(0/-2): updateATTMobileIconGroup(): 0
03-09 12:06:31.923  3588  6079 D ConnectivityService: filterNetworkStateForUid() uid: 10027 networkInfo: [type: WIFI[] - WIFI, state: CONNECTED/CONNECTED, reason: (unspecified), extra: "NorthMain", failover: false, available: true, roaming: false, metered: false]
03-09 12:06:32.825  3588  8089 D SSRM:a  : SIOP:: AP = 340, PST = 370 (W:6), BAT = 294, CHG = 332
03-09 12:06:32.963  3588  4829 D WifiConnectivityMonitor:  [|227]
03-09 12:06:33.536  3336  3827 D DnsProxyListener: DNSDBG::dns addrinfo af 2
03-09 12:06:33.937   723   723 I android.hardware.wifi@1.0-service: getLinkLayerStats
03-09 12:06:34.215  4889  5150 D NetworkController.MobileSignalController(0/-2): onSignalStrengthsChanged signalStrength=SignalStrength: 19 255 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 0 2147483647 0x5 P gsm|lte level=5
03-09 12:06:34.215  4889  5150 D NetworkController.MobileSignalController(0/-2): getMobileIconGroup(): 0
03-09 12:06:34.215  4889  5150 D NetworkController.MobileSignalController(0/-2): updateATTMobileIconGroup(): 0
03-09 12:06:34.277  5654  5654 D io_stats: !@   8,0 r 590570 49127984 w 804797 20367544 d 60272 26580212 f 245658 245632 iot 980210 699068 th 51200 0 0 pt 0 inp 0 0 426638.687
03-09 12:06:35.595  3336  3827 D DnsProxyListener: DNSDBG::dns addrinfo af 2
03-09 12:06:36.961   721   901 I qti_sensors_hal: processReportInd: Accel - X: -0.384 Y: 0.545 Z: 9.606
03-09 12:06:36.972   723   723 I android.hardware.wifi@1.0-service: getLinkLayerStats
03-09 12:06:37.663  3336  3827 D DnsProxyListener: DNSDBG::dns addrinfo af 2
03-09 12:06:37.922  3588  3850 W StorageManager: getStorageFullBytes DEFAULT_FULL_THRESHOLD_BYTES : 20971520, threadhold : 20971520
03-09 12:06:37.923  3588  3850 W StorageManager: getStorageLowBytes lowPercent : 5, lowBytes : 1251943424, maxLowBytes : 524288000
03-09 12:06:37.927  3588  3850 W DeviceStorageMonitorService: updateBroadcasts(/data) oldLevel:0, newLevel:0, seq:1
03-09 12:06:37.928  3588  3850 W DeviceStorageMonitorService: updateBroadcasts_filenode(/data) fn_oldLevel:0, fn_newLevel:0, seq:1
03-09 12:06:38.592  3588  3765 I UsageStatsService: User[0] Flushing usage stats to disk
03-09 12:06:39.284  5654  5654 D io_stats: !@   8,0 r 590570 49127984 w 804814 20368076 d 60277 26580328 f 245665 245639 iot 980260 699096 th 51200 0 0 pt 0 inp 0 0 426643.693
03-09 12:06:40.001   723   723 I android.hardware.wifi@1.0-service: getLinkLayerStats
03-09 12:06:40.103  3588  6079 D BatteryService: !@BatteryListener : batteryPropertiesChanged!
03-09 12:06:42.886  3588  8089 D SSRM:a  : SIOP:: AP = 320, PST = 358 (W:6), BAT = 294, CHG = 326
03-09 12:06:43.027   723   723 I android.hardware.wifi@1.0-service: getLinkLayerStats
03-09 12:06:44.292  5654  5654 D io_stats: !@   8,0 r 590570 49127984 w 804827 20368156 d 60278 26580332 f 245666 245640 iot 980270 699100 th 51200 0 0 pt 0 inp 0 0 426648.701
03-09 12:06:44.464  4889  5150 D NetworkController.MobileSignalController(0/-2): onSignalStrengthsChanged signalStrength=SignalStrength: 19 255 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 0 2147483647 0x5 P gsm|lte level=5
03-09 12:06:44.465  4889  5150 D NetworkController.MobileSignalController(0/-2): getMobileIconGroup(): 0
03-09 12:06:44.465  4889  5150 D NetworkController.MobileSignalController(0/-2): updateATTMobileIconGroup(): 0
03-09 12:06:45.845   721   901 I qti_sensors_hal: processReportInd: Accel - X: -0.388 Y: 0.552 Z: 9.596
03-09 12:06:45.900  3336  3827 D DnsProxyListener: DNSDBG::dns addrinfo af 2
03-09 12:06:46.086   723   723 I android.hardware.wifi@1.0-service: getLinkLayerStats
03-09 12:06:49.116   723   723 I android.hardware.wifi@1.0-service: getLinkLayerStats
03-09 12:06:49.298  5654  5654 D io_stats: !@   8,0 r 590570 49127984 w 804831 20368220 d 60279 26580336 f 245667 245641 iot 980270 699102 th 51200 0 0 pt 0 inp 0 0 426653.707
03-09 12:06:49.584  3588  4640 I TLC_TIMA_PKM_initialize: initializing...
03-09 12:06:49.585  3588  4640 I TLC_TIMA_PKM_initialize: root = /firmware/image, root_strlen = 15
03-09 12:06:49.585  3588  4640 I TLC_TIMA_PKM_initialize: process = tima_pkm, process_strlen = 8
03-09 12:06:49.588  3588  4640 I TZ: qc_tlc_communication: root = /firmware/image, root_len = 15
03-09 12:06:49.589  3588  4640 I TZ: qc_tlc_communication: process = tima_pkm, process_strlen = 8
03-09 12:06:49.589  3588  4640 I TZ: qc_tlc_communication: aligned max_sendmsg_size = 262208 = 0x40040
03-09 12:06:49.590  3588  4640 I TZ: qc_tlc_communication: aligned max_recvmsg_size = 262208 = 0x40040
03-09 12:06:49.590  3588  4640 I TZ: qc_tlc_communication: max_message_size = 524416 = 0x80080
03-09 12:06:49.590  3588  4640 D QSEECOMAPI: QSEECom_get_handle sb_length = 0x80080
03-09 12:06:49.592  3588  4640 D QSEECOMAPI: App is not loaded in QSEE
03-09 12:06:49.593  3588  4640 D QSEECOMAPI: app_arch = 1, total_files = 8
03-09 12:06:49.643  3588  4640 D QSEECOMAPI: Loaded image: APP id = 1566
03-09 12:06:49.643  3588  4640 I TZ: qc_tlc_communication: TLC_COMM: path = /firmware/image, fname = tima_pkm, tzapp is loaded
03-09 12:06:49.643  3588  4640 E TLC_TIMA_PKM_initialize: tima_pkm : /system/etc/tima/kern_sec_info1
03-09 12:06:49.645  3588  4640 E TLC_TIMA_PKM_initialize: tima_pkm : /system/etc/tima/kern_sec_info2
03-09 12:06:49.647  3588  4640 E TLC_TIMA_PKM_initialize: tima_pkm : /system/etc/tima/kern_sec_info3
03-09 12:06:49.649  3588  4640 E TLC_TIMA_PKM_initialize: tima_pkm : /system/etc/tima/kern_sec_info4
03-09 12:06:49.652  3588  4640 E TLC_TIMA_PKM_initialize: tima_pkm : /system/etc/tima/kern_sec_info5
03-09 12:06:49.654  3588  4640 E TLC_TIMA_PKM_initialize: tima_pkm : /system/etc/tima/kern_sec_info6
03-09 12:06:49.665  3588  4640 E TLC_TIMA_PKM_initialize: tima_pkm : /system/etc/tima/kern_sec_info7
03-09 12:06:49.667  3588  4640 E TLC_TIMA_PKM_initialize: tima_pkm : /system/etc/tima/kern_sec_info8
03-09 12:06:49.668  3588  4640 I TLC_TIMA_PKM_initialize: Trustlet response is completed
03-09 12:06:50.023  3336  3827 D DnsProxyListener: DNSDBG::dns addrinfo af 2
03-09 12:06:50.440  3588  6079 D BatteryService: !@BatteryListener : batteryPropertiesChanged!
03-09 12:06:50.442  3588  6079 D BatteryService: level:100, scale:100, status:5, health:2, present:true, voltage: 4344, temperature: 295, technology: Li-ion, AC powered:false, USB powered:true, POGO powered:false, Wireless powered:false, icon:17303851, invalid charger:0, maxChargingCurrent:0, maxChargingVoltage:0, chargeCounter:0
03-09 12:06:50.442  3588  6079 D BatteryService: online:4, current avg:209, charge type:1, power sharing:false, high voltage charger:false, capacity:280000, batterySWSelfDischarging:false, misc_event:0, current_event:0, current_now:197
03-09 12:06:50.442  3588  3588 D BatteryService: Sending ACTION_BATTERY_CHANGED.
03-09 12:06:50.451  3588  3588 I MotionRecognitionService: Plugged
03-09 12:06:50.452  3588  3588 D MotionRecognitionService:   mCableConnection= 1
03-09 12:06:50.452  3588  3588 D MotionRecognitionService: setPowerConnected : mGripEnabled = false
03-09 12:06:50.452  3588  3588 D SamsungPhoneWindowManager: ACTION_BATTERY_CHANGED - Level :: 100, battStatus :: 5
03-09 12:06:50.454  3588  3849 D UsbDeviceManager: handleMessage -> MSG_UPDATE_CHARGING_STATE = 1
03-09 12:06:50.455  4889  4889 D KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED
03-09 12:06:50.456  4889  4889 D BatteryController: onReceive-ACTION_BATTERY_CHANGED : mLevel=100, mBatteryStatus=5
03-09 12:06:50.461 13843 13843 D BatteryManager: ***Receiving Battery Change 100.0% ***
03-09 12:06:50.462 13843 13843 D BatteryManager: ***Receiving Battery Change1 1.0% ***
03-09 12:06:50.462 13843 13843 D BatteryManager: ***Receiving Battery Change2 0.15% ***
03-09 12:06:50.462 13843 13843 D BatteryManager: ***Receiving Battery Change3 false% ***
03-09 12:06:50.466  4889  4889 D PowerUI : priorPlugType = 2 mPlugType =  2
03-09 12:06:50.615  3588  5035 E Watchdog: !@Sync 14211 [2019-03-09 12:06:50.614]
03-09 12:06:50.858 17000 17016 I Finsky  : [1943] hyc.run(5): Stats for Executor: BlockingExecutor hzm@fcabbc8[Running, pool size = 2, active threads = 0, queued tasks = 0, completed tasks = 8]
03-09 12:06:50.860 17000 17016 I Finsky  : [1943] hyc.run(5): Stats for Executor: LightweightExecutor hzm@3391461[Running, pool size = 3, active threads = 0, queued tasks = 0, completed tasks = 60]
03-09 12:06:50.965 17000 17016 I Finsky  : [1943] hyc.run(5): Stats for Executor: bgExecutor hzm@7896b86[Running, pool size = 4, active threads = 0, queued tasks = 0, completed tasks = 21]
03-09 12:06:52.093  3336  3827 D DnsProxyListener: DNSDBG::dns addrinfo af 2
03-09 12:06:52.142   723   723 I android.hardware.wifi@1.0-service: getLinkLayerStats
03-09 12:06:52.382  3588  4640 I TLC_TIMA_PKM_measure_kernel: TIMA: response_id = 3
03-09 12:06:52.383  3588  4640 I TLC_TIMA_PKM_measure_kernel: TIMA: response ret = 0, result_ondemand = MSG=Kernel Verification Success;
03-09 12:06:52.383  3588  4640 D QSEECOMAPI: QSEECom_dealloc_memory
03-09 12:06:52.383  3588  4640 D QSEECOMAPI: QSEECom_shutdown_app, app_id = 1566
03-09 12:06:52.941  3588  8089 D SSRM:a  : SIOP:: AP = 320, PST = 348 (W:6), BAT = 295, CHG = 322
03-09 12:06:54.140  3336  3827 D DnsProxyListener: DNSDBG::dns addrinfo af 2
03-09 12:06:54.304  5654  5654 D io_stats: !@   8,0 r 590570 49127984 w 804840 20368264 d 60279 26580336 f 245668 245642 iot 980270 699104 th 51200 0 0 pt 0 inp 0 0 426658.713
03-09 12:06:54.727   721   901 I qti_sensors_hal: processReportInd: Accel - X: -0.393 Y: 0.550 Z: 9.581
03-09 12:06:55.171   723   723 I android.hardware.wifi@1.0-service: getLinkLayerStats
03-09 12:06:56.190  3336  3827 D DnsProxyListener: DNSDBG::dns addrinfo af 2
christocracy commented 5 years ago

Invalid issue template.

nickelbob commented 5 years ago

Yeah sorry, hit submit accidentally. Filling in details now...

nickelbob commented 5 years ago

OK, updated details. Let me know how I can help troubleshoot. Thanks for the library - working great on iOS! :)

christocracy commented 5 years ago

I’m on vacation until next week but forceReload is incompatible with enableHeadless

nickelbob commented 5 years ago

Ok - I tried it with forceReload:false and received the same error. I'll keep fiddling with it, have a good vacation and let me know if you have any other ideas about what might be going on. Thanks!

nickelbob commented 5 years ago

Alright this is interesting - I set forceReload:false and then after I terminated I waited 5+ seconds and then ran the "adb shell cmd jobscheduler run -f com.lazysurfer 999" and it worked! It continued to work everytime I ran the command.

Just to make sure I wasn't crazy I started the app again, terminated and quickly ran the command after that - same issue as above. I tried running it quite a few times after that ( even after 5+ seconds after termination) and it never worked.

So there's some sort of gap between termination and the point at which you can run the "adb shell cmd jobscheduler run -f com.lazysurfer 999" command successfully. Also, if you run the command in this gap it breaks the command until you start the app again.

Perhaps it's related to this error message?

03-09 12:16:38.905  3588  9785 W ActivityManager: Scheduling restart of crashed service com.lazysurfer/com.transistorsoft.rnbackgroundfetch.HeadlessJobService in 1000ms
nickelbob commented 5 years ago

Ehh, this is not working as well as I thought... I'm not able to consistently trigger the task after termination no matter how long I wait.

The other odd thing is that when I try to relaunch the app after termination + unsuccessful task triggering, the app hangs - it executes my logging statements in index.js but not in the ctor for App.tsx.

nickelbob commented 5 years ago

@christocracy still struggling with this unfortunately. Lmk if you have any ideas or need any more details. Thanks!

atulmy commented 5 years ago

Hey @nickelbob did you by any chance find a solution to this issue? I am trying to build a calendar app with local scheduled notifications which requires a task to be run every 3 hours. In my case I am also facing this issue where if the app is killed the background fetch task is not executed. 😓

nickelbob commented 5 years ago

@atulmy I did two things that appear to have fixed this - I set enableHeadless = true and I'm using firebase notifications instead of react-native-notifications. Give those a try and if it still doesn't work lemme know and I'll see if I can help.

atulmy commented 5 years ago

Unfortunately, enableHeadless: true, did not work in my case. However it only works if app is foreground/background when not killed.

Android: 9 Pie Command: adb shell cmd jobscheduler run -f com.example.app 999

I think this issue will only resolve after closing #137 / PR #4 (fixes done by @mason-parachute).

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

stale[bot] commented 5 years ago

Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.