Author Topic: Bot Errors/Crashing? Please read this first  (Read 135373 times)

0 Members and 1 Guest are viewing this topic.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Bot Errors/Crashing? Please read this first
« Reply #165 on: June 14, 2017, 06:46:17 AM »
No problem! I set my hotkeys:
  • Play/Pause: Alt + NumPad7
  • Increase: Alt + NumPad6
  • Decrease: Alt + NumPad8
  • Next: Alt + NumPad+
  • Previous: Alt + NumPad-

I do also have GKeys set to these combinations (G16 = Alt + NumPad7 for example).

Awesome, will test this when I get home this afternoon and see if I get the crash to pop up for me.
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

VestaPlays

  • Youngling
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
  • Twitch Name: VestaPlays
Re: Bot Errors/Crashing? Please read this first
« Reply #166 on: June 15, 2017, 09:18:22 PM »
Hey!

Good news! I have been playing around and testing this some more. The issue seems to be related to the key remapping. Once I switched to a key macro sequence, everything has been stable since.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Bot Errors/Crashing? Please read this first
« Reply #167 on: June 15, 2017, 09:39:55 PM »
Hey!

Good news! I have been playing around and testing this some more. The issue seems to be related to the key remapping. Once I switched to a key macro sequence, everything has been stable since.

Good to hear. Will note that for future users that have the same issue.
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

bod699

  • Youngling
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
  • Twitch Name: bod699
Re: Bot Errors/Crashing? Please read this first
« Reply #168 on: July 01, 2017, 09:07:53 AM »
I have been usimng deepbot for 2.5 years without any issues had 2 crashes now in the last 24 hours while the stream was live. I didnt see exactly what caused it each time I just noticed the bot not working when I saw people trying to use commands that didnt trigger. Both errors are the same with different time stamps.. The error is as follows:

Code: [Select]
01 Jul 01:27:07,361 - 0.10.3.4: Crashed Object reference not set to an instance of an object.
01 Jul 01:27:07,365 - 0.10.3.4: Crashed    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()

Checking my chat log from the bot and the chatty client I use show the only command being used near the point of the crash was one that toggles a source on in Obs Studio via the remote feature (This is something I have been using fine for well over a year). This command was run about 2 minutes before the log entry for the crash so not sure if its related.

Incidently I also notice the following in the error log frequently:

Code: [Select]
01 Jul 01:10:13,761 - Error -Unable to log stream info.
Version : 0.10.3.4
Message : The remote server returned an error: (500) Internal Server Error.
Stack Trace :
   at System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data)
   at System.Net.WebClient.UploadValues(String address, NameValueCollection data)
   at DeepBot.DeepBotAPI.DeepBotStreamInfo.#lgb.#hlb(Object )

When I check my chat logs I see periodical viewerstats entries, I am guessing the error is the bot not being able to pass this info back to the deepbot server?

This is minor, the main one is the former, as after crashing I need to restart both the Bot and OBS Studio in order to get the remote fuinctionality back which as you can imagine is a pain mid stream.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Bot Errors/Crashing? Please read this first
« Reply #169 on: July 02, 2017, 02:59:27 AM »
If on latest version of studio, you need to update the websocket plugin that OBS Studio uses for Deepbot to control it.

Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

bod699

  • Youngling
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
  • Twitch Name: bod699
Re: Bot Errors/Crashing? Please read this first
« Reply #170 on: July 02, 2017, 08:23:31 AM »
If on latest version of studio, you need to update the websocket plugin that OBS Studio uses for Deepbot to control it.

I am using the latest version of studio (19.0.3) and the latest version of obs-websocket (4.0.0), is there is a newer obs-websocket version? Is this advice to fix the main issue I referred to, ie the crash i posted the logs for or the minor issue I mentioned with the server error?. I did reinstall the obs web socket even though it was the same version and as noted originally (which it looks like you missed) the remote commands are working fine. I have no problem with the remote function.

I was trying to get assistance on the bot crashing which was the 1st part of my original message, does the log give any indication on what deepbot was trying to do when it crashed?

On scanning previous posts I shouldnt have posted 2 problems in the same post as often when people have done this in the past 1 issue is overlooked altogether.

TorwaK

  • Youngling
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
  • Twitch Name: TorwaK
Re: Bot Errors/Crashing? Please read this first
« Reply #171 on: August 08, 2017, 08:23:46 AM »
Any comments for the crash log below?

Thanks!

Code: [Select]
08 Aug 03:15:55,689 - 0.10.3.4: Crashed
08 Aug 03:15:55,698 - 0.10.3.4: Crashed    location: System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   location: System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   location: Discord.Net.WebSockets.WebSocket.<.ctor>b__33_1(Object s, TextMessageEventArgs e)
   location: System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   location: Discord.Net.WebSockets.WS4NetEngine.OnTextMessage(String msg)
   location: Discord.Net.WebSockets.WS4NetEngine.OnWebSocketText(Object sender, MessageReceivedEventArgs e)
   location: WebSocket4Net.WebSocket.FireMessageReceived(String message)
   location: WebSocket4Net.Command.Text.ExecuteCommand(WebSocket session, WebSocketCommandInfo commandInfo)
   location: WebSocket4Net.WebSocket.ExecuteCommand(WebSocketCommandInfo commandInfo)
   location: WebSocket4Net.WebSocket.OnDataReceived(Byte[] data, Int32 offset, Int32 length)
   location: WebSocket4Net.WebSocket.client_DataReceived(Object sender, DataEventArgs e)
   location: SuperSocket.ClientEngine.ClientSession.OnDataReceived(Byte[] data, Int32 offset, Int32 length)
   location: SuperSocket.ClientEngine.SslStreamTcpSession.OnDataRead(IAsyncResult result)
   location: System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   location: System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
   location: System.Net.Security._SslStream.ProcessFrameBody(Int32 readBytes, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
   location: System.Net.Security._SslStream.ReadFrameCallback(AsyncProtocolRequest asyncRequest)
   location: System.Net.AsyncProtocolRequest.CompleteRequest(Int32 result)
   location: System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(Int32 bytes)
   location: System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)
   location: System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   location: System.Net.ContextAwareResult.CompleteCallback(Object state)
   location: System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   location: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   location: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   location: System.Net.ContextAwareResult.Complete(IntPtr userToken)
   location: System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
   location: System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   location: System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
08 Aug 03:17:43,489 - Error -Unable to move users.tmp to users.bin.
Version : 0.10.3.4
Message : The file has been used by another application.
Stack Trace :
   location: System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   location: System.IO.__Error.WinIOError()
   location: System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost)
   location: DeepBot.Main.#Wr()
------------------------------

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Bot Errors/Crashing? Please read this first
« Reply #172 on: August 08, 2017, 08:57:56 PM »
Running Deepbot as admin? Looks like it doesn't have permission to move the users file.
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

TorwaK

  • Youngling
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
  • Twitch Name: TorwaK
Re: Bot Errors/Crashing? Please read this first
« Reply #173 on: August 17, 2017, 01:52:46 AM »
Running Deepbot as admin? Looks like it doesn't have permission to move the users file.

Yes I am running as admin. Is there anything else you would recommend?

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Bot Errors/Crashing? Please read this first
« Reply #174 on: August 17, 2017, 01:58:33 AM »
Close deepbot > Go to the Deepbot folder > Right click deepbot.exe > Select Properties > Security Tab > Make sure all users listed have all permissions.
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

crashtheparty

  • Youngling
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
  • Twitch Name: crashtheparty
Re: Bot Errors/Crashing? Please read this first
« Reply #175 on: October 20, 2018, 12:29:14 PM »
When trying to use song requests with Spotify. I quickly selected yes on the Music tab, then requested a song, and this showed up. The check box doesn't stay checked for long, and connecting spotify doesn't seem to work as every time I exit the master settings window it disconnects without telling me.

Code: [Select]
19 Oct 15:03:20,503 - Error -Unable to save database to cloud storage.
Version : 0.11.2.0
Message : The remote server returned an error: (500) Internal Server Error.
Stack Trace :
   at System.Net.WebClient.UploadFile(Uri address, String method, String fileName)
   at System.Net.WebClient.UploadFile(Uri address, String fileName)
   at #35.#65.#nhb.#2kb(Object #Ayc)
------------------------------

19 Oct 22:25:11,880 - 0.11.2.0: Crashed Object reference not set to an instance of an object.
19 Oct 22:25:11,884 - 0.11.2.0: Crashed    at DeepBot.Music.DBSpotifyAPI.<>c.#6Cc(Task #Jbb)
   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at DeepBot.Music.DBSpotifyAPI.#7Cc.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)

EDIT: Saw that Spotify removed integration.
« Last Edit: October 20, 2018, 12:36:22 PM by crashtheparty »