Closed maxisoft closed 2 years ago
As per https://github.com/JustArchiNET/ArchiSteamFarm/discussions/2602#discussioncomment-2920710 it seems the issue was due to https://github.com/JustArchiNET/ArchiSteamFarm/pull/2594 and release / pre-release unsync for now.
I'm not using custom plugins
To leave some meaningful answer: I most likely forgot to mention it in the release notes, so I'll update those because indeed it's important to let plugin creators know, but it's not a bug per-se.
// And done.
Checklist
ASF version
Latest pre-release
ASF variant
win-x64
Bug description
Using latest pre-release
ASF-win-x64.zip
V5.2.7.1 and https://github.com/maxisoft/ASFFreeGames makes asf program crash due toSystem.MissingMethodException
(https://github.com/maxisoft/ASFFreeGames/issues/2).The root cause is that the asf method
ArchiSteamFarm.Core.Utilities.GetUnixTime()
got trimmed out in the release.https://github.com/JustArchiNET/ArchiSteamFarm/blob/8948817d552ed0f000cc4b4b86e9051f0b9efb3a/ArchiSteamFarm/Core/Utilities.cs#L96-L97
While I've already added a workaround on my plugin code, it seems the missing method is annoted with [PublicAPI]. It seems odd that a PublicAPI method got trimmed out (hence I made this bug report).
Expected behavior
I'm not expecting that a [PublicAPI] call leads to a
System.MissingMethodException
.Actual behavior
System.MissingMethodException
crash onUtilities.GetUnixTime()
Steps to reproduce
Utilities.GetUnixTime()
callPossible reason/solution
Up to the Assignees. IMO the two straithforward solutions are:
PublicAPIAttribute
on that methodUtilities.GetUnixTime()
to not get trimmed outNote: It seems this method is somehow internally inlined or discarded during compilation/trim phase as there's calls on MobileAuthenticator.cs
Can you help us with this bug report?
Somehow, I can test and offer feedback, but can't code
Full log.txt recorded during reproducing the problem
Global ASF.json config file
No response
BotName.json config of all affected bot instances
No response
Additional info
Thank you.