ShimmyMySherbet / ShimmysAdminTools

A feature-rich admin toolkit for Unturned. Including Flight, Noclip, and Command Spying.
GNU General Public License v3.0
29 stars 7 forks source link

SeeInv massive error (crashes the server) #9

Closed ndv400 closed 2 years ago

ndv400 commented 3 years ago

After putting something into a player's inventory:

[03.05.2021 16:58:54] [Error] The requested operation caused a stack overflow.
[03.05.2021 16:58:54] [Error]   at System.Number.ParseNumber (System.Char*& str, System.Globalization.NumberStyles options, System.Number+NumberBuffer& number, System.Text.StringBuilder sb, System.Globalization.NumberFormatInfo numfmt, System.Boolean parseDecimal) [0x000ab] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Number.StringToNumber (System.String str, System.Globalization.NumberStyles options, System.Number+NumberBuffer& number, System.Globalization.NumberFormatInfo info, System.Boolean parseDecimal) [0x00020] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Number.ParseInt32 (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) [0x00013] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Int32.Parse (System.String s, System.Globalization.NumberStyles style, System.IFormatProvider provider) [0x0000e] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Convert.ToInt32 (System.String value, System.IFormatProvider provider) [0x00005] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.String.System.IConvertible.ToInt32 (System.IFormatProvider provider) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x0011a] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Enum.TryParseEnum (System.Type enumType, System.String value, System.Boolean ignoreCase, System.Enum+EnumResult& parseResult) [0x000bd] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Enum.Parse (System.Type enumType, System.String value, System.Boolean ignoreCase) [0x00010] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Enum.Parse (System.Type enumType, System.String value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at Rocket.Unturned.Events.UnturnedPlayerEvents.onInventoryUpdated (System.Byte E, System.Byte O, SDG.Unturned.ItemJar P) [0x00027] in <b6c32bcf50e74c9889c9314006c50810>:0 
  at (wrapper delegate-invoke) <Module>.invoke_void_byte_byte_ItemJar(byte,byte,SDG.Unturned.ItemJar)
  at SDG.Unturned.PlayerInventory.onItemUpdated (System.Byte page, System.Byte index, SDG.Unturned.ItemJar jar) [0x00008] in <7f74451bddaa4dee88d211bbaf0fd5b8>:0 
  at (wrapper delegate-invoke) <Module>.invoke_void_byte_byte_ItemJar(byte,byte,SDG.Unturned.ItemJar)
  at SDG.Unturned.Items.updateState (System.Byte index, System.Byte[] newState) [0x0004b] in <7f74451bddaa4dee88d211bbaf0fd5b8>:0 
  at SDG.Unturned.PlayerInventory.updateState (System.Byte page, System.Byte index, System.Byte[] newState) [0x00021] in <7f74451bddaa4dee88d211bbaf0fd5b8>:0 
  at SDG.Unturned.PlayerInventory.sendUpdateInvState (System.Byte page, System.Byte x, System.Byte y, System.Byte[] state) [0x0000a] in <7f74451bddaa4dee88d211bbaf0fd5b8>:0 
  at ShimmysAdminTools.Behaviors.SeeInventoryBehaviour.onItemUpdated (System.Byte page, System.Byte index, SDG.Unturned.ItemJar jar) [0x0004d] in <9dcb33b641a447dfbae45cf12a43d54d>:0 
  at (wrapper delegate-invoke) <Module>.invoke_void_byte_byte_ItemJar(byte,byte,SDG.Unturned.ItemJar)
  at SDG.Unturned.Items.updateState (System.Byte index, System.Byte[] newState) [0x0004b] in <7f74451bddaa4dee88d211bbaf0fd5b8>:0 
  at SDG.Unturned.PlayerInventory.updateState (System.Byte page, System.Byte index, System.Byte[] newState) [0x00021] in <7f74451bddaa4dee88d211bbaf0fd5b8>:0 
  at SDG.Unturned.PlayerInventory.sendUpdateInvState (System.Byte page, System.Byte x, System.Byte y, System.Byte[] state) [0x0000a] in <7f74451bddaa4dee88d211bbaf0fd5b8>:0 
  at ShimmysAdminTools.Behaviors.SeeInventoryBehaviour.onItemUpdated (System.Byte page, System.Byte index, SDG.Unturned.ItemJar jar) [0x0004d] in <9dcb33b641a447dfbae45cf12a43d54d>:0 
  at (wrapper delegate-invoke) <Module>.invoke_void_byte_byte_ItemJar(byte,byte,SDG.Unturned.ItemJar)
  at SDG.Unturned.Items.updateState (System.Byte index, System.Byte[] newState) [0x0004b] in <7f74451bddaa4dee88d211bbaf0fd5b8>:0 
  at SDG.Unturned.PlayerInventory.updateState (System.Byte page, System.Byte index, System.Byte[] newState) [0x00021] in <7f74451bddaa4dee88d211bbaf0fd5b8>:0 
  at SDG.Unturned.PlayerInventory.sendUpdateInvState (System.Byte page, System.Byte x, System.Byte y, System.Byte[] state) [0x0000a] in <7f74451bddaa4dee88d211bbaf0fd5b8>:0 
  at ShimmysAdminTools.Behaviors.SeeInventoryBehaviour.onItemUpdated (System.Byte page, System.Byte index, SDG.Unturned.ItemJar jar) [0x0004d] in <9dcb33b641a447dfbae45cf12a43d54d>:0 
  at (wrapper delegate-invoke) <Module>.invoke_void_byte_byte_ItemJar(byte,byte,SDG.Unturned.ItemJar)

Also when a player takes something from another player's inventory there's a chance that the entire server will crash.

ShimmyMySherbet commented 3 years ago

/SeeInventory is still under development, hence why there is no release with it yet. I'm not actively working on my projects atm due to my other commitments, though I plan to resume plugin development in about 2 weeks.

ShimmyMySherbet commented 3 years ago

I've marked the command as experimental now since it's not ready to be used.

ShimmyMySherbet commented 2 years ago

I no longer plan on finishing this command, as I no longer have the spare time to continue the development of this project. Though I will still maintain it, it just won't receive any new features.

TeemoCell commented 2 years ago

Oh no new features -_-