GetLocalizedText sometimes crashing Wow menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    peterwurst's Avatar Member
    Reputation
    11
    Join Date
    Jul 2006
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GetLocalizedText sometimes crashing Wow

    Heya guys,

    I hooked the 3D3 EndScene function in Wow to call some functions like lua Dostring and GetText.

    Sometimes (not often once out of 1000-5000 calls) my Wow seems to crash:

    Code:
    ERROR #132 (0x85100084) Fatal Exception
    Exception:	0xC0000005 (ACCESS_VIOLATION) at 001B:005A82F7
    
    The instruction at "0x005A82F7" referenced memory at "0x00000008".
    The memory could not be "read".
    I looked at the offset in IDA and it seems to be the GetLocalizedText function I'm calling to get lua DoString results.


    As said before, it's not crashing frequently but in unregular timespans.


    Code:
    .text:005A82F0 sub_5A82F0      proc near  
    .text:005A82F0                                        
    .text:005A82F0
    .text:005A82F0 arg_0           = dword ptr  8
    .text:005A82F0 arg_4           = dword ptr  0Ch
    .text:005A82F0
    .text:005A82F0                 push    ebp
    .text:005A82F1                 mov     ebp, esp
    .text:005A82F3                 push    ebx
    .text:005A82F4                 push    esi
    .text:005A82F5                 mov     esi, ecx
    .text:005A82F7                 mov     eax, [esi+8]
    .text:005A82FA                 mov     ebx, [eax+4]
    .text:005A82FD                 push    edi
    .text:005A82FE                 mov     edi, [eax]
    .text:005A8300                 call    sub_7BC8D0
    .text:005A8305                 cmp     edi, eax
    .text:005A8307                 jnz     short loc_5A8319
    .text:005A8309                 cmp     ebx, edx
    .text:005A830B                 jnz     short loc_5A8319
    .text:005A830D                 mov     eax, [esi+0FD0h]
    .text:005A8313                 movzx   eax, byte ptr [eax+1Ch]
    .text:005A8317                 jmp     short loc_5A8323
    What could cause the crash?

    GetLocalizedText sometimes crashing Wow
  2. #2
    schlumpf's Avatar Retired Noggit Developer

    Reputation
    755
    Join Date
    Nov 2006
    Posts
    2,759
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You may want to pass "this".

  3. #3
    peterwurst's Avatar Member
    Reputation
    11
    Join Date
    Jul 2006
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm already calling it with this

    typedef const char* (__thiscall * luaGetText)(void* pPlayer, const char* luaVar, DWORD_PTR unknown);
    Otherwise the function would crash as soon I am calling it, but it seems like random crashes.

  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)
    It's obviously because you're passing in 0 as pPlayer for those calls. You need to check the pointer is valid before you start using it and throwing it around.

    Come on people, this is basic stuff.

    If you have to ask about this stuff you really need to get back to the books.

  5. #5
    rootguy's Avatar Member
    Reputation
    3
    Join Date
    Aug 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    your this pointer seems to be 0

Similar Threads

  1. Replies: 11
    Last Post: 05-12-2014, 04:52 AM
  2. Map editing crashes WoW on Vista, why!
    By dev1462 in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 04-13-2008, 12:23 PM
  3. [Hunter] Disconect/Crash WoW
    By jonoboo in forum World of Warcraft Exploits
    Replies: 2
    Last Post: 12-28-2007, 04:45 PM
  4. Quests crashing wow
    By Le Froid in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 11-27-2007, 10:46 PM
  5. [Question] MEfix crashing wow still? Help please
    By ravner298 in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 10-11-2007, 04:58 PM
All times are GMT -5. The time now is 08:31 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