JustArchiNET / ArchiSteamFarm

C# application with primary purpose of farming Steam cards from multiple accounts simultaneously.
Apache License 2.0
11.24k stars 1.05k forks source link

4.2Gb memory leak #2939

Closed vadimlitvinenko87 closed 1 year ago

vadimlitvinenko87 commented 1 year ago

Checklist

ASF version

Latest pre-release

ASF variant

win-x64

Bug description

Shared memory 4.2Gb consumption on farming. 7 accounts, farming 1 with 1 game.

Expected behavior

Not 4GB memory utilization.

Actual behavior

4GB memory utilization.

Steps to reproduce

farm.

Possible reason/solution

not to start app

Can you help us with this bug report?

Yes, I can code the solution myself and send a pull request

Full log.txt recorded during reproducing the problem

2023-07-01 02:24:33|ArchiSteamFarm-3528|INFO|ASF|InitCore() ArchiSteamFarm V5.4.8.0 (win-x64/c3b4b6d2-3d8f-4dee-9898-9778ade673f0 | .NET 7.0.8; win7-x64; Microsoft Windows 6.1.7601 Service Pack 1)
2023-07-01 02:24:34|ArchiSteamFarm-3528|INFO|ASF|InitCore() Copyright © 2015-2023 JustArchiNET
2023-07-01 02:24:34|ArchiSteamFarm-3528|WARN|ASF|InitCore() Вы пытаетесь запустить ASF от имени администратора (root). Это создает значительный риск для безопасности вашего компьютера, и, поскольку ASF не требует root-доступа для своей работы, мы рекомендуем запускать его без прав администратора, если это возможно.
2023-07-01 02:24:39|ArchiSteamFarm-3528|WARN|ASF|Load() Your IPC password seems to be weak. Consider choosing a stronger one for increased security. Details: This is a very common password. Add another word or two.  Uncommon words are better.
2023-07-01 02:24:42|ArchiSteamFarm-3528|INFO|ASF|InitPlugins() Initializing Plugins...
2023-07-01 02:24:42|ArchiSteamFarm-3528|INFO|ASF|InitPlugins() Loading ItemsMatcherPlugin V5.4.8.0...
2023-07-01 02:24:42|ArchiSteamFarm-3528|INFO|ASF|InitPlugins() ItemsMatcherPlugin has been loaded successfully!
2023-07-01 02:24:42|ArchiSteamFarm-3528|INFO|ASF|InitPlugins() Loading MobileAuthenticatorPlugin V5.4.8.0...
2023-07-01 02:24:42|ArchiSteamFarm-3528|INFO|ASF|InitPlugins() MobileAuthenticatorPlugin has been loaded successfully!
2023-07-01 02:24:42|ArchiSteamFarm-3528|INFO|ASF|InitPlugins() Loading SteamTokenDumperPlugin V5.4.8.0...
2023-07-01 02:24:42|ArchiSteamFarm-3528|INFO|ASF|InitPlugins() SteamTokenDumperPlugin has been loaded successfully!
2023-07-01 02:24:42|ArchiSteamFarm-3528|INFO|ASF|UpdateAndRestart() ASF will automatically check for new versions every 1 day.
2023-07-01 02:24:42|ArchiSteamFarm-3528|INFO|ASF|Update() Checking for new version...
2023-07-01 02:24:43|ArchiSteamFarm-3528|INFO|ASF|Update() Local version: 5.4.8.0 | Remote version: 5.4.7.3
2023-07-01 02:24:43|ArchiSteamFarm-3528|WARN|ASF|UpdateAndRestart() You're using a version that is newer than the latest released version for your update channel. Please note that pre-release versions are meant for users who know how to report bugs, deal with issues and give feedback - no technical support will be given.
2023-07-01 02:24:53|ArchiSteamFarm-3528|INFO|ASF|OnASFInit() SteamTokenDumperPlugin is currently disabled according to your configuration. If you'd like to help SteamDB in data submission, please check out our wiki.
2023-07-01 02:24:53|ArchiSteamFarm-3528|INFO|ASF|StartInteractiveConsole() Interactive console is now active, type 'c' in order to enter command mode.
2023-07-01 02:24:53|ArchiSteamFarm-3528|INFO|ASF|Start() Starting IPC server...
2023-07-01 02:24:54|ArchiSteamFarm-3528|INFO|Microsoft.Hosting.Lifetime|Now listening on: http://localhost:1242
2023-07-01 02:24:54|ArchiSteamFarm-3528|INFO|Microsoft.Hosting.Lifetime|Application started. Press Ctrl+C to shut down.
2023-07-01 02:24:54|ArchiSteamFarm-3528|INFO|Microsoft.Hosting.Lifetime|Hosting environment: Production
2023-07-01 02:24:54|ArchiSteamFarm-3528|INFO|Microsoft.Hosting.Lifetime|Content root path: D:\HARDLINKED\Software\ArchiSteamFarm
2023-07-01 02:24:54|ArchiSteamFarm-3528|INFO|ASF|Start() IPC server ready!
2023-07-01 02:24:54|ArchiSteamFarm-3528|INFO|vadimlitvinenko870|Start() Starting...
2023-07-01 02:24:54|ArchiSteamFarm-3528|INFO|vadimlitvinenko87|Start() Starting...
2023-07-01 02:24:54|ArchiSteamFarm-3528|INFO|vadimlitvinenko870|Connect() Connecting...
2023-07-01 02:24:54|ArchiSteamFarm-3528|INFO|vadimlitvinenk0|Start() Starting...
2023-07-01 02:24:54|ArchiSteamFarm-3528|INFO|gtk87|Start() Starting...
2023-07-01 02:24:54|ArchiSteamFarm-3528|INFO|p0n4ik87|Start() Starting...
2023-07-01 02:24:54|ArchiSteamFarm-3528|INFO|vadimlitvinenko871|Start() Starting...
2023-07-01 02:24:54|ArchiSteamFarm-3528|INFO|vadimlitvinenko872|Start() Starting...
2023-07-01 02:24:54|ArchiSteamFarm-3528|INFO|vadimlitvinenko870|OnConnected() Connected to Steam!
2023-07-01 02:24:54|ArchiSteamFarm-3528|INFO|vadimlitvinenko870|OnConnected() Logging in...
2023-07-01 02:24:55|ArchiSteamFarm-3528|INFO|vadimlitvinenko870|OnLoggedOn() Successfully logged on as 76561198287057526.
2023-07-01 02:24:55|ArchiSteamFarm-3528|INFO|vadimlitvinenko870|Init() Logging in to ISteamUserAuth...
2023-07-01 02:24:56|ArchiSteamFarm-3528|INFO|vadimlitvinenko870|Init() Success!
2023-07-01 02:24:56|ArchiSteamFarm-3528|INFO|vadimlitvinenko870|OnLicenseList() Refreshing packages data...
2023-07-01 02:24:56|ArchiSteamFarm-3528|INFO|vadimlitvinenko870|OnLicenseList() Done!
2023-07-01 02:24:56|ArchiSteamFarm-3528|INFO|vadimlitvinenko870|IsAnythingToFarm() Checking first badge page...
2023-07-01 02:24:57|ArchiSteamFarm-3528|INFO|vadimlitvinenko870|StartFarming() We don't have anything to farm on this account!
2023-07-01 02:25:04|ArchiSteamFarm-3528|INFO|vadimlitvinenko87|Connect() Connecting...
2023-07-01 02:25:04|ArchiSteamFarm-3528|INFO|vadimlitvinenko87|OnConnected() Connected to Steam!
2023-07-01 02:25:04|ArchiSteamFarm-3528|INFO|vadimlitvinenko87|OnConnected() Logging in...
2023-07-01 02:25:05|ArchiSteamFarm-3528|INFO|vadimlitvinenko87|OnLoggedOn() Successfully logged on as 76561198110168662.
2023-07-01 02:25:05|ArchiSteamFarm-3528|INFO|vadimlitvinenko87|Init() Logging in to ISteamUserAuth...
2023-07-01 02:25:05|ArchiSteamFarm-3528|INFO|vadimlitvinenko87|Init() Success!
2023-07-01 02:25:06|ArchiSteamFarm-3528|ERROR|vadimlitvinenko87|GetApiKeyState() htmlNode is null!
2023-07-01 02:25:06|ArchiSteamFarm-3528|ERROR|vadimlitvinenko87|ResolveApiKey() Received unknown value for State, please report this: Error
2023-07-01 02:25:07|ArchiSteamFarm-3528|INFO|vadimlitvinenko87|OnLicenseList() Refreshing packages data...
2023-07-01 02:25:07|ArchiSteamFarm-3528|INFO|vadimlitvinenko87|OnLicenseList() Done!
2023-07-01 02:25:07|ArchiSteamFarm-3528|INFO|vadimlitvinenko87|IsAnythingToFarm() Checking first badge page...
2023-07-01 02:25:08|ArchiSteamFarm-3528|INFO|vadimlitvinenko87|IsAnythingToFarm() Checking other badge pages...
2023-07-01 02:25:09|ArchiSteamFarm-3528|INFO|vadimlitvinenko87|Farm() We have a total of 1 games (3 cards) left to farm (~3 hours, 12 minutes remaining)...
2023-07-01 02:25:09|ArchiSteamFarm-3528|INFO|vadimlitvinenko87|Farm() Chosen farming algorithm: Complex
2023-07-01 02:25:09|ArchiSteamFarm-3528|INFO|vadimlitvinenko87|FarmMultiple() Now farming: 1124660 (STORM AREA 51: AYY LMAO EDITION)
2023-07-01 02:25:09|ArchiSteamFarm-3528|INFO|vadimlitvinenko87|FarmHours() Still farming: 1124660
2023-07-01 02:25:14|ArchiSteamFarm-3528|INFO|vadimlitvinenk0|Connect() Connecting...
2023-07-01 02:25:14|ArchiSteamFarm-3528|INFO|vadimlitvinenk0|OnConnected() Connected to Steam!
2023-07-01 02:25:14|ArchiSteamFarm-3528|INFO|vadimlitvinenk0|OnConnected() Logging in...
2023-07-01 02:25:15|ArchiSteamFarm-3528|INFO|vadimlitvinenk0|OnLoggedOn() Successfully logged on as 76561198287962529.
2023-07-01 02:25:15|ArchiSteamFarm-3528|INFO|vadimlitvinenk0|Init() Logging in to ISteamUserAuth...
2023-07-01 02:25:15|ArchiSteamFarm-3528|INFO|vadimlitvinenk0|OnLicenseList() Refreshing packages data...
2023-07-01 02:25:15|ArchiSteamFarm-3528|INFO|vadimlitvinenk0|OnLicenseList() Done!
2023-07-01 02:25:15|ArchiSteamFarm-3528|INFO|vadimlitvinenk0|IsAnythingToFarm() Checking first badge page...
2023-07-01 02:25:15|ArchiSteamFarm-3528|INFO|vadimlitvinenk0|Init() Success!
2023-07-01 02:25:17|ArchiSteamFarm-3528|INFO|vadimlitvinenk0|StartFarming() We don't have anything to farm on this account!
2023-07-01 02:25:24|ArchiSteamFarm-3528|INFO|gtk87|Connect() Connecting...
2023-07-01 02:25:24|ArchiSteamFarm-3528|INFO|gtk87|OnConnected() Connected to Steam!
2023-07-01 02:25:24|ArchiSteamFarm-3528|INFO|gtk87|OnConnected() Logging in...
2023-07-01 02:25:25|ArchiSteamFarm-3528|INFO|gtk87|OnLoggedOn() Successfully logged on as 76561198004132824.
2023-07-01 02:25:25|ArchiSteamFarm-3528|INFO|gtk87|Init() Logging in to ISteamUserAuth...
2023-07-01 02:25:25|ArchiSteamFarm-3528|INFO|gtk87|OnLicenseList() Refreshing packages data...
2023-07-01 02:25:25|ArchiSteamFarm-3528|INFO|gtk87|OnLicenseList() Done!
2023-07-01 02:25:25|ArchiSteamFarm-3528|INFO|gtk87|IsAnythingToFarm() Checking first badge page...
2023-07-01 02:25:25|ArchiSteamFarm-3528|INFO|gtk87|Init() Success!
2023-07-01 02:25:27|ArchiSteamFarm-3528|INFO|gtk87|StartFarming() We don't have anything to farm on this account!
2023-07-01 02:25:34|ArchiSteamFarm-3528|INFO|p0n4ik87|Connect() Connecting...
2023-07-01 02:25:34|ArchiSteamFarm-3528|INFO|p0n4ik87|OnConnected() Connected to Steam!
2023-07-01 02:25:34|ArchiSteamFarm-3528|INFO|p0n4ik87|OnConnected() Logging in...
2023-07-01 02:25:35|ArchiSteamFarm-3528|INFO|p0n4ik87|OnLoggedOn() Successfully logged on as 76561198289327820.
2023-07-01 02:25:35|ArchiSteamFarm-3528|INFO|p0n4ik87|Init() Logging in to ISteamUserAuth...
2023-07-01 02:25:35|ArchiSteamFarm-3528|INFO|p0n4ik87|OnLicenseList() Refreshing packages data...
2023-07-01 02:25:35|ArchiSteamFarm-3528|INFO|p0n4ik87|OnLicenseList() Done!
2023-07-01 02:25:35|ArchiSteamFarm-3528|INFO|p0n4ik87|IsAnythingToFarm() Checking first badge page...
2023-07-01 02:25:35|ArchiSteamFarm-3528|INFO|p0n4ik87|Init() Success!
2023-07-01 02:25:37|ArchiSteamFarm-3528|INFO|p0n4ik87|StartFarming() We don't have anything to farm on this account!
2023-07-01 02:25:44|ArchiSteamFarm-3528|INFO|vadimlitvinenko871|Connect() Connecting...
2023-07-01 02:25:44|ArchiSteamFarm-3528|INFO|vadimlitvinenko871|OnConnected() Connected to Steam!
2023-07-01 02:25:44|ArchiSteamFarm-3528|INFO|vadimlitvinenko871|OnConnected() Logging in...
2023-07-01 02:25:45|ArchiSteamFarm-3528|INFO|vadimlitvinenko871|OnLoggedOn() Successfully logged on as 76561198174485766.
2023-07-01 02:25:45|ArchiSteamFarm-3528|INFO|vadimlitvinenko871|Init() Logging in to ISteamUserAuth...
2023-07-01 02:25:45|ArchiSteamFarm-3528|INFO|vadimlitvinenko871|OnLicenseList() Refreshing packages data...
2023-07-01 02:25:45|ArchiSteamFarm-3528|INFO|vadimlitvinenko871|OnLicenseList() Done!
2023-07-01 02:25:45|ArchiSteamFarm-3528|INFO|vadimlitvinenko871|IsAnythingToFarm() Checking first badge page...
2023-07-01 02:25:45|ArchiSteamFarm-3528|INFO|vadimlitvinenko871|Init() Success!
2023-07-01 02:25:47|ArchiSteamFarm-3528|INFO|vadimlitvinenko871|StartFarming() We don't have anything to farm on this account!
2023-07-01 02:25:54|ArchiSteamFarm-3528|INFO|vadimlitvinenko872|Connect() Connecting...
2023-07-01 02:25:54|ArchiSteamFarm-3528|INFO|vadimlitvinenko872|OnConnected() Connected to Steam!
2023-07-01 02:25:54|ArchiSteamFarm-3528|INFO|vadimlitvinenko872|OnConnected() Logging in...
2023-07-01 02:25:55|ArchiSteamFarm-3528|INFO|vadimlitvinenko872|OnLoggedOn() Successfully logged on as 76561198178781986.
2023-07-01 02:25:55|ArchiSteamFarm-3528|INFO|vadimlitvinenko872|Init() Logging in to ISteamUserAuth...
2023-07-01 02:25:55|ArchiSteamFarm-3528|INFO|vadimlitvinenko872|OnLicenseList() Refreshing packages data...
2023-07-01 02:25:55|ArchiSteamFarm-3528|INFO|vadimlitvinenko872|OnLicenseList() Done!
2023-07-01 02:25:55|ArchiSteamFarm-3528|INFO|vadimlitvinenko872|IsAnythingToFarm() Checking first badge page...
2023-07-01 02:25:55|ArchiSteamFarm-3528|INFO|vadimlitvinenko872|Init() Success!
2023-07-01 02:25:57|ArchiSteamFarm-3528|INFO|vadimlitvinenko872|StartFarming() We don't have anything to farm on this account!
2023-07-01 02:27:07|ArchiSteamFarm-3528|INFO|Microsoft.Hosting.Lifetime|Application is shutting down...

Global ASF.json config file

{
  "CurrentCulture": "en-US",
  "IPCPassword": "666999",
  "SteamOwnerID": 76561198174485766
}

BotName.json config of all affected bot instances

{
  "AcceptGifts": true,
  "AutoSteamSaleEvent": true,
  "BotBehaviour": 63,
  "Enabled": true,
  "LootableTypes": [
    1,
    2,
    3,
    4,
    5,
    6,
    7,
    8,
    9,
    10,
    11,
    12
  ],
  "OnlineStatus": 4,
  "RedeemingPreferences": 1,
  "SteamLogin": "***************",
  "SteamPassword": "*************",
  "SteamUserPermissions": {
    "76561198174485766": 3
  },
  "TradingPreferences": 1
}

Additional info

No response

nolddor commented 1 year ago

What's the output of !stats command while reproducing the issue?

JustArchi commented 1 year ago

Start with output of stats command as @nolddor asked you above. I doubt that it's ASF actually using that much memory.

vadimlitvinenko87 commented 1 year ago

Start with output of stats command as @nolddor asked you above. I doubt that it's ASF actually using that much memory. It is 100% using much ram, i am using PC from 2000 year and know how backup system and install win or linux. I see when i open archi my ram consumption bigger on 4.2Gb and not chrome or other software works parallel with it. Issue not detected on W10, but on W7 actual. Will send !stats after reboot to another system little later.

JustArchi commented 1 year ago

Windows 7 is out of support as per .NET lifecycle. I didn't see it sooner in the log, could've stated it right away. Any issues found on that platform are not relevant for .NET team, and ASF as well since we inherit supported OSes directly from .NET.

vadimlitvinenko87 commented 1 year ago

Мудак ты хуев, спасибо.

vadimlitvinenko87 commented 1 year ago

Дебил жрёт 4.2 гектары, я тебе уроду скрины делаю и репорты сливаю, а ты тупо закрыл пидорасина. Шёл в пизду урод.