Repository navigation
Fix iOS scan crash with 30 HEIC images when creating expense - #99679
stitesExpensify merged 23 commits into
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@nabi-ebrahimi, when this pr will be ready for review? thanks. |
|
@ahmedGaber93 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-09-02.at.11.36.48.PM.mp4Android: mWeb ChromeiOS: HybridAppScreen.Recording.2026-09-02.at.10.49.26.PM.mp4iOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-09-02.at.10.37.51.PM.mp4 |
garrettmknight
left a comment
There was a problem hiding this comment.
Looks good from a product perspective
|
@marufsharifi, I’ve addressed the feedback. It’s ready for review. |
|
thanks, i am testing it. |
|
@marufsharifil, Addressed Your feedback. Could you check once again |
|
@nabi-ebrahimi, could you please merge the main. thanks. |
|
@marufsharifi, I’ve addressed your latest feedback. Please take another look when you have a chance. |
stitesExpensify
left a comment
There was a problem hiding this comment.
Code looks good, but QA steps have not been filled out
@stitesExpensify, updated. Could you please take another look. thanks |
|
🚧 stitesExpensify 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/stitesExpensify in version: 9.4.75-0 🚀
|
|
🤖 No help site changes required — no draft PR created. This PR is an internal memory/stability fix. It changes how picked images are processed, not what the user can do:
Nothing user-documented changed: no new feature, no new setting, no renamed label or button, and no change to the selection limit or supported file types. Docs I checkedI searched
The one user-visible difference — a single consolidated error message rather than repeated alerts — is transient in-app error copy. Per the help site's scope, in-app alert text isn't documented in If you'd like the multi-receipt section expanded to cover selecting existing photos from the gallery (as opposed to capturing them), say the word and I'll draft that as a separate docs PR — but it would be a coverage gap that predates this PR, not something this PR introduced. @nabi-ebrahimi, I did not create a help site PR because no article needed changing. Please confirm you agree that no docs update is needed here. If you think one is warranted, reply with what should be documented and I'll open the draft PR. |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.4.75-3 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.4.75-3 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Creating an expense with Scan and selecting a large batch of HEIC photos from the gallery crashed the app on iOS. Every selected photo was converted to JPEG at the same time, and because each conversion has to hold the full-size image in memory, a batch of
30pushed the app past what iOS allows and it was killed.The photos are now converted one after another, so the memory used stays the same whether one photo is selected or thirty, and each image is freed as soon as it has been converted.
If several photos fail to convert, the user now sees a single message instead of one for every photo.
Fixed Issues
$ #96404
PROPOSAL: #96404 (proposal)
Tests
Precondition:
Offline tests
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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
Android: Native
Screen.Recording.2026-08-29.at.7.47.51.AM.mp4
Android: mWeb Chrome
Screen_Recording_20260829_100903_Chrome.mp4
iOS: Native
Screen.Recording.2026-08-27.at.9.52.05.PM.mov
iOS: mWeb Safari
Screen.Recording.2026-08-29.at.8.51.56.AM.mov
MacOS: Chrome / Safari
Screen.Recording.2026-08-29.at.7.21.25.AM.mp4