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

Prevent device data collector may causing a rare app crash while calculating free memory #1861

Merged
2 commits merged into from Jul 4, 2023

Conversation

ghost
Copy link

@ghost ghost commented Jul 4, 2023

Goal

Prevent DeviceDataCollector crashing the app when the ActivityManager cannot be reached.

Changeset

Added try and catch for throwable exception.

Testing

Additional unit tests

@ghost ghost requested a review from lemnik July 4, 2023 13:04
@bugsnagbot
Copy link
Collaborator

bugsnagbot commented Jul 4, 2023

Android notifier sizes

Format Size impact of Bugsnag (kB) Size impact of Bugsnag when Minified (kB)
APK 1921.68 1696.72
arm64_v8a 680.33 459.15
armeabi_v7a 614.8 393.62
x86 754.04 532.86
x86_64 725.38 504.19

Generated by 🚫 Danger

@ghost ghost changed the title Prevent calculating free memory causing rare app crash Prevent device data collector may causing a rare app crash while calculating free memory Jul 4, 2023
@ghost ghost force-pushed the PLAT-10306_NPE_in_DeviceDataCollector branch from a8377c0 to ed428e6 Compare July 4, 2023 13:26
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@ghost ghost force-pushed the PLAT-10306_NPE_in_DeviceDataCollector branch from ed428e6 to 3734c5e Compare July 4, 2023 13:30
@ghost ghost marked this pull request as ready for review July 4, 2023 13:30
@ghost ghost requested a review from lemnik July 4, 2023 13:30
Copy link
Contributor

@lemnik lemnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ghost ghost merged commit 8dafaad into next Jul 4, 2023
28 checks passed
@ghost ghost deleted the PLAT-10306_NPE_in_DeviceDataCollector branch July 4, 2023 14:49
@ghost ghost mentioned this pull request Jul 25, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants