Lua and random WoW crashes menu

User Tag List

Results 1 to 9 of 9
  1. #1
    jockel's Avatar Member
    Reputation
    4
    Join Date
    Mar 2009
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua and random WoW crashes

    Hello there,

    since patch 3.3.5 I'm getting some problems with my lua handler.
    First of all my lua handler is working in the wow process (as injected library) and communicates with my main program via IPC.

    With patch 3.3.5 the problems began, Wow is crashing randomly when executing lua commands. There is no pattern, sometimes after 10 executions sometimes after 200.

    There is also no Wow crashlog.




    Any ideas on how I may find out whats causing the crash?

    Lua and random WoW crashes
  2. #2
    DrGonzo's Avatar Contributor
    Reputation
    145
    Join Date
    Jun 2009
    Posts
    132
    Thanks G/R
    0/60
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    New antidebug? Are you using debug registers, or attaching to wow process or anything debug related? It'll generally crash out wow without a wowerror message (unless its a single step exception).

  3. #3
    caytchen's Avatar Contributor
    Reputation
    138
    Join Date
    Apr 2007
    Posts
    162
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I guess you invoke the lua stuff from an extra thread, the one that also handles IPC communication? If so, stop assuming the game api is thread-safe.

  4. #4
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to call FrameScript__Execute from the game's main thread.

  5. #5
    jockel's Avatar Member
    Reputation
    4
    Join Date
    Mar 2009
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry forgot to say that I'm hooking endscene, and all lua functions are being executed in the hook (therefore in the mainthread).

    @FearAndLawyering
    No debuggers attached, I'm just injecting the library and open the process with read/write rights.

    Since the crashes are totally random, I can't figure out a way to solve it.
    (Any ideas on how I should manage to find the issue?)

  6. #6
    caytchen's Avatar Contributor
    Reputation
    138
    Join Date
    Apr 2007
    Posts
    162
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Then you should probably start attaching a debugger or at least using the JIT one.

  7. #7
    Sednogmah's Avatar Contributor
    Reputation
    129
    Join Date
    Oct 2009
    Posts
    158
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just a blind assumption... If you're interfacing Lua via lua_pcall and manage the Lua stack on your own: Are you clearing the stack with lua_remove() after every call? WoW will crash sooner or later if you don't remove all the return values.

  8. #8
    jockel's Avatar Member
    Reputation
    4
    Join Date
    Mar 2009
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm using a luacallback with lua_tostring and lua_gettop to get the returnvalues.


    I attached a debugger to see where it's crashing:

    When it crashes the debugger halts at:


    after clicking "continue executing", we are here, and Wow exits:

  9. #9
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Post your code imo. It's not easy to debug based on guess-work, lol.

Similar Threads

  1. Replies: 7
    Last Post: 06-11-2013, 05:24 AM
  2. Replies: 11
    Last Post: 12-23-2010, 09:30 PM
  3. [GUIDE] Fixing Random Server Crashes and having to press enter repeatedly
    By kreegoth in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 08-23-2008, 06:39 PM
  4. WoW crashes randomly
    By Jinrohk in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 04-06-2008, 03:35 PM
  5. Random WoW Guide ($9.00)
    By Amedis in forum World of Warcraft Guides
    Replies: 14
    Last Post: 01-02-2007, 05:14 PM
All times are GMT -5. The time now is 01:13 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search