Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Wapsitax

Pages: [1]
1
Bug Reports / !add command crashes bot
« on: June 18, 2017, 08:57:59 AM »
Bug: Deepbot crashes when using the !add command with fewer than 2 variables

Info: When using the !add command in chat the bot will crash if there are not at least 2 passed variables. IE: "!add" or "!add 100". The following is the crash report:
Code: [Select]
17 Jun 17:27:26,246 - 0.10.3.4: Crashed Index was outside the bounds of the array.
17 Jun 17:27:26,252 - 0.10.3.4: Crashed    at DeepBot.ChatParser.#nd(Main #T, String #U, String #V, Boolean #od, Boolean #pd, Int32 #qd, Boolean #X3b)
   at DeepBot.Main.#Wq()
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

How you produced this bug or came across it: Fudged entering the command in chat.

Easy to avoid, but easy to accidentally cause as well.

Pages: [1]