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

ClientLogon is not being sent #154

Closed JustArchi closed 8 years ago

JustArchi commented 8 years ago

This issue is very weird. I'm out of ideas at the moment, perhaps SK2 devs could help - https://github.com/SteamRE/SteamKit/issues/254


I released ASF V2.0.1.0 with HackIgnoreMachineID which should solve this issue until SK2 devs fix it in SK2 code.

Leaving this issue open to remind me of removing my hacks once new SK2 is released.

Rudokhvist commented 8 years ago

I've heard about that issue a couple of times. This is it, right? http://s020.radikal.ru/i713/1512/4e/f7b55de30d65.png So, despite it's very rare, it's not a problem of one specific user. For some people it mysteriously was solved when switching to next version of asf. For some - not. And I have no idea what could cause it :disappointed:

Pandiora commented 8 years ago

Maybe its a problem with a third-party program. ASF also fails to connect for me if I´m using such programs like Fiddler, but I can´t reproduce this special case. If you have someone with the same issue, just ask him for a list of his programs, network-adapters and other stuff that could cause such errors. If possible the one with this problem could set up a virtual-machine with Linux and test it again.

Rudokhvist commented 8 years ago

Here is a links to people with similar issues, just in case: http://www.steamgifts.com/go/comment/ZLOPEk6 http://www.steamgifts.com/go/comment/GJkx59P http://www.steamgifts.com/go/comment/IbaHmUk http://gameminer.net/forum/7/39087?page=4 (in the middle of a page, can't link to the comment itself. the image I posted above is from this post).

JustArchi commented 8 years ago

@Ryzhehvost Yeah, it's the same issue. Thing is, it's not hard to actually find people who are affected by it, but the root issue.

Rudokhvist commented 8 years ago

I wish we could get some statistics about what OS and Installed software they all have... Maybe we can find what they have in common, and then reproduce the issue for debug...

Pandiora commented 8 years ago

It would be easier to find out if we have a person with this problem and if possible look closer into it with Teamviewer/Anydesk. Also your linked posts @Ryzhehvost date back to 1-4 months. Maybe and just maybe this problem is fixed with ASF v >= 2.0.

Rudokhvist commented 8 years ago

Maybe and just maybe this problem is fixed with ASF v >= 2.0.

If Archi wouldn't post this issue I would not bring these links. But all points that this is the same issue, it just occurs rarely enough.

JustArchi commented 8 years ago

TeamViewer won't help because I don't know what is the root issue and I don't even know HOW to debug it. This issue doesn't make sense to me, that's why I asked SK2 devs about it.

Pandiora commented 8 years ago

@JustArchi It looks like you tested this issue locally? (your link) But you marked this with "Can´t reproduce". I know connecting to a user with Teamviewer should be the last step, but if you can´t find any clues, this could help. Look at this issue 2 days ago and the person who failed to import his *.maFiles. If you connected with Teamviewer and looked into it, you would have needed 10 seconds to find the issue by just opening the exported file and knowing there was no valid json. Anyway I can only guess whats wrong. Lets hope the SK-Devs know how to debug this problem.

JustArchi commented 8 years ago

I repeat, even if I was able to reproduce it, I'd still have no idea how to fix it, because it doesn't make any logical sense to me. I'd do the same steps I already suggested to user - record debug log and look inside, but there is nothing interesting there.

JustArchi commented 8 years ago

Got it.

14.03.2016 20:08:05 [*] INFO: CheckForUpdate() <Main> Checking new version...
14.03.2016 20:08:05 [*] INFO: CheckForUpdate() <Main> Local version: 2.0.0.10 | Remote version: 2.0.0.7
14.03.2016 20:08:05 [!] WARNING: CheckForUpdate() <Main> Could not proceed with update because there is no asset that relates to currently running binary!
14.03.2016 20:08:05 [*] INFO: RefreshCMs() <Main> Refreshing list of CMs...
14.03.2016 20:08:06 [*] INFO: RefreshCMs() <Main> Success!
14.03.2016 20:08:06 [*] INFO: Main() <example> Not starting this instance because it's disabled in config file
14.03.2016 20:08:06 [*] INFO: Start() <first> Starting...
14.03.2016 20:08:06 [*] INFO: Main() <minimal> Not starting this instance because it's disabled in config file
14.03.2016 20:08:06 [*] INFO: OnConnected() <first> Connected to Steam!
14.03.2016 20:08:06 [*] INFO: OnConnected() <first> Logging in with default behaviour...
14.03.2016 20:08:06 [!] EXCEPTION: OnConnected() <first> One or more errors occurred.
14.03.2016 20:08:06 [!] StackTrace:    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait(TimeSpan timeout)
   at SteamKit2.HardwareUtils.GetMachineID()
   at SteamKit2.SteamUser.LogOn(LogOnDetails details)
   at ArchiSteamFarm.Bot.OnConnected(ConnectedCallback callback)
14.03.2016 20:08:06 [!] EXCEPTION: OnConnected() <first> The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. (Exception from HRESULT: 0x80070422)
14.03.2016 20:08:06 [!] StackTrace:    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at System.Management.ManagementScope.InitializeGuts(Object o)
   at System.Management.ManagementScope.Initialize()
   at System.Management.ManagementObjectSearcher.Initialize()
   at System.Management.ManagementObjectSearcher.Get()
   at SteamKit2.WindowsInfoProvider.WmiQuery(String queryFormat, Object[] args)
   at SteamKit2.WindowsInfoProvider.GetDiskId()
   at SteamKit2.HardwareUtils.GenerateMachineID()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

This is SK2 issue, 100%.

JustArchi commented 8 years ago

I released ASF V2.0.1.0 with HackIgnoreMachineID which should solve this issue until SK2 devs fix it in SK2 code.

Leaving this issue open to remind me of removing my hacks once new SK2 is released.

JustArchi commented 8 years ago

This should be solved for good since 2.1.2.3+.