Skip to content

Fix CEF filling up %TEMP% on Windows with temp files and never being cleared#24

Open
Hecklezz wants to merge 1 commit intosecondlife:masterfrom
Hecklezz:fix/windows_temp_spam
Open

Fix CEF filling up %TEMP% on Windows with temp files and never being cleared#24
Hecklezz wants to merge 1 commit intosecondlife:masterfrom
Hecklezz:fix/windows_temp_spam

Conversation

@Hecklezz
Copy link

@Hecklezz Hecklezz commented Mar 19, 2026

On Windows, overtime as dullahan is running in the background, it will accumulate a large number of "chrome_BITS" and some "chrome_url_fetcher" temp files in the OS's %TEMP% folder. These never get cleaned up and end up creating hundreds or even thousands of these over the span of a few days.
They are mostly harmless and generally very small in size or just empty folders, but still not ideal just letting %TEMP% fill up with these and no cleanup mechanic.

This PR simply just sets the entire TEMP (and TMP just in case) path on Windows for the given dullahan instance, to point to the cef_cache/pid/cache folder. That way, when the viewer runs and does LLAppViewer::purgeCefStaleCaches, these temp folders will get cleaned up in the process.

(Other platforms may be effected, but from what Beq observed, and me looking on a VM, Linux does not seem to be effected, unsure about macOS however)

Screenshot showing what was happening to %TEMP% after a short period of time having Second Life viewer running- image
Screenshot showing after this PR has been applied- image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant