Skip to content

#5655 Fix freeze on purging cef cache#5680

Merged
akleshchev merged 1 commit intorelease/2026.02from
andreyk/5655_purge
Apr 21, 2026
Merged

#5655 Fix freeze on purging cef cache#5680
akleshchev merged 1 commit intorelease/2026.02from
andreyk/5655_purge

Conversation

@akleshchev
Copy link
Copy Markdown
Contributor

@akleshchev akleshchev commented Apr 20, 2026

Handle multi-second freeze on startup due to cef cleanup.

Move parent folders, if that fails (locked by other instance), move folders inside. In theory moving folders might still cause a small delay, but it should be a lot less than recursive deletion of folders and files (as 'delete' operation removes all files individually).

@Hecklezz
Copy link
Copy Markdown
Contributor

Hecklezz commented Apr 20, 2026

Your changes assumes that the user only ever has 1 viewer open at once, otherwise if they have more than 1, renaming the entire cache folder will fail every time. In the implementation I did in Firestorm, if the parent folder was unable to be renamed, I then looped every pid cache folder and tried to rename each one individually, and only those not in use by the other viewer will get renamed and will be deleted.

If that is fine and intended, then ignore me :)

@akleshchev
Copy link
Copy Markdown
Contributor Author

Makes sense, thank you.

@akleshchev
Copy link
Copy Markdown
Contributor Author

akleshchev commented Apr 20, 2026

Remade to move folders individually, should still be faster than deletion.

@akleshchev akleshchev merged commit df5e1c1 into release/2026.02 Apr 21, 2026
19 of 22 checks passed
@akleshchev akleshchev deleted the andreyk/5655_purge branch April 21, 2026 16:18
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Seems like the viewer is taking longer to start recently. Test that

4 participants