microsoft / react-native-code-push

React Native module for CodePush
http://appcenter.ms
Other
8.99k stars 1.48k forks source link

StrictMode Violations on Android blocking other Foreground Activities from Launching #2525

Closed angelo-hub closed 1 year ago

angelo-hub commented 1 year ago

Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):

Steps to Reproduce

  1. Run android in StrictMode
  2. Watch for any violations on launch
  3. several read/write DiskViolations will appear delaying the app startForeground services by a few seconds in total
  4. on slower devices in production this can cause crashes when working with packages like react-native-background-geolocation when on Android 12

Expected Behavior

No disk violations should be taking place on the start of the activity

Actual Behavior

One logcat example:

StrictMode policy violation; ~duration=107 ms: android.os.strictmode.DiskReadViolation

Reproducible Demo

Environment

Wanted to note other codepush users have experienced this issue and was discussed on a thread for the repo causing the crash as a result of these StrictMode violations here

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

microsoft-github-policy-service[bot] commented 1 year ago

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.