DataDog / dd-sdk-reactnative

Datadog SDK for ReactNative
Apache License 2.0
122 stars 42 forks source link

Enabling error tracking makes the app stuck at start #33

Closed VincentCATILLON closed 3 years ago

VincentCATILLON commented 3 years ago

Describe what happened

When we enable error tracking in DdSdkReactNativeConfiguration init, our application stuck on loading.

Steps to reproduce the issue:

npm install dd-sdk-reactnative@1.0.0-alpha3 npx react-native run-android adb logcat or look at the console using debugger

Describe what you expected:

Being able to track errors in our app without any blocking load.

Additional context

[...]
|    +--- com.datadoghq:dd-sdk-android:1.8.0-alpha1
|    |    +--- org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.3.61
|    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.3.61 -> 1.4.21 (*)
|    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.4.0 -> 1.4.21 (*)
|    |    +--- com.squareup.okhttp3:okhttp:3.12.6 -> 3.14.1 (*)
|    |    +--- com.google.code.gson:gson:2.8.6
|    |    +--- com.lyft.kronos:kronos-android:0.0.1-alpha10
|    |    |    +--- com.lyft.kronos:kronos-java:0.0.1-alpha10
|    |    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.10 -> 1.4.21 (*)
|    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.10 -> 1.4.21 (*)
|    |    +--- androidx.core:core:1.3.1 (*)
|    |    +--- androidx.navigation:navigation-fragment:2.3.0
|    |    |    +--- androidx.fragment:fragment:1.2.4 (*)
|    |    |    \--- androidx.navigation:navigation-runtime:2.3.0
|    |    |         +--- androidx.navigation:navigation-common:2.3.0
|    |    |         |    +--- androidx.annotation:annotation:1.1.0
|    |    |         |    +--- androidx.core:core:1.1.0 -> 1.3.1 (*)
|    |    |         |    \--- androidx.collection:collection:1.1.0 (*)
|    |    |         +--- androidx.activity:activity:1.1.0 (*)
|    |    |         +--- androidx.lifecycle:lifecycle-viewmodel:2.2.0 (*)
|    |    |         +--- androidx.savedstate:savedstate:1.0.0 (*)
|    |    |         \--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.2.0 (*)
|    |    +--- androidx.navigation:navigation-runtime-ktx:2.3.0
|    |    |    +--- androidx.navigation:navigation-runtime:2.3.0 (*)
|    |    |    +--- androidx.navigation:navigation-common-ktx:2.3.0
|    |    |    |    +--- androidx.navigation:navigation-common:2.3.0 (*)
|    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.71 -> 1.4.21 (*)
|    |    |    |    +--- androidx.core:core-ktx:1.1.0
|    |    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.31 -> 1.4.21 (*)
|    |    |    |    |    +--- androidx.annotation:annotation:1.1.0
|    |    |    |    |    \--- androidx.core:core:1.1.0 -> 1.3.1 (*)
|    |    |    |    \--- androidx.collection:collection:1.1.0 (*)
|    |    |    +--- androidx.activity:activity-ktx:1.1.0
|    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.50 -> 1.4.21 (*)
|    |    |    |    +--- androidx.activity:activity:[1.1.0] -> 1.1.0 (*)
|    |    |    |    +--- androidx.core:core-ktx:1.1.0 (*)
|    |    |    |    +--- androidx.lifecycle:lifecycle-runtime-ktx:2.2.0
|    |    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.50 -> 1.4.21 (*)
|    |    |    |    |    +--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.0
|    |    |    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.50 -> 1.4.21 (*)
|    |    |    |    |    |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0
|    |    |    |    |    |         +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.50 -> 1.4.21 (*)
|    |    |    |    |    |         \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.3.50 -> 1.4.21
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-runtime:2.2.0 (*)
|    |    |    |    |    \--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    |    \--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0
|    |    |    |         +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.50 -> 1.4.21 (*)
|    |    |    |         +--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.0 (*)
|    |    |    |         \--- androidx.lifecycle:lifecycle-viewmodel:2.2.0 (*)
|    |    |    +--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0 (*)
|    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.3.71 -> 1.4.21 (*)
|    |    +--- androidx.recyclerview:recyclerview:1.1.0 (*)
|    |    +--- androidx.work:work-runtime:2.4.0
|    |    |    +--- com.google.guava:listenablefuture:1.0
|    |    |    +--- androidx.lifecycle:lifecycle-livedata:2.1.0 (*)
|    |    |    +--- androidx.room:room-runtime:2.2.5
|    |    |    |    +--- androidx.room:room-common:[2.2.5] -> 2.2.5
|    |    |    |    |    \--- androidx.annotation:annotation:1.1.0
|    |    |    |    +--- androidx.sqlite:sqlite-framework:2.0.1 -> 2.1.0 (*)
|    |    |    |    +--- androidx.sqlite:sqlite:2.0.1 -> 2.1.0 (*)
|    |    |    |    \--- androidx.arch.core:core-runtime:2.0.1 -> 2.1.0 (*)
|    |    |    +--- androidx.sqlite:sqlite:2.1.0 (*)
|    |    |    +--- androidx.sqlite:sqlite-framework:2.1.0 (*)
|    |    |    +--- androidx.core:core:1.1.0 -> 1.3.1 (*)
|    |    |    \--- androidx.lifecycle:lifecycle-service:2.1.0
|    |    |         \--- androidx.lifecycle:lifecycle-runtime:2.1.0 -> 2.2.0 (*)
|    |    +--- io.opentracing:opentracing-api:0.32.0
|    |    +--- io.opentracing:opentracing-noop:0.32.0
|    |    |    \--- io.opentracing:opentracing-api:0.32.0
|    |    \--- io.opentracing:opentracing-util:0.32.0
|    |         +--- io.opentracing:opentracing-api:0.32.0
|    |         \--- io.opentracing:opentracing-noop:0.32.0 (*)
|    +--- com.datadoghq:dd-bridge-android:0.2.0
|    |    +--- org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.3.61 (*)
|    |    +--- com.datadoghq:dd-sdk-android:1.8.0-alpha1 (*)
|    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.0 -> 1.4.21 (*)
|    +--- org.jetbrains.kotlin:kotlin-stdlib:1.4.21 (*)
|    \--- com.github.xgouchet.Elmyr:core:1.2.0
|         \--- org.jetbrains.kotlin:kotlin-stdlib:1.3.61 -> 1.4.21 (*)
- Version of iOS SDK:
PODS:
  [...]
  - DatadogSDK (1.5.1):
    - Kronos (~> 4.1)
  - DatadogSDKBridge (0.2.0):
    - DatadogSDK (~> 1.5.1)
  - dd-sdk-reactnative (1.0.0-alpha3):
    - DatadogSDKBridge (~> 0.2.0)
    - React
  - Kronos (4.2.1)
  - React (0.62.2)
- A copy of your `package.json` file
{
  "dependencies": {
    [...]
    "@react-navigation/bottom-tabs": "^5.11.7",
    "@react-navigation/native": "^5.9.2",
    "@react-navigation/stack": "^5.14.2",
    "dd-sdk-reactnative": "1.0.0-alpha3",
    "react": "16.11.0",
    "react-native": "0.62.2",
  },
  "engines": {
    "node": "12"
  }
}
0xnm commented 3 years ago

Hello @VincentCATILLON! Can you please give us more details on that issue so that we can reproduce it? Does it happen on emulator or on real device? Do you experience the same with our sample app? Can you provide the output of your logcat it is has any entries related to the issue?

VincentCATILLON commented 3 years ago

Hi @0xnm

It only happened on Android device using alpha3 (don't know if it happens on emulator only or on both emulated and physical devices).

The JS code is:

    DatadogService.config = new DdSdkReactNativeConfiguration(
      CONFIG.clientToken,
      env,
      CONFIG.applicationId,
      true,
      true,
      true // This param at true, makes the app stuck at start
    );

And ADB output is:

04-13 15:58:15.433 16646 16710 D ReactNative: ReactInstanceManager.attachRootViewToInstance()
04-13 15:58:15.507 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupViewManager
04-13 15:58:15.509 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTGroupShadowNode
04-13 15:58:15.511 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeViewManager
04-13 15:58:15.512 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTShapeShadowNode
04-13 15:58:15.515 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextViewManager
04-13 15:58:15.516 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTTextShadowNode
04-13 15:58:15.517 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.checkbox.ReactCheckBoxManager
04-13 15:58:15.520 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.uimanager.LayoutShadowNode
04-13 15:58:15.524 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDialogPickerManager
04-13 15:58:15.526 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.drawer.ReactDrawerLayoutManager
04-13 15:58:15.527 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.picker.ReactDropdownPickerManager
04-13 15:58:15.529 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollViewManager
04-13 15:58:15.532 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollContainerViewManager
04-13 15:58:15.533 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager
04-13 15:58:15.534 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.progressbar.ProgressBarShadowNode
04-13 15:58:15.536 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager
04-13 15:58:15.538 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager
04-13 15:58:15.540 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.slider.ReactSliderManager$ReactSliderShadowNode
04-13 15:58:15.541 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
04-13 15:58:15.542 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$ReactSwitchShadowNode
04-13 15:58:15.542 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager
04-13 15:58:15.543 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewManager
04-13 15:58:15.543 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.art.ARTSurfaceViewShadowNode
04-13 15:58:15.544 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageViewManager
04-13 15:58:15.544 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode
04-13 15:58:15.546 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.image.ReactImageManager
04-13 15:58:15.548 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ReactModalHostManager
04-13 15:58:15.549 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.modal.ModalHostShadowNode
04-13 15:58:15.550 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager
04-13 15:58:15.550 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactRawTextShadowNode
04-13 15:58:15.551 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
04-13 15:58:15.555 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputShadowNode
04-13 15:58:15.557 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager
04-13 15:58:15.558 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactTextShadowNode
04-13 15:58:15.559 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.view.ReactViewManager
04-13 15:58:15.561 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.viewpager.ReactViewPagerManager
04-13 15:58:15.562 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
04-13 15:58:15.562 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextShadowNode
04-13 15:58:15.563 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.art.ARTGroupViewManager
04-13 15:58:15.564 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.art.ARTGroupShadowNode
04-13 15:58:15.564 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.art.ARTShapeViewManager
04-13 15:58:15.564 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.art.ARTShapeShadowNode
04-13 15:58:15.565 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.art.ARTTextViewManager
04-13 15:58:15.565 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.art.ARTTextShadowNode
04-13 15:58:15.565 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.art.ARTSurfaceViewManager
04-13 15:58:15.566 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.art.ARTSurfaceViewShadowNode
04-13 15:58:15.567 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class org.reactnative.maskedview.RNCMaskedViewManager
04-13 15:58:15.569 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.androidprogressbar.ReactProgressBarViewManager
04-13 15:58:15.569 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.androidprogressbar.ProgressBarShadowNode
04-13 15:58:15.570 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.toolbarandroid.ReactToolbarManager
04-13 15:58:15.571 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.viewpager.ReactViewPagerManager
04-13 15:58:15.572 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.gesturehandler.react.RNGestureHandlerRootViewManager
04-13 15:58:15.572 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.gesturehandler.react.RNGestureHandlerButtonViewManager
04-13 15:58:15.573 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.BV.LinearGradient.LinearGradientManager
04-13 15:58:15.575 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class org.wonday.pdf.RCTPdfManager
04-13 15:58:15.578 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.th3rdwave.safeareacontext.SafeAreaProviderManager
04-13 15:58:15.579 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.th3rdwave.safeareacontext.SafeAreaViewManager
04-13 15:58:15.580 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.th3rdwave.safeareacontext.SafeAreaViewShadowNode
04-13 15:58:15.581 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenContainerViewManager
04-13 15:58:15.581 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenViewManager
04-13 15:58:15.582 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenStackViewManager
04-13 15:58:15.583 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenStackHeaderConfigViewManager
04-13 15:58:15.584 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenStackHeaderSubviewManager
04-13 15:58:15.585 16646 16710 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.reactnativecommunity.webview.RNCWebViewManager
04-13 15:58:15.617 16646 16710 D SoLoader: About to load: libyoga.so
04-13 15:58:15.617 16646 16710 D SoLoader: libyoga.so not found on /data/data/example.app/lib-main
04-13 15:58:15.618 16646 16710 D SoLoader: libyoga.so found on /data/app/example.app-4kieeSd7PlpwYBMqaIclsQ==/lib/x86
04-13 15:58:15.618 16646 16710 D SoLoader: Not resolving dependencies for libyoga.so
04-13 15:58:15.619 16646 16710 D SoLoader: Loaded: libyoga.so
04-13 15:58:15.707  2108  9806 D ConnectivityService: requestNetwork for uid/pid:10141/16646 NetworkRequest [ TRACK_DEFAULT id=122, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10141] ]
04-13 15:58:15.708  2108  2238 D WifiNetworkFactory: got request NetworkRequest [ TRACK_DEFAULT id=122, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10141] ] with score 60 and serial -1
04-13 15:58:15.708  2454  2454 D PhoneSwitcherNetworkRequstListener: got request NetworkRequest [ TRACK_DEFAULT id=122, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10141] ] with score 60 and serial -1
04-13 15:58:15.708  2108  2238 D UntrustedWifiNetworkFactory: got request NetworkRequest [ TRACK_DEFAULT id=122, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10141] ] with score 60 and serial -1
04-13 15:58:15.797 16646 16709 D SoLoader: About to load: libreactnativeblob.so
04-13 15:58:15.798 16646 16709 D SoLoader: libreactnativeblob.so not found on /data/data/example.app/lib-main
04-13 15:58:15.798 16646 16709 D SoLoader: libreactnativeblob.so found on /data/app/example.app-4kieeSd7PlpwYBMqaIclsQ==/lib/x86
04-13 15:58:15.798 16646 16709 D SoLoader: Not resolving dependencies for libreactnativeblob.so
04-13 15:58:15.799 16646 16709 D SoLoader: Loaded: libreactnativeblob.so
04-13 15:58:15.855 16646 16646 D ReactNative: ReactInstanceManager.createReactContextInBackground()
04-13 15:58:15.855 16646 16646 D ReactNative: ReactInstanceManager.attachRootViewToInstance()
04-13 15:58:17.950 10066 10206 E ActivityThread: Failed to find provider info for com.google.android.apps.wellbeing.api
04-13 15:58:18.263 16646 16710 I WebViewFactory: Loading com.google.android.webview version 74.0.3729.185 (code 373018518)
04-13 15:58:18.302 16646 16710 I aintain.techap: The ClassLoaderContext is a special shared library.
04-13 15:58:18.337 16646 16710 I aintain.techap: The ClassLoaderContext is a special shared library.
04-13 15:58:18.654 16646 16710 I cr_LibraryLoader: Time to load native libraries: 19 ms (timestamps 7086-7105)
04-13 15:58:18.699 16646 16710 I chromium: [INFO:library_loader_hooks.cc(50)] Chromium logging enabled: level = 0, default verbosity = 0
04-13 15:58:18.700 16646 16710 I cr_LibraryLoader: Expected native library version number "74.0.3729.185", actual native library version number "74.0.3729.185"
04-13 15:58:18.847 16646 16723 W com.amplitude.api.DeviceInfo: Google Play Services SDK not found!
04-13 15:58:19.022  1838 16726 E ResolverController: No valid NAT64 prefix (101, <unspecified>/0)
04-13 15:58:19.393 16646 16731 W aintain.techap: Accessing hidden field Lsun/misc/Unsafe;->theUnsafe:Lsun/misc/Unsafe; (greylist, reflection, allowed)
04-13 15:58:19.394 16646 16731 W aintain.techap: Accessing hidden method Lsun/misc/Unsafe;->allocateInstance(Ljava/lang/Class;)Ljava/lang/Object; (greylist, reflection, allowed)
04-13 15:58:19.614  1838 16736 E ResolverController: No valid NAT64 prefix (101, <unspecified>/0)
04-13 15:58:19.622  2108  9806 D ConnectivityService: requestNetwork for uid/pid:10141/16646 NetworkRequest [ TRACK_DEFAULT id=123, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10141] ]
04-13 15:58:19.625  2108  2238 D WifiNetworkFactory: got request NetworkRequest [ TRACK_DEFAULT id=123, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10141] ] with score 60 and serial -1
04-13 15:58:19.625  2454  2454 D PhoneSwitcherNetworkRequstListener: got request NetworkRequest [ TRACK_DEFAULT id=123, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10141] ] with score 60 and serial -1
04-13 15:58:19.626  2108  2238 D UntrustedWifiNetworkFactory: got request NetworkRequest [ TRACK_DEFAULT id=123, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10141] ] with score 60 and serial -1
04-13 15:58:19.665 16646 16659 I aintain.techap: NativeAlloc concurrent copying GC freed 36508(1894KB) AllocSpace objects, 26(3076KB) LOS objects, 49% free, 3988KB/7976KB, paused 809us total 366.895ms
04-13 15:58:19.907 16646 16731 W System.err: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
04-13 15:58:19.907 16646 16731 W System.err: SLF4J: Defaulting to no-operation (NOP) logger implementation
04-13 15:58:19.908 16646 16731 W System.err: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
04-13 15:58:19.959  1838 16744 E ResolverController: No valid NAT64 prefix (101, <unspecified>/0)
04-13 15:58:20.042 16646 16659 I aintain.techap: NativeAlloc concurrent copying GC freed 6947(684KB) AllocSpace objects, 18(488KB) LOS objects, 49% free, 3564KB/7128KB, paused 1.551ms total 170.598ms
04-13 15:58:20.278 16646 16659 I aintain.techap: NativeAlloc concurrent copying GC freed 2296(246KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 3866KB/7732KB, paused 661us total 182.571ms
04-13 15:58:20.637 16646 16659 I aintain.techap: NativeAlloc concurrent copying GC freed 9125(591KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 4092KB/8185KB, paused 1.768ms total 234.412ms
04-13 15:58:20.653  9809 16015 I Places  : ?: Couldn't find platform key file.
04-13 15:58:20.666  9809 16587 I Places  : ?: Couldn't find platform key file.
04-13 15:58:20.717  9809 16586 I Places  : ?: PlacesBleScanner stop()
04-13 15:58:20.718  9809  9809 I BeaconBle: Scan : No clients left, canceling alarm.
04-13 15:58:20.720  9809  9809 I BeaconBle: Scan canceled successfully.
04-13 15:58:20.746  9809 16586 I PlaceInferenceEngine: [anon] Changed inference mode: 0
04-13 15:58:20.752  9809 10006 W GCoreFlp: No location to return for getLastLocation()
04-13 15:58:20.805  9809 16448 I Places  : ?: Couldn't find platform key file.
04-13 15:58:20.813  9809 16752 I Places  : ?: Couldn't find platform key file.
04-13 15:58:20.843  9809  9809 I GeofencerStateMachine: removeGeofences: removeRequest=RemoveGeofencingRequest[REMOVE_BY_PENDING_INTENT pendingIntent=PendingIntent[creatorPackage=com.google.android.gms], packageName=com.google.android.gms]
04-13 15:58:21.138 16646 16754 D SoLoader: About to load: libimagepipeline.so
04-13 15:58:21.140 16646 16754 D SoLoader: libimagepipeline.so not found on /data/data/example.app/lib-main
04-13 15:58:21.141 16646 16754 D SoLoader: libimagepipeline.so found on /data/app/example.app-4kieeSd7PlpwYBMqaIclsQ==/lib/x86
04-13 15:58:21.141 16646 16754 D SoLoader: Not resolving dependencies for libimagepipeline.so
04-13 15:58:21.236 16646 16754 D SoLoader: Loaded: libimagepipeline.so
04-13 15:58:21.323 16646 16659 I aintain.techap: NativeAlloc concurrent copying GC freed 3850(325KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 4027KB/8054KB, paused 2.528ms total 155.484ms
04-13 15:58:21.699 16646 16659 I aintain.techap: NativeAlloc concurrent copying GC freed 4008(382KB) AllocSpace objects, 1(20KB) LOS objects, 49% free, 4317KB/8634KB, paused 4.315ms total 168.446ms
0xnm commented 3 years ago

Hello @VincentCATILLON,

I'm not able to reproduce the issue using the config provided by you. I would recommend to do the following steps:

a) Wait for our next SDK release which will happen soon, where we re-worked some native dependency handling. b) Try to update React & React Native version to the version recommended by our SDK and check if the issue is still there. c) Check if issue still happens if you build and run our example app in your environment. d) Check if you have long task reported in Datadog dashboard.

Logcat output above doesn't show any issue unfortunately.

0xnm commented 3 years ago

Hello @VincentCATILLON! Do you have any update on this issue?

0xnm commented 3 years ago

Hello @VincentCATILLON. I'm closing this issue due to inactivity, but please feel free to open it again if you still experience it.