-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$1000] Attachments- App crashes when user navigate attachments #24337
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @Li357 ( |
@lanitochka17 is this an android-only issue? I'm not able to reproduce it on iOS. |
I am also unable to reproduce this issue. Can we get more specifics on the environment like the version of Android being tested on? Also, if we could get the exact same set of images used to test, that may prove to be helpful. Thanks. |
Hey, it might be related to this issue. Your workspace name contains HTML characters ( Can you try to reproduce it on a new workspace, with a name without any special characters? |
If so, it should be reproducible on production as well and not deploy blocker. |
You are right. It was just a guess. I'm sorry for the confusion. |
Can't reproduce on iOS and Android either. I'm going to close this out for now, if you can provide extra details that would be great! |
@Li357 Issue is still reproducible on Android Screen_Recording_20230921_135617_New.Expensify.mp4 |
This issue hasn't been commented on in two weeks, should it still be labeled an |
Sounds like this is no longer a deploy blocker, so I'm updating it to a |
Going to look into this tomorrow. I hadn't gotten to this because I had some wave 8 things to prioritize and hadn't been able to build Android for the past few days. Will reprioritize! |
@Li357 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Fighting android emulator issues, but testing this now. |
I spent some time trying to figure this out and was finally able to reproduce (you have to test with the attached image in #24337 (comment)). The crash is due to an out of memory error due to the number of pixels in the image, I think it's some insanely huge number (9000x9000, iirc but it may be higher). The solution would probably be to try to scale the image down before displaying it. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Adjusting the bounty |
@Li357 please check this comment: #24337 (comment) |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@paultsimura Do you think this issue will get absorbed by those? This instability would require some extra code to show thumbnails instead of the full image |
@Li357 my bad, I wasn't attentive enough to the discussion above. There just was a storm of "Attachments are crashing" dupe issues at the time I posted my initial comment. For this specific scenario, I don't think the linked issues will help. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Upwork job price has been updated to $1000 |
Bounty increased, I think this is valuable to work on because images get to this size pretty easily |
@ArekChr was working on a PR in @ArekChr do you fix your PR could fix this problem and what's the status on the PR? :) |
Issue not reproducible during KI retests. (First week) |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
This was proposed as solution with 31204 that can fix crash with reproducible image attached ProposalPlease re-state the problem that we are trying to solve in this issue.App crashes after attempting to view a large uploaded image attachment that is beyond the size supported for the device. What is the root cause of that problem?The image size (below), which is 7724 x 5148, is too large for the rendering on the screen.
This image is too large for the container it is being rendered on the device. What changes do you think we should make in order to solve the problem?Make sure the image height and size are not out of bounds (for the canvas size) what is supported by the device display within AttachmentCarouselPage Within AttachmentCarouselPage, the components' onLoad should size
The solution is to adjust the imageHeight and imageWidth calculation within the onLoad events in [AttachmentCarouselPage](https://github.com/Expensify/App/blob/5e7022d8cc519ab8787aa0e0d70d5692c6c27945/src/components/Attachments/AttachmentCarousel/Pager/AttachmentCarouselPage.js( with similar approach as ImageView. AttachmentCarouselPage to ensure the maximum dimensions are not too large for the canvas:
What alternative solutions did you explore? (Optional)Additionally, if there are an intended maximum dimensions for general image attachments this validation can be added before the image is uploaded. (personally don't like this solution unless there is a different need to scale down images) In
For native Android/iOS, we can also configure react-native-image-picker to automatically resize the image:
For informing the user, a similar message could be displayed (if it is not desirable to automatically resize) as with the Avatar image upload |
@giltron There should be no need for this change anymore. We're completely overhauling the native The crash with large images has also been fixed by a patch: #28159 (comment) |
Issue not reproducible during KI retests. (Second week) |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Awesome @chrispader! I'll close this out then! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
When user navigate attachments using side arrows, he must be able to view all attachments without problem
Actual Result:
When user navigate attachments using side arrows, the app crashes while trying to view below attached images
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.52.1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug6159108_deploy.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: