Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android error reporting delayed #1827

Open
Twinbird24 opened this issue Oct 5, 2022 · 5 comments
Open

Android error reporting delayed #1827

Twinbird24 opened this issue Oct 5, 2022 · 5 comments
Labels
backlog We hope to fix this feature/bug in the future bug Confirmed bug

Comments

@Twinbird24
Copy link

Twinbird24 commented Oct 5, 2022

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

@johnkiely1
Copy link
Member

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.

@johnkiely1 johnkiely1 added the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Oct 11, 2022
@Twinbird24
Copy link
Author

@johnkiely1 I've just sent an email, sorry about the delay. I've since had to switch to the free/lite version of Bugsnag and my old errors are gone. I just tested this recently and the iOS error came through right away, but I'm still waiting on the Android error to show up in the dashboard.

@johnkiely1
Copy link
Member

Thanks @Twinbird24, got the email. We are investigating now and will follow up with you on that ticket.

@johnkiely1 johnkiely1 removed the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Oct 24, 2022
@Twinbird24
Copy link
Author

Thank you! Looks like the Android errors came through as well, but again, delayed by several hours (the crashes did happen about an hour apart, but the time difference between the errors is still much greater than an hour).

@clr182
Copy link

clr182 commented 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 👍

@clr182 clr182 added bug Confirmed bug backlog We hope to fix this feature/bug in the future labels Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog We hope to fix this feature/bug in the future bug Confirmed bug
Projects
None yet
Development

No branches or pull requests

3 participants