-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$500] Android - Attachment- App crashes on opening specific image #31204
Comments
Triggered auto assignment to @adelekennedy ( |
Job added to Upwork: https://www.upwork.com/jobs/~01e0a96dfdf9f4a360 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
📣 @3owa! 📣
|
Contributor details |
|
@lanitochka17 could you add that specific image here |
I have't checked the stackoverflow link according to video and logs.txt. this is samsung device. i have few questions here: |
📣 @Oggyy! 📣
|
@pradeepmdk Hello |
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. What is the root cause of that problem?The image size, 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, 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. 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! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@adelekennedy, @thesahindia Whoops! This issue is 2 days overdue. Let's get this updated quick! |
I think for this one we do want the image to be resized and/or a warning is included that the image is too large with specified dimensions |
@adelekennedy Please let me know on the image dimension requirements I can update my proposal to include it. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Android - Attachment- App crashes on opening specific image What is the root cause of that problem?Due to provided image too large so when render on android will be out-of-memory What changes do you think we should make in order to solve the problem?By default on android What alternative solutions did you explore? (Optional) |
@adelekennedy, @thesahindia Huh... This is 4 days overdue. Who can take care of this? |
I am not in a good shape. Please reassign @adelekennedy. |
Taking this as C+ |
This is a dupe #24337. We can close this one @adelekennedy |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.3.98-0
Reproducible in staging?: Y
Reproducible in production?: Y
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Tapping on specific image app must not crash
Actual Result:
Tapping on specific image app crashes
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6271713_1699645547418.atta_h.mp4
log.txt
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: