Determine a crash? menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Corthezz's Avatar Elite User Authenticator enabled
    Reputation
    386
    Join Date
    Nov 2011
    Posts
    325
    Thanks G/R
    183/98
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Determine a crash?

    Hello,
    I am working on a bot project for the WoW version 2.4.3 right now. From time to time the client is crashing without any way to prevent it.
    Restarting wow.exe and picking up the previous state isnt a problem however I am stil thinking about the best possible way to detect the crash.

    Right now I think about throwing in a state which looks for the WowError.exe but then again I would need to match the right error process to the right WoW instance (incase of multiple bots running).
    Does anyone have any better way or a way to match the error process to the right WoW instance?

    Thanks in advance for any helpful reply!

    Determine a crash?
  2. #2
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you injected or 'external'?

    EDIT: Also, if it's your bot which is causing the crash, the first thing I would do is fix the bug!

  3. #3
    Corthezz's Avatar Elite User Authenticator enabled
    Reputation
    386
    Join Date
    Nov 2011
    Posts
    325
    Thanks G/R
    183/98
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    Are you injected or 'external'?

    EDIT: Also, if it's your bot which is causing the crash, the first thing I would do is fix the bug!
    Its external however I inject ASM using fasm.managed to detour and call some function. The problem is also happening from time to time without the bot being attached.
    Right now I solved it with just closing all ErrorWow.exe processes and afterwards checking if a process with the current pid we are attached to exists. If not -> restart the WoW client and reattach to the new one.

  4. #4
    namreeb's Avatar Legendary

    Reputation
    658
    Join Date
    Sep 2008
    Posts
    1,023
    Thanks G/R
    7/215
    Trade Feedback
    0 (0%)
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Are you saying that currently the client is crashing but you are not getting an error dump with a stack trace etc? If you are getting one, the stack trace would be helpful.

  5. #5
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    He mentioned using WowError to detect the crash, pretty sure an exception detail and stack-trace is available there.
    As other people in the thread said, fix the bug instead of sweeping it under the rug.
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  6. #6
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Corthezz View Post
    Its external however I inject ASM using fasm.managed to detour and call some function. The problem is also happening from time to time without the bot being attached.
    Right now I solved it with just closing all ErrorWow.exe processes and afterwards checking if a process with the current pid we are attached to exists. If not -> restart the WoW client and reattach to the new one.
    If you're injecting code you're not really external.

    Anyway, you could probably detect this by attaching as a debugger if 'external' or using an unhandled exception filter if injected, but simply fixing the bug is definitely the best way forward.

    I'd suggest using procdump or a debugger in order to catch the next crash, so you can actually investigate it. Using procdump would probably be better because then you can post the dump here for others to take a look (if anyone has the time).

    It would probably also help if you told us what your injected thread(s) are doing, because there are some things which really need to be done from the main thread in order to work reliably (and will cause spurious crashes otherwise).

  7. #7
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1511
    Join Date
    May 2008
    Posts
    2,432
    Thanks G/R
    81/333
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Corthezz View Post
    The problem is also happening from time to time without the bot being attached.
    Am I the only one that read this? Doesn't sound like a bug on his end.

  8. #8
    namreeb's Avatar Legendary

    Reputation
    658
    Join Date
    Sep 2008
    Posts
    1,023
    Thanks G/R
    7/215
    Trade Feedback
    0 (0%)
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    I read it, but I wasn't sure what it means. It sounds like perhaps he is injecting some code and running some out of process code. Perhaps he has 'attached' and made changes, then 'detached'.

  9. #9
    Corthezz's Avatar Elite User Authenticator enabled
    Reputation
    386
    Join Date
    Nov 2011
    Posts
    325
    Thanks G/R
    183/98
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What i actually do on attach is: Detour the EndScene to my codecave which executes all common functions I need (OnRightClick, AutoLoot, CTM etc) and beside from that I use ReadProcessMemory and WriteProcessmemory.

    The error is also happening from day to day when the bot isnt even attached to the client (= Endscene not modified). It says something about NetClient. Sadly I dont have a crash log right now.

  10. #10
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by namreeb View Post
    I read it, but I wasn't sure what it means. It sounds like perhaps he is injecting some code and running some out of process code. Perhaps he has 'attached' and made changes, then 'detached'.
    Yeah, I assumed the same thing.

    Originally Posted by Corthezz View Post
    What i actually do on attach is: Detour the EndScene to my codecave which executes all common functions I need (OnRightClick, AutoLoot, CTM etc) and beside from that I use ReadProcessMemory and WriteProcessmemory.

    The error is also happening from day to day when the bot isnt even attached to the client (= Endscene not modified). It says something about NetClient. Sadly I dont have a crash log right now.
    When you say that it's not attached, do you mean:
    1. You attach, do some stuff, then detach.
    2. You never attach.
    3. Something else.

    It's important to be clear on that point.

    As far as getting a crash log, using procdump to get an actual dump file would be best, but even the wowerror crash log would probably help (though like I said, I'm not positive how much help we'll be able to be, it depends on the nature of the crash).

  11. #11
    Corthezz's Avatar Elite User Authenticator enabled
    Reputation
    386
    Join Date
    Nov 2011
    Posts
    325
    Thanks G/R
    183/98
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    Yeah, I assumed the same thing.



    When you say that it's not attached, do you mean:
    1. You attach, do some stuff, then detach.
    2. You never attach.
    3. Something else.

    It's important to be clear on that point.

    As far as getting a crash log, using procdump to get an actual dump file would be best, but even the wowerror crash log would probably help (though like I said, I'm not positive how much help we'll be able to be, it depends on the nature of the crash).
    Sure .
    When I talk about attach I refer to my detours being applied and my memory class being set to write to the selected WoW process. I maybe should try to express a bit more clear here, sorry.

    Well more about the problem: It happens on an altered (detours applied) aswell an unaltered WoW process. Sadly I cant provide any crash dump since this error is happening only like 1 time every 24 hours (but we all strive to perfection dont we ).
    As soon as it happens again I will def. update the thread with a good log.

    What I did for the moment:
    Implemented a state checking if WowError.exe exists and if it does retrieve its parent pid. If the parent pid matches to the WoW instance my bot is working with I close the corresponding WowError.exe aswell the client itself and continue with opening a new client, attaching my detours etc.

    That one was a good help: c# - How to get parent process in .NET in managed way - Stack Overflow
    http://stackoverflow.com/questions/2...my-application

  12. #12
    Master674's Avatar Elite User
    Reputation
    487
    Join Date
    May 2008
    Posts
    578
    Thanks G/R
    2/23
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sounds like you're writing to memory while it gets executed by a thread.
    Make sure you're using threadsafe detours or only attach once and never detach again and if it crashes then meh... Let it crash and start again.

  13. #13
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Corthezz View Post
    Sure .
    When I talk about attach I refer to my detours being applied and my memory class being set to write to the selected WoW process. I maybe should try to express a bit more clear here, sorry.

    Well more about the problem: It happens on an altered (detours applied) aswell an unaltered WoW process. Sadly I cant provide any crash dump since this error is happening only like 1 time every 24 hours (but we all strive to perfection dont we ).
    As soon as it happens again I will def. update the thread with a good log.

    What I did for the moment:
    Implemented a state checking if WowError.exe exists and if it does retrieve its parent pid. If the parent pid matches to the WoW instance my bot is working with I close the corresponding WowError.exe aswell the client itself and continue with opening a new client, attaching my detours etc.

    That one was a good help: c# - How to get parent process in .NET in managed way - Stack Overflow
    c# - How can I get the PID of the parent process of my application - Stack Overflow
    So if you just play the game normally and never attach your bot, it will still crash sometimes? Or does it only happen when you've attatched before, then detatched? (Sorry to keep harping on this, but it's still unclear.)

  14. #14
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1511
    Join Date
    May 2008
    Posts
    2,432
    Thanks G/R
    81/333
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You can get crash logs from <WoW Directory>\Errors\.

  15. #15
    Corthezz's Avatar Elite User Authenticator enabled
    Reputation
    386
    Join Date
    Nov 2011
    Posts
    325
    Thanks G/R
    183/98
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also when never attached to the client before

    You can get crash logs from <WoW Directory>\Errors\.
    I will look later.

Page 1 of 2 12 LastLast

Similar Threads

  1. Making WoW Clients crash
    By Siker in forum World of Warcraft Exploits
    Replies: 103
    Last Post: 12-31-2006, 09:42 AM
  2. Thought id move this here Crash A Computer!!!
    By codycondame in forum World of Warcraft General
    Replies: 6
    Last Post: 10-11-2006, 06:03 PM
  3. Crash Peoples Computer
    By codycondame in forum World of Warcraft Exploits
    Replies: 9
    Last Post: 10-07-2006, 03:27 PM
  4. DBC Edits crashing my wow?
    By dela in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-01-2006, 04:56 AM
  5. Top of Hyjal: Mountain Climb crashed plane
    By Cloud in forum World of Warcraft Exploits
    Replies: 17
    Last Post: 09-18-2006, 09:09 AM
All times are GMT -5. The time now is 09:33 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search