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

[PLAT-6311] Ignore hangs while app is in the background #1075

Merged
merged 2 commits into from
Apr 21, 2021

Conversation

nickdowell
Copy link
Contributor

Goal

Fatal app hangs have been observed to occur due to OS-level issues when apps move into the background state.

One example is CABackingStoreCollectBlocking() hanging while it cleans up graphics resources. It has been reported that this can take up to 10 seconds, and therefore cause the app to be terminated by the system watchdog.

Since this is not likely to be an app bug or noticed by users (who would observe the app opening on its start screen) it does not make sense to report these hangs as fatal / unhandled errors that affect the stability score. Apps can be terminated in the background for a number of other reasons.

Changeset

App hangs are now ignored once UIApplicationDidEnterBackgroundNotification has been received and until a subsequent UIApplicationWillEnterForegroundNotification is received.

Testing

E2E tests have been amended to verify 3 additional scenarios:

  • App hangs SHOULD NOT be reported if they occur after the app has moved to the background
  • App hangs SHOULD be reported if the app starts hanging before going to the background
  • App hangs SHOULD be reported if the app hangs after resuming from the background

Maze.driver.background_app(duration) fails on appium 1.7.2 and earlier
@github-actions
Copy link

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size increased by 1,000 bytes from 1,119,520 to 1,120,520

Generated by 🚫 Danger

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.

3 participants