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

fix: Invalidated live object crash DiffKit while diffing #1412

Merged

Conversation

adrien-coye
Copy link
Contributor

@adrien-coye adrien-coye commented Jan 30, 2025

Abstract

When cancelling an upload, the app crashes.

DiffKit accesses an invalidated object and crashes.
The UploadQueueViewController now tracks a list of frozen files.
The cell was updated to use frozen files as input.
The use of frozen or live file was explicited

@adrien-coye adrien-coye added the bug Something isn't working label Jan 30, 2025
@adrien-coye adrien-coye added this to the 5.1.0 milestone Jan 30, 2025
@adrien-coye adrien-coye changed the title Fix: Invalidated live object crash DiffKit while diffing fix: Invalidated live object crash DiffKit while diffing Jan 30, 2025
@adrien-coye
Copy link
Contributor Author

Did some manual testing, it does fix the issue. I did not encouter a performance issue.

@adrien-coye adrien-coye force-pushed the fix-invalidated-object-in-uploadFileViewController branch from d57dda3 to d81c038 Compare January 31, 2025 11:48
@adrien-coye adrien-coye enabled auto-merge January 31, 2025 11:48
@adrien-coye adrien-coye merged commit 8dae925 into master Jan 31, 2025
6 checks passed
@adrien-coye adrien-coye deleted the fix-invalidated-object-in-uploadFileViewController branch January 31, 2025 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants