Closed JourneyOver closed 1 year ago
Can confirm that it is indeed working with v1.2.9 :D
Hi, same error happens again in ArchiSteamFarm V5.4.0.3, using v1.2.9.
2022-12-05 20:02:48|ArchiSteamFarm-3490465|ERROR|ASF|OnBotLoggedOn() System.TypeLoadException: Could not load type 'System.WeakReference`1' from assembly 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=XXXXXXXXXXX'.
at Maxisoft.ASF.BotContext..ctor(Bot bot)
at Maxisoft.ASF.ASFFreeGamesPlugin.RegisterBot(Bot bot)
at Maxisoft.ASF.ASFFreeGamesPlugin.OnBotLoggedOn(Bot bot)
at ArchiSteamFarm.Core.Utilities.InParallel(IEnumerable`1 tasks)
at ArchiSteamFarm.Plugins.PluginsCore.OnBotLoggedOn(Bot bot)
...
2022-12-05 20:02:58|ArchiSteamFarm-3490465|INFO|ASF|CollectGames() [FreeGames] found potentially 22 free games on reddit
2022-12-05 20:02:58|ArchiSteamFarm-3490465|FATAL|ASF|OnUnhandledException() System.Collections.Generic.KeyNotFoundException: The given key '[Bot's name here]' was not present in the dictionary.
at System.Collections.Concurrent.ConcurrentDictionary`2.ThrowKeyNotFoundException(TKey)
at System.Collections.Concurrent.ConcurrentDictionary`2.get_Item(TKey)
at Maxisoft.ASF.ASFFreeGamesPlugin.CollectGames(IEnumerable`1 bots, CollectGameRequestSource requestSource, CancellationToken cancellationToken)
at Maxisoft.ASF.ASFFreeGamesPlugin.CollectGamesOnClock(Object source)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
2022-12-05 20:02:58|ArchiSteamFarm-3490465|ERROR|ASF|Exit() 正在以非 0 错误代码退出!
2022-12-05 20:02:58|ArchiSteamFarm-3490465|INFO|Microsoft.Hosting.Lifetime|Application is shutting down...
Running 5.4.0.3 and using 1.2.9 and can not confirm that this is still an issue as I'm not getting the error, so could be something with your system @azhuge233 ... I would suggest posting the full log btw as it may help in determining your issue.
Describe the bug
ASF has updated to using .NET 7 in their releases (starting as of pre-release 5.4.0.1) and now throws errors upon starting up with ASFFreeGames and eventually causes ASF to shut down with a nonzero error code.
To Reproduce Steps to reproduce the behavior:
Expected behavior
Well for it to not throw errors and shut down.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Downgrading back to the stable release and things work just fine obviously because the stable version hasn't been updated to use .net 7 yet, but I'm sure it won't be too long till it does.