Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

App takes much longer to load when App is built with sentry sdk #442

@tiwariashish86

Description

@tiwariashish86

Platform:

  • Android -> On All Android devices we have. e.g. Galaxy S6 Edge (version 6.0.1), Galaxy Tab S3(version 7.0)
  • Java -> JavaVersion.VERSION_1_8
  • NDK -> android-ndk-r20(Did not try with other NDKs), cmake version 3.12.3

IDE:

  • Android Studio -> 3.5 (issue is seen with cmd gradle build as well)

Build system:

  • Gradle -> 5.5

Android Gradle Plugin:

  • Yes -> If yes, which version?
  • No

Sentry Android Gradle Plugin:

  • Yes -> If yes, which version?
  • No

Proguard/R8: both cases

  • [ X] Enabled
  • [ X] Disabled

sentry-android installed with:

  • [ X] JCenter
  • Bintray
  • Maven Central
  • Manually

The version of sentry-android:
2.1.2


I have the following issue:
When android app is built with sentry sdk it takes around 10 seconds to load the app.

from Logcat :

  1. Without sentry sdk => ActivityManager: Displayed com.machinezone.gow/com.mz.jix.MainActivity: +492ms
  2. with Sentry SDK => I/ActivityManager: Displayed com.machinezone.gow/com.mz.jix.MainActivity: +9s696ms

Displayed => This value represents the amount of time elapsed between launching the process and finishing drawing the corresponding activity on the screen

The issue is specially worse with Asset build on Android.

Steps to reproduce:
Just do an Asset build on android with sentry SDK and launch the app. After that observe approx 10 seconds of black screen before Application finally starts. Sentry SDK inclusion in built is causing significant app startup delay

Actual result:
App startup is significantly delayed.

Expected result:
App startup time should be same as app without Sentry SDK

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions