[5.2.2b2] Error Value too large for an Int32

In das Unterforum "Erledigt" werden alle Beiträge geschoben, die erledigt sind, bspw. bei behobenen Bugs.
Gesperrt
Wasabi
Spender
Beiträge: 29
Registriert: Di 31. Jul 2018, 15:31
Hat sich bedankt: 23 Mal
Danksagung erhalten: 9 Mal

[5.2.2b2] Error Value too large for an Int32

Beitrag von Wasabi »

Hi,

I had the problem on the Release and therefore still on the beta.
It's just present in the log, the bot reconnects and starts again.

20191216 19:xx:19 Error Core Value was either too large or too small for an Int32.
Message: Value was either too large or too small for an Int32.
HResult: -2146233066
Source: mscorlib
StackTrace: at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.String.System.IConvertible.ToInt32(IFormatProvider provider)
at de.mfbot.MFBot_NG.Basisbibliothek.Response.T(String T, String Q, Boolean H, Nullable`1 R, Boolean A) in File143:line 210
at de.mfbot.MFBot_NG.Basisbibliothek.Response.T(Command T, Dictionary`2 Q, Dictionary`2 H, Account R) in File143:line 806
at de.mfbot.MFBot_NG.Basisbibliothek.Response..ctor(String rawData, Account acc, Boolean newResponse, Command cmd, Boolean plaintext) in File143:line 787
at de.mfbot.MFBot_NG.Basisbibliothek.Response.createResponse(String rawData, Command request, Account acc) in File143:line 143
at de.mfbot.MFBot_NG.Basisbibliothek.Server.send(Account acc, Command cmd) in File144:line 573
TargetSite: Int32 ParseInt32(System.String, System.Globalization.NumberStyles, System.Globalization.NumberFormatInfo)
20191216 19:xx:19 Info Core Logging in...
20191216 19:xx:30 Info RequestResponse Account has been logged in.

Wasabi.
vinc_ent
Beiträge: 32
Registriert: So 1. Apr 2018, 13:15
Hat sich bedankt: 6 Mal
Danksagung erhalten: 3 Mal

Re: [5.2.2b2] Error Value too large for an Int32

Beitrag von vinc_ent »

Same issue here
I use it on Raspberry 3

This is the output on the console:
Error Core
!##Value was either too large or too small for an Int32.
!## at System.Number.ParseInt32 (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) [0x00059] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.Int32.Parse (System.String s, System.Globalization.NumberStyles style, System.IFormatProvider provider) [0x0000e] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.Convert.ToInt32 (System.String value, System.IFormatProvider provider) [0x00005] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.String.System.IConvertible.ToInt32 (System.IFormatProvider provider) [0x00000] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.Convert.ToInt32 (System.Object value) [0x00003] in <a6f810169ec746eeb2789b925e2858c0>:0
at de.mfbot.MFBot_NG.Basisbibliothek.Response.getFightRoundsFromFightString (System.String fight_s, System.String startValues, System.Boolean arena, System.Nullable`1[T] foeStartLife, System.Boolean withCompanions) [0x00234] in <cf6a653f97a74e76ad2ea5ef3593d9d8>:0
at de.mfbot.MFBot_NG.Basisbibliothek.Response.processFightCommandResponses (de.mfbot.MFBot_NG.Basisbibliothek.Command cmd, System.Collections.Generic.Dictionary`2[TKey,TValue] NewData, System.Collections.Generic.Dictionary`2[TKey,TValue] NewListData, de.mfbot.MFBot_NG.Basisbibliothek.Account acc) [0x000ef] in <cf6a653f97a74e76ad2ea5ef3593d9d8>:0
at de.mfbot.MFBot_NG.Basisbibliothek.Response..ctor (System.String rawData, de.mfbot.MFBot_NG.Basisbibliothek.Account acc, System.Boolean newResponse, de.mfbot.MFBot_NG.Basisbibliothek.Command cmd, System.Boolean plaintext) [0x01912] in <cf6a653f97a74e76ad2ea5ef3593d9d8>:0
at de.mfbot.MFBot_NG.Basisbibliothek.Response.createResponse (System.String rawData, de.mfbot.MFBot_NG.Basisbibliothek.Command request, de.mfbot.MFBot_NG.Basisbibliothek.Account acc) [0x00089] in <cf6a653f97a74e76ad2ea5ef3593d9d8>:0
at de.mfbot.MFBot_NG.Basisbibliothek.Server.send (de.mfbot.MFBot_NG.Basisbibliothek.Account acc, de.mfbot.MFBot_NG.Basisbibliothek.Command cmd) [0x002ad] in <cf6a653f97a74e76ad2ea5ef3593d9d8>:0

After this it tells me session is invalid and does a relogin



This is from the Log files:
Error Core Value was either too large or too small for an Int32.
Message: Value was either too large or too small for an Int32.
HResult: -2146233066
Source: mscorlib
StackTrace: at System.Number.ParseInt32 (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) [0x00059] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.Int32.Parse (System.String s, System.Globalization.NumberStyles style, System.IFormatProvider provider) [0x0000e] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.Convert.ToInt32 (System.String value, System.IFormatProvider provider) [0x00005] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.String.System.IConvertible.ToInt32 (System.IFormatProvider provider) [0x00000] in <a6f810169ec746eeb2789b925e2858c0>:0
at System.Convert.ToInt32 (System.Object value) [0x00003] in <a6f810169ec746eeb2789b925e2858c0>:0
at de.mfbot.MFBot_NG.Basisbibliothek.Response.getFightRoundsFromFightString (System.String fight_s, System.String startValues, System.Boolean arena, System.Nullable`1[T] foeStartLife, System.Boolean withCompanions) [0x00234] in <78c902097908498e9f8fa9497d3cb632>:0
at de.mfbot.MFBot_NG.Basisbibliothek.Response.processFightCommandResponses (de.mfbot.MFBot_NG.Basisbibliothek.Command cmd, System.Collections.Generic.Dictionary`2[TKey,TValue] NewData, System.Collections.Generic.Dictionary`2[TKey,TValue] NewListData, de.mfbot.MFBot_NG.Basisbibliothek.Account acc) [0x000ef] in <78c902097908498e9f8fa9497d3cb632>:0
at de.mfbot.MFBot_NG.Basisbibliothek.Response..ctor (System.String rawData, de.mfbot.MFBot_NG.Basisbibliothek.Account acc, System.Boolean newResponse, de.mfbot.MFBot_NG.Basisbibliothek.Command cmd, System.Boolean plaintext) [0x018b7] in <78c902097908498e9f8fa9497d3cb632>:0
at de.mfbot.MFBot_NG.Basisbibliothek.Response.createResponse (System.String rawData, de.mfbot.MFBot_NG.Basisbibliothek.Command request, de.mfbot.MFBot_NG.Basisbibliothek.Account acc) [0x00089] in <78c902097908498e9f8fa9497d3cb632>:0
at de.mfbot.MFBot_NG.Basisbibliothek.Server.send (de.mfbot.MFBot_NG.Basisbibliothek.Account acc, de.mfbot.MFBot_NG.Basisbibliothek.Command cmd) [0x002ad] in <78c902097908498e9f8fa9497d3cb632>:0
TargetSite: Int32 ParseInt32(System.String, System.Globalization.NumberStyles, System.Globalization.NumberFormatInfo)

btw: I have this also on the latest Release Version
Folgende Benutzer bedankten sich beim Autor vinc_ent für den Beitrag:
Wasabi (Fr 27. Dez 2019, 15:06)
Benutzeravatar
Robin
Administrator
Beiträge: 1723
Registriert: So 30. Jun 2013, 18:12
Wohnort: Rheinland-Pfalz
Hat sich bedankt: 303 Mal
Danksagung erhalten: 354 Mal

Re: [5.2.2b2] Error Value too large for an Int32

Beitrag von Robin »

Sollte zur nächsten Version behoben sein, ansonsten nochmal melden!
Bei dem Fehler ist es immer etwas schwieriger einzugrenzen, von welchen Daten er verursacht wurde.

Grüße,
Robin
MFBot-VersionCode-Zeilen*In Dateien*Letzte Version
MFBot 1.5.x64851Juli 2013
MFBot 2.x1436316März 2014
MFBot 3.x2209536März 2015
MFBot 4.x55242241Juli 2018
MFBot 5.x66000440Tbc
*Ohne automatisch generierten Designer-Code
Gesperrt

Wer ist online?

Mitglieder in diesem Forum: Bing [Bot] und 1 Gast