-
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 2023-11-30] [$500] Web - Attachment - Console error shows up when closing the PDF view while it is loading #31209
Comments
Triggered auto assignment to @trjExpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~01cba1c5a184872fe2 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 ( |
This error is emitted by |
ProposalPlease re-state the problem that we are trying to solve in this issueWeb - Attachment - Console error shows up when closing the PDF view while it is loading What is the root cause of that problem?This is because What changes do you think we should make in order to solve the problem?We can patch the unmounting method in the Document by adding if (this.loadingTask) {
this.loadingTask._worker.destroy();
this.loadingTask.destroy();
} in the What alternative solutions did you explore? (Optional)We can try to upgrade to v7 for |
Proposal from @shubham1206agra looks good to me #31209 (comment) |
Triggered auto assignment to @francoisl, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Over to you Franc for the secondary proposal review! |
LGTM |
📣 @shubham1206agra 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.2-3 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 2023-11-30. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
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:
|
👋 Checklist time please! :). |
|
Thanks, agreed. @shubham1206agra paid! |
I'm still getting this exact issue on v9. I am not loading the workerSrc locally as shown below due to some annoying project requirements. Is it possible that this fix only works if you use the local script method? pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.mjs` |
📣 @AlfredMadere! 📣
|
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com 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:
No console error will show up.
Actual Result:
Console error 'Uncaught (in promise) Error: Worker was terminated' shows up.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6271763_1699647492404.20231111_030636.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: