[No QA] Fix [Sentry: APP-4FK] HybridApp Android NullPointerException in expo TaskService.executeTask - #94145
Conversation
…TaskService.executeTask
|
@codex review |
|
|
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 020e752197
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
mountiny
left a comment
There was a problem hiding this comment.
Thanks! this is patch from upstream, we will monitor using Sentry if the issue was resolved
|
🚧 @mountiny has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.4.17-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 No help site changes required. I reviewed the changes in this PR and confirmed they do not require any updates to Expensify's help site files under Why: This PR is a native Android crash fix with no user-facing behavior change:
Both changes are internal robustness/crash fixes. They don't add, remove, or alter any feature, UI element, tab, setting, label, or workflow that the help site documents (GPS distance tracking still behaves the same from the user's perspective). Since no help articles describe the background No draft PR was created since there are no help site changes to make. @GCyganek, let me know if you'd like me to take a closer look at any specific article. |
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.4.17-3 🚀
|
1 similar comment
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.4.17-3 🚀
|
Explanation of Change
Patches
expo-task-managerto null-guard the headless app loader inTaskService.executeTask(), preventing a fatal Android NPE (Sentry APP-4FK) when JobScheduler delivers GPS updates after process death. Also stops orphaned background location tasks inGPSTripStateCheckerwhen tracking is no longer active.Fixed Issues
$ #92416
PROPOSAL: N/A
Tests
No QA
This crash is triggered by Android memory pressure during a background
JobServicewakeup causing theWeakReference<Context>inTaskServiceto be GC'd. It's not easy to reproduce it.Offline tests
N/A
QA Steps
No QA
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos