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.

Android error reporting delayed

See original GitHub issue

Describe the bug

It appears that error reports from Android devices are delayed compared to reports from an iOS device for the exact same bug (in some cases, by up to 3 hours). I have an error boundary set up (following this guide) in my React Native app, and purposefully crash the app via a button click, which tries to render some text outside of a Text component (this causes a crash and triggers the error boundary). I set up Bugsnag by following the docs and using @bugsnag/react-native-cli, and besides the Error Boundary, there is no extra config I’ve added to my project that would affect Bugsnag. The reports do come through, so that part is not an issue—but why does it take so much longer than for iOS?

This is essentially what my test component looks like:

const BugsnagTest = () => {
  const [element, setElement] = useState(<></>)

  return (
    <View>
      {element}
      <Button
        text='Send error to Bugsnag'
        onPress={() => {
          setElement(<>Send error to Bugsnag!</>)
        }}
      />
    </View>
  )
}

Here you can see the reports from my Bugsnag dashboard, hours apart: Screen Shot 2022-10-05 at 12 26 21 PM

Steps to reproduce

Trigger the Bugsnag error boundary in both an iOS and Android device, i.e. by trying to render text outside of a Text component, and you should notice that the Android report takes much longer to show up in the dashboard.

@bugsnag/react-native: 7.17.4 React: 17.0.2 React Native: 0.66.3 Device: the Android device I tested on is a Galaxy S10, the iOS device is an iPhone XS

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
clr182commented, Oct 27, 2022

Hi @Twinbird24 - As discussed on the support ticket, this is a known issue. Delivery for React render errors on Android devices are delayed until the application is relaunched.

Our engineering team is looking to fix this, however I don’t have an ETA on this at the moment. We will make sure to keep this thread updated 👍

1reaction
johnkiely1commented, Oct 11, 2022

Hi @Twinbird24, would you mind sending some links to those errors as they appear on your Bugsnag dashboard? You can send those to support@bugsnag.com to avoid posting them publicly.

Additionally is this still reproducible now? I’m currently trying to rule the possibility that there may just have been a significant backlog on our android report queue at the time meaning it was delayed in processing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Detect and diagnose crashes - Android Developers
The first step to fix a crash is to identify the place where it happens. You can use the stack trace available in...
Read more >
How to set time delay to error messages in android app with ...
With androidx you can do this to remove the error after three seconds: //create a handler as class variable val handler = Handler()...
Read more >
Crash reports are very delayed. #494 - microsoft/appcenter
Crashes in react-native apps take a long time (10 minutes) to show up on the Diagnostics -> Issue tab on the website. ......
Read more >
A Complete Guide to Fixing Delayed Notifications on Android
A Complete Guide to Fixing Delayed Notifications on Android · 1. Re-Enable Wi-Fi or Mobile Data · 2. Fix Using Airplane Mode ·...
Read more >
Delayed Text Messages Problem: Why and How to Fix
Part 2. How to Fix Delayed Text Messages Android Efficiently? ; 1. Disable Battery Optimization for the Messages App · Select “No restrictions”...
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