Author Topic: Crash upon opening deepbot, error logged.  (Read 1388 times)

0 Members and 1 Guest are viewing this topic.

QueasyChief

  • Youngling
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
  • Twitch Name: Queasychief
Crash upon opening deepbot, error logged.
« on: October 05, 2014, 09:59:25 PM »
When I open deepbot, the loading window will come up and once it hits "loading user config..." it crashes and logs an error:

05 Oct 09:55:47,765 - 0.5.2.1: Crashed Binary stream '0' does not contain a valid BinaryHeader. Possible causes are invalid stream or object version change between serialization and deserialization.
05 Oct 09:55:47,801 - 0.5.2.1: Crashed    at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at DeepBot.UserConfig.LoadUserConfig()
   at DeepBot.Main..ctor()
   at DeepBot.Program.Main()

I have run deepbot fine and have loved it so far, I don't know what could be causing this.

ExpertsOnline

  • Creator
  • Councilor
  • *****
  • Posts: 2656
  • Karma: +289/-24
    • View Profile
  • Twitch Name: expertsonline
Re: Crash upon opening deepbot, error logged.
« Reply #1 on: October 05, 2014, 10:09:30 PM »
You are running an older version of DeepBot. Please try and keep the bot updated to ensure you are getting the fixes that get released.

As for this error, It appears your usersconfig file is corrupted. Try to restore it from the backups which exist in the following folders:
/backups/0/ : 30min interval backups
backups/1/ : 6hr interval backups
backups/2/ : 24hr interval backups

To restore a backup:
Close DeepBot
rename current usersconfig.bin to usersconfig_bak.bin (This is the backup of your current database)
Find the usersconfig.bin file with the appropriate timestamp that you want to restore from the backups\ folder and copy it
Paste the file in the main folder (where the original usersconfig.bin was)
Rename the backup file to usersconfig.bin (removing the timestamp)
Start DeepBot

Regards,
Experts

QueasyChief

  • Youngling
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
  • Twitch Name: Queasychief
Re: Crash upon opening deepbot, error logged.
« Reply #2 on: October 06, 2014, 05:10:12 AM »
Updated, and restored a backup, thanks!