-
Notifications
You must be signed in to change notification settings - Fork 294
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
fix(export): prevent export progress from freezing at 102% #232
fix(export): prevent export progress from freezing at 102% #232
Conversation
Signed-off-by: David Anyatonwu <[email protected]>
@onyedikachi-david is attempting to deploy a commit to the Cap Software Inc Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see anything alarming, but I'll let one of the maintainers approve. I can do a quick QA review when I get home a few hours.
EDIT: I'm unable to log into the app but can confirm the app builds locally. I think my dev environment is missing an API key or something, Stripe's complaining in the console 🙄
Math.round( | ||
(p.current_frame / (progressState.totalFrames || 1)) * 100 | ||
), | ||
100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we use 'Math.min' here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so it will not exceed 100%
I don't see anything alarming, but I'll let one of the maintainers approve. I can do a quick QA review when I get home a few hours. |
I can confirm the build on this branch is successfully exporting the videos, but the UI still shows the wrong % when the export completes. I also wasn't able to create an exported mp4 using the I've attached evidence here: https://drive.google.com/drive/folders/1CbylevoffsDtLUckU7ssmvN6g8qXfrk7?usp=sharing cc: @richiemcilroy |
Signed-off-by: David Anyatonwu <[email protected]>
Cap.2024-12-28.at.08.32.19.mp4@steven-the-qa Thanks for the review, i just implemented a fix addressing your observations. |
Not sure what's going on on my machine, but I don't see the original .cap file exporting successfully. I see the same behavior. I didn't check behavior of new recordings. It seems you may have done that, though. |
That's weird. Could you clarify what you mean by "original .cap files" |
https://drive.google.com/drive/folders/1CbylevoffsDtLUckU7ssmvN6g8qXfrk7?usp=drive_link here are the 2 Also, I noticed something odd about the 1 more insight: It's possible this could have been caused by low storage capacity. I had filled ~99% of my storage capacity on my Macbook Air around the time I recorded that video. Now, interestingly, after I freed up 50% of my storage, I'm not able to reproduce the bug on the latest release version. Could be a coincidence. Maybe not |
About the storage Issue (My Rust projects are just taking up storage space on my laptop 😄 ). I noticed an issue while testing: twice during recording sessions that showed as 5 minutes long in the UI tray, the editor only displayed 48 seconds of content when opened. Upon checking the logs, I found:
It appears the recording stopped prematurely (possibly due to storage issues or other constraints), but this failure isn't being communicated to the UI, which continues to show the recording as active. |
That's exactly what I saw! |
Hey @onyedikachi-david, I've just pushed up a bunch of fixes/changes. Going to decrease the bounty to $100, but still award it. Took a while for me to get this done 😄 |
Description
This PR fixes issue #228 where video export progress gets stuck at 102% for longer videos. The fix addresses both the backend frame calculation and frontend progress handling.
/claim #228
Fixes
Closes #228