What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Freeze or crash when I stop my custom bot

jim87

New Member
Joined
Aug 26, 2011
Messages
445
Reaction score
7
Hello!

My bot seems to work pretty well, but I think there's still something to debug.

It is behavior tree - based, and it uses framelocks to make some calculations, and I think this is the cause of WoW freezing (not that rarely) when I stop the bot. If WoW doesn't freeze, it will crash after some seconds. In both the cases the bot is not quick to "switch" the state from started to stopped.

The client crashes with this error:

Code:
ERROR #132 (0x85100084) Fatal exception!

Program: ...
ProcessID: xxxx
Exception:0xC0000005 (ACCESS_VIOLATION) at 0023:00400D96

The instruction at "0x00400D96" referenced memory at "0x03DD000C". The memory could not be "read".

Relative (error) log:
PHP:
[19:47:03:899] Exception in CGWorld__TraceLine:Process must have frozen or gotten out of sync; InjectionFinishedEvent was never fired. -    at BlueMagic.ExecutorRand.Execute()
   at Styx.WoWInternals.World.GameWorld.#QJc(WoWPoint from, WoWPoint to, Single distance, CGWorldFrameHitFlags flags, WoWPoint& hitPoint) - Honorbuddy
[19:47:03:924] Activity: Honorbuddy Stopped
[19:47:03:925] Exception in CGWorld__TraceLine:Thread was being aborted. -    at System.Threading.WaitHandle.WaitOneNative(SafeWaitHandle waitHandle, UInt32 millisecondsTimeout, Boolean hasThreadAffinity, Boolean exitContext)
   at System.Threading.WaitHandle.WaitOne(Int64 timeout, Boolean exitContext)
   at System.Threading.WaitHandle.WaitOne(Int32 millisecondsTimeout, Boolean exitContext)
   at (Object , Int32 , Boolean )
   at BlueMagic.ExecutorRand.Execute()
   at Styx.WoWInternals.World.GameWorld.#QJc(WoWPoint from, WoWPoint to, Single distance, CGWorldFrameHitFlags flags, WoWPoint& hitPoint) - mscorlib
[19:47:03:943] System.Threading.ThreadAbortException: Thread was being aborted.
   at Styx.Logic.BehaviorTree.TreeRoot.Tick()
   at Styx.Logic.BehaviorTree.TreeRoot.Run()
[19:47:03:943] System.Threading.ThreadAbortException: Thread was being aborted.
   at Styx.Logic.BehaviorTree.TreeRoot.Run()


I tried attaching the debugger, but nothing came up. May you please help me pointing out what may be causing the two problems?

Thanks!
 
Last edited:
Back
Top