question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uploaded Android bundle is 0MB and event processing keeps failing due to it

See original GitHub issue

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 4.10.1

react-native version: 0.70.6

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

If you are using sentry.io, please post a link to your issue so we can take a look:

https://sentry.io/organizations/stampix-zb/issues/3496972388/?project=6259211&query=is%3Aunresolved+os.name%3AAndroid&referrer=issue-stream&statsPeriod=14d

Configuration:

(@sentry/react-native)

Sentry.init({
  dsn: 'https://...@sentry.io/...'
  // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
  // We recommend adjusting this value in production.
  tracesSampleRate: SENTRY_TRACING_RATE,
  enableNdkScopeSync: true,
  integrations: [
    new Sentry.ReactNativeTracing({
      // Pass instrumentation to be used as `routingInstrumentation`
      routingInstrumentation
      // ...
    })
  ],
  environment: SENTRY_ENVIRONMENT,
  // Any data beyond this depth will be trimmed and marked using its type instead ([Object] or [Array]).
  normalizeDepth: 10,
  beforeBreadcrumb: (breadcrumb, hint) => {
    // We log some more information for XHR requests to our GQL API, since only the method and URL is useless for debugging
    if (breadcrumb.category === 'xhr' && hint) {
      try {
        const { query, variables } = JSON.parse(hint.input);
        if (!breadcrumb.data) breadcrumb.data = {};
        breadcrumb.data.query = query;
        breadcrumb.data.variables = variables;
      } catch {}
    }
    return breadcrumb;
  },
  maxValueLength: 500,
  // Don't auto initialize, instead we do it manually
  // See https://docs.sentry.io/platforms/react-native/manual-setup/native-init/
  autoInitializeNativeSdk: false
});

Note that we’ve just now disabled auto initialization, the issue at hand was present before we did disabled this.


I have following issue:

Every new release suddenly started having empty Android bundles, giving us the Invalid location in sourcemap errors at the top of Android-reported events. Using the Sentry CLI to debug the particular events reveals the same and the sourcemap uploads in the project Settings also clearly shows it’s empty (see screenshot). image

Note that this used to work in the past, but it’s hard to debug where it started occurring since the older events are long removed due to retention periods.

For iOS, this works perfectly and all is well.

Steps to reproduce: Just make a release bundle, which automatically uploads the bundle to our Sentry environment.

Actual result:

Minified stack traces in our events and an error banner on top.

Expected result:

Proper reported events with stack traces

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
marandanetocommented, Dec 9, 2022

@StampixSMO being 0 bytes is fine I don’t remember if for Hermes or RAM bundles, have to check it. @krystofwoldrich will further investigate.

1reaction
marandanetocommented, Dec 20, 2022

@krystofwoldrich Is it normal that the bundle is 0MB?

Yes, as mentioned here https://github.com/getsentry/sentry-react-native/issues/2683#issuecomment-1344063151 Its for Hermes apparently, @krystofwoldrich please add a note to https://docs.sentry.io/platforms/react-native/manual-setup/hermes/ that being 0 bytes on Android is fine.

About the issue, @StampixSMO please take a look into @krystofwoldrich questions https://github.com/getsentry/sentry-react-native/issues/2683#issuecomment-1354731167

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uploading App Bundle to Google Play stuck in processing
My apk is only 300K, it takes a fraction of a sec to upload, then it processes for 10 minutes, then it times...
Read more >
Publishing AAB fails because app signing isn't enabled
This error appears when you try to publish an app for which you haven't enabled app signing by Google Play.
Read more >
About Android App Bundles
When you upload your app bundle, if the Play Console finds any of the possible downloads of your app or its on demand...
Read more >
Build and test your Android App Bundle
While the other testing strategies described on this page don't require you to upload your app to Play, testing using the Play Console...
Read more >
The Android App Bundle format
An Android App Bundle is a file (with the .aab file extension) that you upload to Google Play. App bundles are signed binaries...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found