-
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
[HOLD for payment 2024-02-14] [$500] Android-Attachments-App crashes on uploading specific PDF #29743
Comments
Triggered auto assignment to @abekkala ( |
Job added to Upwork: https://www.upwork.com/jobs/~01f2fe87b1c515e0af |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Android-Attachments-App crashes on uploading specific (contains formula. Maths Symbols) PDF What is the root cause of that problem?this bug from react-native-pdf What changes do you think we should make in order to solve the problem?we need to fix this upstream or patch fix using the below options Option 1 )add try-catch like let tableContents;
try {
tableContents = message[4]&&JSON.parse(message[4])
} catch (e) {
console.error(e);
}
this.props.onLoadComplete && this.props.onLoadComplete(Number(message[1]), this.state.path, {
width: Number(message[2]),
height: Number(message[3]),
}, tableContents
); Options 2)App/src/components/PDFView/index.native.js Line 158 in bb22e06
we are not using tableContents so maybe we can remove this option in the patch fix if (message[0] === 'loadComplete') {
this.props.onLoadComplete && this.props.onLoadComplete(Number(message[1]), this.state.path, {
width: Number(message[2]),
height: Number(message[3]),
});
} Options 3)instead of parsing in react-native-pdf we can pass string and parse from in our app (but currently we are not using this 4th param) this.props.onLoadComplete && this.props.onLoadComplete(Number(message[1]), this.state.path, {
width: Number(message[2]),
height: Number(message[3]),
},
message[4]); |
I am busy with other tasks so gonna unassign. cc: @abekkala |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
@fedirjh Can you review the proposal that has been submitted for this? thanks! |
@pradeepmdk Can you please elaborate more on the root cause and how to fix it? can you please explain your preposed solution? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Bump @pradeepmdk for #29743 (comment) |
@fedirjh sorry for the delay. proposal updated #29743 (comment) |
@pradeepmdk Thanks for the update, however, the root cause is still not clear to me. Why does this only affect Android? does the library have platform-specific code? |
Ih sorry I misunderstood, I thought a patch for the new issue. Then I think we can go ahead with the patch until the other issue is resolved.
If you know its that PR do you want to create Revert PR upstream and tag the maintainer, maybe they will be fine with the revert. Thanks! |
thanks @mountiny i will prepare the patch PR |
cc @pradeepmdk any update for this one? Edit: I just mistakenly pinged the wrong person. sorry for the noise @abekkala . |
@mountiny can you help untangle this a bit for me? I'm not sure how payments works for this one given the original PR, revert, patch, etc. that has occurred here. |
@abekkala This is not yet ready for payment. We are still awaiting updates from @pradeepmdk. |
oh sorry, I missed this I will update you tomorrow end of the day. |
Perfect, thanks for confirming. It didn't think it was so figured I'd better make sure I hadn't missed something! |
@fedirjh PR is ready. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.37-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-02-14. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
PAYMENTS FOR FEB 14
|
Payment Summary
BugZero Checklist (@abekkala)
|
@pradeepmdk payment sent and contract ended - thank you! 🎉 |
@fedirjh can you complete the checklist, please? I can then send payment for this job |
BugZero Checklist:
Regression Test Proposal
|
@fedirjh payment sent and contract ended - thank you! 🎉 |
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.85-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:
User must be able to upload all pdf and app must not crash while trying to upload any pdf.
Actual Result:
When user tries to upload specific pdf app crashes.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Bug6239948_1697510744742.pdf_compress_1.mp4
utest-dl.s3.amazonaws.com_12102_26469_432782_6239948_bugAttachment_Bug6239948_1697510571673%21pdf_rash.txt_X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20231017T095403Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Credential=AK.txt
class-9-maths-chapter-10-solutions.pdf
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @abekkalaThe text was updated successfully, but these errors were encountered: