-
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
[PAID] [$500] Chat - When opening the mp4 video that was just sent, console error appears #37142
Comments
Job added to Upwork: https://www.upwork.com/jobs/~015cdee1805b9b7baa |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov ( |
Triggered auto assignment to @strepanier03 ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @pecanoro ( |
We think that this bug might be related to #vip-vsb |
The error is coming from _performOperationAndHandleStatusAsync = async (
operation: (tag: number) => Promise<AVPlaybackStatus>
): Promise<AVPlaybackStatus> => {
const video = this._nativeRef.current;
if (!video) {
throw new Error(`Cannot complete operation because the Video component has not yet loaded`);
}
const handle = findNodeHandle(this._nativeRef.current)!;
const status: AVPlaybackStatus = await operation(handle);
this._handleNewStatus(status);
return status;
}; |
Ok, since this is just a console error and everything seems to be working just fine, I am going to remove the deploy blocker label. |
ProposalPlease re-state the problem that we are trying to solve in this issue.We get a console error when we play a video in the attachment preview. And then, play a video in the report. What is the root cause of that problem?The root cause of this bug is that the PlaybackContext.js is trying to pause the previous video from the modal because currentlyPlayingURL is changing. However, that video context has been destroyed, failing downstream in expo-av like @ikevin127 linked. Our What changes do you think we should make to solve the problem?We currently do a good job cleaning up refs when we navigate between reports because there's a clean-up hook resetVideoPlayerData. This runs on So, how do we ensure that when the attachment video gets destroyed, its references are cleaned up? A reliable lifecycle is:
This fixes the bug in OP. However, it will fix 2 more bugs that should be considered in all proposals:
What alternative solutions did you explore? (Optional)
|
Tested my logic: 2024-02-25_14-21-18.mp4 |
📣 @alitoshmatov 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @jeremy-croff 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.47-10 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-03-13. 🎊 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:
|
@jeremy-croff - I've paid you via Upwork and closed the contract. @alitoshmatov - I'll keep an eye open for the checklist so post that as soon as you can and I'll finish payment. |
|
@strepanier03 Completed the checklist |
@pecanoro, @strepanier03, @alitoshmatov, @jeremy-croff Eep! 4 days overdue now. Issues have feelings too... |
Paid @alitoshmatov and closed the contract. Thanks, everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Found when validating PR : #37007
Version Number: v1.4.43-14
Reproducible in staging?: Y
Reproducible in production?: N
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 any error in console
Actual Result:
Console error appears
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6389704_1708701973864._____________2024-02-23___15.53.25-1.mp4
Bug6389704_1708701973856!Console_23.02.txt
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @strepanier03The text was updated successfully, but these errors were encountered: