FloatingF Posted Sunday at 12:45 PM Report Posted Sunday at 12:45 PM (edited) I’m using the functions `enablePicsCache` and `picsCacheAll` in `steamUser`. However, I believe these two features eventually lead to a memory leak. Is this a known issue or intended behavior? The `picsCache` keeps growing over time (this becomes especially noticeable when running 5 or more bots simultaneously), until after a few days the JavaScript Heap runs out of memory and crashes, since the Cache cannot be garbage collected. When these functions are not enabled, this memory leak does not occur. In Chrome DevTools, most of the consumed memory can also be traced back to `picsCache`. Is there a way to store this `picsCache` on disk (or in some other form of persistent storage) instead of keeping it in memory, in order to prevent the memory leak? Edited Sunday at 12:48 PM by FloatingF Quote
Dr. McKay Posted Monday at 04:05 AM Report Posted Monday at 04:05 AM It's not really a memory leak, it's by design. picsCacheAll is especially going to consume lots of memory since it caches all app data it ever comes across. You really shouldn't use picsCacheAll in any app that lives longer than a few hours, and you should avoid using picsCache in general unless you really need it. For what purpose do you need the pics cache? FloatingF 1 Quote
FloatingF Posted 2 hours ago Author Report Posted 2 hours ago On 9/8/2025 at 6:05 AM, Dr. McKay said: It's not really a memory leak, it's by design. picsCacheAll is especially going to consume lots of memory since it caches all app data it ever comes across. You really shouldn't use picsCacheAll in any app that lives longer than a few hours, and you should avoid using picsCache in general unless you really need it. For what purpose do you need the pics cache? To partially simulate realistic user behavior, I use picscache to identify which games are already in the library and which still require a license. I’m not aware of a separate database that maps each license to its corresponding AppID — in effect, I use picscache as a replacement, since it provides the AppIDs. Anything else would cause issues when requesting a new license if an older license for the same game already exists. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.