JustArchiNET / ArchiSteamFarm

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

OnUnhandledException() System.MissingMethodException: Attempted to access a missing method. #2522

Closed C-O-S closed 2 years ago

C-O-S commented 2 years ago

Checklist

ASF version

Latest pre-release

ASF variant

win-x64

Bug description

Normal operation, farming cards, application crashed reporting FATAL|ASF|OnUnhandledException() System.MissingMethodException: Attempted to access a missing method.

Expected behavior

Operational without crash

Actual behavior

2022-02-24 16:20:25|ArchiSteamFarm-2292|FATAL|ASF|OnUnhandledException() System.MissingMethodException: Attempted to access a missing method.
   at ArchiSteamFarm.OfficialPlugins.SteamTokenDumper.SteamTokenDumperPlugin.SubmitData(Object state)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& )
   at ArchiSteamFarm.OfficialPlugins.SteamTokenDumper.SteamTokenDumperPlugin.SubmitData(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext , ContextCallback , Object )
--- End of stack trace from previous location ---
   at System.Threading.TimerQueueTimer.Fire(Boolean )
   at System.Threading.TimerQueue.FireNextTimers()

Steps to reproduce

Start ASF Wait for it to start farming/trading Crash

Possible reason/solution

This appears to be related to the official SteamTokenDumper plugin in some fashion.

Can you help us with this bug report?

No, I don't have time, skills or willings for any of that

Full log.txt recorded during reproducing the problem

2022-02-24 15:28:23|ArchiSteamFarm-2292|INFO|ASF|InitCore() ArchiSteamFarm V5.2.3.4 (win-x64/cef14a23-1d28-4e4d-844e-9aba036699f2 | .NET 6.0.2; win10-x64; Microsoft Windows 10.0.22000)
2022-02-24 15:28:23|ArchiSteamFarm-2292|INFO|ASF|InitCore() Copyright © 2015-2022 JustArchiNET
2022-02-24 15:28:24|ArchiSteamFarm-2292|INFO|ASF|InitPlugins() Initializing Plugins...
2022-02-24 15:28:24|ArchiSteamFarm-2292|INFO|ASF|InitPlugins() Loading SteamTokenDumperPlugin V5.2.3.4...
2022-02-24 15:28:24|ArchiSteamFarm-2292|INFO|ASF|InitPlugins() SteamTokenDumperPlugin has been loaded successfully!
2022-02-24 15:28:24|ArchiSteamFarm-2292|INFO|ASF|UpdateAndRestart() ASF will automatically check for new versions every 1 day.
2022-02-24 15:28:24|ArchiSteamFarm-2292|INFO|ASF|Update() Checking for new version...
2022-02-24 15:28:25|ArchiSteamFarm-2292|INFO|ASF|Update() Local version: 5.2.3.4 | Remote version: 5.2.3.4
2022-02-24 15:28:25|ArchiSteamFarm-2292|INFO|ASF|Load() Loading STD global cache...
2022-02-24 15:28:25|ArchiSteamFarm-2292|INFO|ASF|Load() Validating STD global cache integrity...
2022-02-24 15:28:25|ArchiSteamFarm-2292|INFO|ASF|OnASFInit() SteamTokenDumperPlugin has been initialized successfully, thank you in advance for your help. The first submission will happen in approximately 52 minutes from now.
2022-02-24 15:28:25|ArchiSteamFarm-2292|INFO|ASF|StartInteractiveConsole() Interactive console is now active, type 'c' in order to enter command mode.
2022-02-24 15:28:25|ArchiSteamFarm-2292|INFO|ASF|Start() Starting IPC server...
2022-02-24 15:28:26|ArchiSteamFarm-2292|INFO|ASF|Start() IPC server ready!
2022-02-24 15:28:26|ArchiSteamFarm-2292|INFO|Cos|Start() Starting...
2022-02-24 15:28:26|ArchiSteamFarm-2292|INFO|Cos|Connect() Connecting...
2022-02-24 15:28:26|ArchiSteamFarm-2292|INFO|Cos|OnConnected() Connected to Steam!
2022-02-24 15:28:26|ArchiSteamFarm-2292|INFO|Cos|OnConnected() Logging in...
2022-02-24 15:28:27|ArchiSteamFarm-2292|INFO|Cos|OnLoggedOn() Successfully logged on as 76561197973009892/_C0S_.
2022-02-24 15:28:27|ArchiSteamFarm-2292|INFO|Cos|Init() Logging in to ISteamUserAuth...
2022-02-24 15:28:28|ArchiSteamFarm-2292|INFO|Cos|Init() Success!
2022-02-24 15:28:28|ArchiSteamFarm-2292|INFO|Cos|Refresh() Retrieving a total of 88 app access tokens...
2022-02-24 15:28:28|ArchiSteamFarm-2292|INFO|Cos|Refresh() Retrieving 88 app access tokens...
2022-02-24 15:28:28|ArchiSteamFarm-2292|INFO|Cos|Refresh() Finished retrieving 88 app access tokens.
2022-02-24 15:28:28|ArchiSteamFarm-2292|INFO|Cos|Refresh() Finished retrieving a total of 88 app access tokens.
2022-02-24 15:28:28|ArchiSteamFarm-2292|INFO|Cos|Refresh() Retrieving all depots for a total of 88 apps...
2022-02-24 15:28:28|ArchiSteamFarm-2292|INFO|Cos|Refresh() Retrieving 88 app infos...
2022-02-24 15:28:29|ArchiSteamFarm-2292|INFO|Cos|Refresh() Finished retrieving 88 app infos.
2022-02-24 15:28:29|ArchiSteamFarm-2292|INFO|Cos|Refresh() Retrieving 89 depot keys...
2022-02-24 15:28:29|ArchiSteamFarm-2292|INFO|Cos|IsAnythingToFarm() Checking first badge page...
2022-02-24 15:28:31|ArchiSteamFarm-2292|INFO|Cos|Refresh() Finished retrieving 89 depot keys.
2022-02-24 15:28:31|ArchiSteamFarm-2292|INFO|Cos|Refresh() Finished retrieving all depot keys for a total of 88 apps.
2022-02-24 15:28:32|ArchiSteamFarm-2292|INFO|Cos|IsAnythingToFarm() Checking other badge pages...
2022-02-24 15:28:55|ArchiSteamFarm-2292|INFO|Cos|Farm() We have a total of 5 games (19 cards) left to farm (~12 hours, 30 minutes remaining)...
2022-02-24 15:28:55|ArchiSteamFarm-2292|INFO|Cos|Farm() Chosen farming algorithm: Complex
2022-02-24 15:28:56|ArchiSteamFarm-2292|INFO|Cos|IsPlayableGame() Farming 503490 (Sword of Fireheart - The Awakening Element) is temporarily disabled, as ASF is not able to play that game at the moment.
2022-02-24 15:28:56|ArchiSteamFarm-2292|INFO|Cos|IsPlayableGame() Farming 900040 (ELEX II) is temporarily disabled, as ASF is not able to play that game at the moment.
2022-02-24 15:28:57|ArchiSteamFarm-2292|INFO|Cos|IsPlayableGame() Farming 545450 (Hollow Bliss) is temporarily disabled, as ASF is not able to play that game at the moment.
2022-02-24 15:28:57|ArchiSteamFarm-2292|INFO|Cos|FarmMultiple() Now farming: 985830, 1660280
2022-02-24 15:28:57|ArchiSteamFarm-2292|INFO|Cos|FarmHours() Still farming: 985830, 1660280
2022-02-24 15:44:07|ArchiSteamFarm-2292|INFO|Cos|FarmHours() Still farming: 985830, 1660280
2022-02-24 15:58:58|ArchiSteamFarm-2292|INFO|Cos|FarmHours() Still farming: 985830, 1660280
2022-02-24 15:58:58|ArchiSteamFarm-2292|INFO|Cos|FarmHours() Still farming: 985830, 1660280
2022-02-24 16:14:08|ArchiSteamFarm-2292|INFO|Cos|FarmHours() Still farming: 985830, 1660280
2022-02-24 16:20:25|ArchiSteamFarm-2292|FATAL|ASF|OnUnhandledException() System.MissingMethodException: Attempted to access a missing method.
   at ArchiSteamFarm.OfficialPlugins.SteamTokenDumper.SteamTokenDumperPlugin.SubmitData(Object state)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& )
   at ArchiSteamFarm.OfficialPlugins.SteamTokenDumper.SteamTokenDumperPlugin.SubmitData(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext , ContextCallback , Object )
--- End of stack trace from previous location ---
   at System.Threading.TimerQueueTimer.Fire(Boolean )
   at System.Threading.TimerQueue.FireNextTimers()
2022-02-24 16:20:25|ArchiSteamFarm-2292|ERROR|ASF|Exit() Exiting with nonzero error code!
2022-02-24 16:20:25|ArchiSteamFarm-2292|INFO|Cos|Stop() Stopping...
2022-02-24 16:20:25|ArchiSteamFarm-2292|INFO|Cos|OnDisconnected() Disconnected from Steam!
2022-02-24 16:20:25|ArchiSteamFarm-2292|INFO|Cos|FarmHours() Stopped farming: 985830, 1660280
2022-02-24 16:20:27|ArchiSteamFarm-2292|INFO|Cos|StopFarming() Farming stopped!

Global ASF.json config file

{
  "SteamOwnerID": 76561197973009892,
  "UpdateChannel": 2,
  "IPCPrefixes": [
    "http://127.0.0.1:1242/"
  ],
  "SteamTokenDumperPluginEnabled": true
}

BotName.json config of all affected bot instances

{
  "AutoSteamSaleEvent": true,
  "BotBehaviour": 2,
  "Enabled": true,
  "FarmingOrders": [
    9
  ],
  "MatchableTypes": [
    2,
    4,
    5
  ],
  "OnlineStatus": 0,
  "SteamLogin": "removed",
  "SteamPassword": "removed",
  "SteamTradeToken": "removed",
  "TradingPreferences": 19
}

Additional info

This appears to be related to the official SteamTokenDumper plugin in some fashion.

JustArchi commented 2 years ago

Thanks for report, I'm working on it.

JustArchi commented 2 years ago

Should be fixed in V5.2.3.5, let me know if it isn't.

C-O-S commented 2 years ago

Thanks for the update! I'll download it now and reenable the plugin.