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

[HOLD for payment 2024-04-04] [$500] Chat - The app crashes when opening a high resolution image #35171

Closed
3 of 6 tasks
kbecciv opened this issue Jan 25, 2024 · 68 comments
Closed
3 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Jan 25, 2024

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.4.31.1
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:

  1. Upload the provided high resolution image to any chat
  2. Tap on it once it finished loading

Expected Result:

It shouldn't crash.

Actual Result:

The app crashes when opening a high resolution image. On iOS mWeb it crashed as soon as I select the image with a blank preview

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6354861_1706199122408.ERTA4321.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01788ec8d9af6ffdc5
  • Upwork Job ID: 1750587875060334592
  • Last Price Increase: 2024-04-15
Issue OwnerCurrent Issue Owner: @sakluger
@kbecciv kbecciv added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 25, 2024
@melvin-bot melvin-bot bot changed the title Chat - The app crashes when opening a high resolution image [$500] Chat - The app crashes when opening a high resolution image Jan 25, 2024
Copy link

melvin-bot bot commented Jan 25, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01788ec8d9af6ffdc5

Copy link

melvin-bot bot commented Jan 25, 2024

Triggered auto assignment to @sakluger (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 25, 2024
Copy link

melvin-bot bot commented Jan 25, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif (External)

@FitseTLT
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

The app crashes when opening a high resolution image

What is the root cause of that problem?

We are not limiting the resolution as we do for Avatar

const isValidResolution = (image) =>
getImageResolution(image).then(
({height, width}) => height >= CONST.AVATAR_MIN_HEIGHT_PX && width >= CONST.AVATAR_MIN_WIDTH_PX && height <= CONST.AVATAR_MAX_HEIGHT_PX && width <= CONST.AVATAR_MAX_WIDTH_PX,
);

What changes do you think we should make in order to solve the problem?

We should implement a resolution limit for attachements too as we did for avatar
Check if the resolution of the uploaded image has greater than the max resolution and set/display error message (same as what we did for avatar).

What alternative solutions did you explore? (Optional)

@ZhenjaHorbach
Copy link
Contributor

@kbecciv
Can you provide an image example?

@kbecciv
Copy link
Author

kbecciv commented Jan 25, 2024

@ZhenjaHorbach I have original file, but unable to attach to GH

image

@melvin-bot melvin-bot bot added the Overdue label Jan 29, 2024
@aimane-chnaif
Copy link
Contributor

@FitseTLT can you share reproducible image?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jan 29, 2024
@aimane-chnaif
Copy link
Contributor

aimane-chnaif commented Jan 31, 2024

@ZhenjaHorbach I have original file, but unable to attach to GH

image

@kbecciv Can you please upload to cloud somewhere (i.e. google drive) and share link?

@melvin-bot melvin-bot bot removed the Overdue label Jan 31, 2024
@kbecciv
Copy link
Author

kbecciv commented Jan 31, 2024

@aimane-chnaif
Copy link
Contributor

Copy link

melvin-bot bot commented Feb 1, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Feb 5, 2024
@aimane-chnaif
Copy link
Contributor

Awaiting proposals

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Feb 5, 2024
@sakluger
Copy link
Contributor

sakluger commented Feb 7, 2024

Adding to #vip-vsb. Hopefully we'll get some more proposals soon!

Copy link

melvin-bot bot commented Feb 8, 2024

@sakluger @aimane-chnaif this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@mountiny mountiny added Awaiting Payment Auto-added when associated PR is deployed to production and removed Help Wanted Apply this label when an issue is open to proposals by contributors labels Apr 15, 2024
@mountiny
Copy link
Contributor

@sakluger should be able to help with the payment

@Santhosh-Sellavel Santhosh-Sellavel removed their assignment Apr 15, 2024
@sakluger
Copy link
Contributor

Summarizing payment on this issue:

Contributor: @jsdev2547 $500, sent Upwork offer: https://www.upwork.com/nx/wm/offer/101896672
Contributor+: @aimane-chnaif $500, sent Upwork offer: https://www.upwork.com/nx/wm/offer/101896675

@sakluger
Copy link
Contributor

Paid @jsdev2547, now just waiting for @aimane-chnaif to accept the offer.

@sakluger
Copy link
Contributor

Hey @aimane-chnaif could you please accept the Upwork offer?

@sakluger
Copy link
Contributor

Bumped Aimane in Slack.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Daily KSv2 labels Apr 22, 2024
@sakluger
Copy link
Contributor

Aimane is OOO, we'll wait a few more days before checking back in.

@sakluger
Copy link
Contributor

Moving this to weekly since I'm not sure when Aimane will be back online. @aimane-chnaif feel free to DM me in Slack once you're back.

@sakluger sakluger added Weekly KSv2 and removed Daily KSv2 labels Apr 23, 2024
@sakluger
Copy link
Contributor

sakluger commented May 3, 2024

Still OOO.

@sakluger sakluger removed their assignment May 16, 2024
@sakluger sakluger added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels May 16, 2024
Copy link

melvin-bot bot commented May 16, 2024

Triggered auto assignment to @muttmuure (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 16, 2024
@sakluger sakluger assigned sakluger and unassigned muttmuure May 16, 2024
@sakluger sakluger added Weekly KSv2 and removed Daily KSv2 labels May 16, 2024
@sakluger
Copy link
Contributor

Hey @muttmuure, assigning to you while I'm OOO for the next two weeks.

We still owe Aimane payment for this issue via Upwork, but he's been OOO for the past month or so and so he never accepted the Upwork offer. Can you keep an eye on this every once in a while, and if Aimane gets back before I return, please pay out the Upwork offer (or send a new one if the old one has expired)?

@aimane-chnaif
Copy link
Contributor

Apologies for the delay. Accepted offer

@sakluger
Copy link
Contributor

sakluger commented Jun 5, 2024

Welcome back! I just got back from OOO as well.

The contact is all paid out, we can close out this issue.

@sakluger sakluger closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
No open projects
Archived in project
Development

No branches or pull requests