RocketBot icon indicating copy to clipboard operation
RocketBot copied to clipboard

Getting lots of System.ArgumentOutOfRangeException

Open Revell1on opened this issue 10 years ago • 37 comments

at any coords Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll Exception thrown: 'System.ArgumentOutOfRangeException' in Google.Protobuf.dll Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll Exception thrown: 'System.ArgumentOutOfRangeException' in Google.Protobuf.dll Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll

latest version possible, pulled right out of here seconds ago

Stacktrace attached in file stacktrace.txt

Revell1on avatar Jul 28 '16 21:07 Revell1on

Same. Getting it in both the latest version and the versions that log in with email and pass.

pokemongo rocketapi window_2016-07-28_17-36-40

CryptoBackroom avatar Jul 28 '16 21:07 CryptoBackroom

@CryptoBackroom I'm getting the same error as you.

Friending avatar Jul 28 '16 21:07 Friending

Best thing would be if you attach Visual Studio's debugger and see where the error happens so it's easier to reproduce/investigate this issue. ArgumentOutOfRangeExceptions are very generic and I'm not sure this ticket alone is too helpful.

keichinger avatar Jul 28 '16 21:07 keichinger

screenshot_76 me too. how to fix ? thanks

bl4zevenaar avatar Jul 28 '16 21:07 bl4zevenaar

You can fix it by doing what I've just described. This software isn't ready yet for people to be used/consumed without investing some brain cells of their own since it's still WIP.

keichinger avatar Jul 28 '16 21:07 keichinger

Looks like they may have made some server changes - Still investigating.

TheBambino avatar Jul 28 '16 21:07 TheBambino

I have attached stacktrace in my first post

Revell1on avatar Jul 28 '16 21:07 Revell1on

@cH40z-Lord please document your fix then. The rest of us have "some brain cells" and are working it, but alas it appears we aren't as smart as you.

CryptoBackroom avatar Jul 28 '16 21:07 CryptoBackroom

I'll add on that I'm getting the same over here with the latest build and a few older ones (including v1). Error just started popping up about 30 minutes ago. All of my builds worked flawlessly prior to whatever happened 30 minutes or so ago.

Zm0n avatar Jul 28 '16 22:07 Zm0n

Any call to rpc endpoint returns {unknown1: 52}. It can't be anything that client needs since they would have to update the mobile client and my mobile client didn't get an update. It might be they are looking at user-agent in the header. It's definitely something the client is doing that the RocketApi doesn't do with it's requests.

As for ch40z-Lord - attaching debugger is for newbs bro. Just go into Debug->Windows->Exception Settings and click the checkbox for the exception you want. Then you will break right at the point of the exception and not at any handlers for that exception.

soshimozi avatar Jul 28 '16 22:07 soshimozi

@mfron

Is that tested and working? If so, do you think you could add a pull request?

Edit* The code he is referring to can be found in \PokemonGo\RocketAPI\Extensions

CryptoBackroom avatar Jul 28 '16 22:07 CryptoBackroom

just inserted the code @mfron provided, worked fine for 3 minutes, after that same exception popped, gonna monitor it for some time

upd_01 2nd session lasted for 5 minutes before exception, successfully reconnected though upd_02 new stacktrace after fix from @mfron popped at var payload = response.Payload[0]; stacktrace.txt

Revell1on avatar Jul 28 '16 22:07 Revell1on

@mfron thank you for the help. Works for a little bit then i get

Exception thrown: 'System.ArgumentOutOfRangeException' in Google.Protobuf.dll

Maybe file needs updating?

bespike avatar Jul 28 '16 22:07 bespike

that's a little strange code at exception handling block, putting it to test

Revell1on avatar Jul 28 '16 22:07 Revell1on

Just want to point out that the Boolean waitingForResponse is not declared anywhere. Far as I can tell at least.

CryptoBackroom avatar Jul 28 '16 22:07 CryptoBackroom

it is declared in the 2nd code example private static bool waitingForResponse = false;

Revell1on avatar Jul 28 '16 22:07 Revell1on

@mfron thanks

CryptoBackroom avatar Jul 28 '16 22:07 CryptoBackroom

@mfron where does your code go?

Friending avatar Jul 28 '16 22:07 Friending

Works for me, at least more than 2 minutes.

andreywis avatar Jul 28 '16 22:07 andreywis

@mfron it's working stable for the last 5 minutes, i commented two lines with console output (too much spam) and added exceptiong reporting in catch block, these changes do not affect any logic so conclusion is "working fine", keeping monitoring tho

Revell1on avatar Jul 28 '16 22:07 Revell1on