Unhandled exception: page fault on read... XenoBot + Tibia

Questions about Wine on macOS.
Locked
benknox
Newbie
Newbie
Posts: 2
Joined: Tue Apr 01, 2014 12:54 am

Unhandled exception: page fault on read... XenoBot + Tibia

Post by benknox »

I am running Tibia, and I am trying to use a popular bot called XenoBot. XenoBot works by "injecting" the botting software into a running instance of Tibia. Both programs installed just fine, and even worked for the first several times I played. But just recently it has been giving me an error every time I try to inject the bot.

I have researched this error, and most seem to be related to the graphics card in some way. But Tibia is a 2D game, and it runs fine until I try to inject the bot.

Also I am running wine 1.6.2
This is is the debugging output that appears as soon as I try to inject the bot:

Code: Select all

Unhandled exception: page fault on read access to 0xffffffff in 32-bit code (0x99f7891c).
Register dump:
 CS:001b SS:0023 DS:0023 ES:0023 FS:100f GS:000f
 EIP:99f7891c ESP:040af4cc EBP:040af644 EFLAGS:00010216(  R- --  I   -A-P- )
 EAX:040af4ec EBX:040af620 ECX:00000000 EDX:00000000
 ESI:a17c7e88 EDI:003f0000
Stack dump:
0x040af4cc:  00000000 00000000 00000000 00000000
0x040af4dc:  00000000 00000000 00000000 97831bae
0x040af4ec:  00000000 00000005 040af510 00000000
0x040af4fc:  00000000 00000000 00000000 040af530
0x040af50c:  00000008 00000000 00000000 040af508
0x040af51c:  00000001 040af538 00000010 00000000
0201: sel=100f base=7ffb0000 limit=00000fff 32-bit rw-
Backtrace:
=>0 0x99f7891c (0x040af644)
  1 0x99f78d24 (0x040af674)
  2 0x99fafdee (0x040af694)
  3 0x4011792e in kernel32 (+0x3792d) (0x040af6a8)
0x99f7891c: 	
Modules:
Module	Address			Debug info	Name (32 modules)
PE	  400000-  a67000	Deferred        tibia
PE	400e0000-40136000	Export          kernel32
PE	40280000-40283000	Deferred        glu32
PE	404f0000-404f4000	Deferred        opengl32
PE	405d0000-405d4000	Deferred        gdi32
PE	40740000-40744000	Deferred        advapi32
PE	407b0000-407b4000	Deferred        ddraw
PE	40820000-40824000	Deferred        wined3d
PE	40950000-4097e000	Deferred        user32
PE	40a80000-40a84000	Deferred        version
PE	40aa0000-40aab000	Deferred        winmm
PE	40af0000-40af8000	Deferred        ole32
PE	40c10000-40c14000	Deferred        rpcrt4
PE	40ca0000-40ca4000	Deferred        msacm32
PE	40cc0000-40cc3000	Deferred        msimg32
PE	40ce0000-40d00000	Deferred        comctl32
PE	40dd0000-40dd4000	Deferred        shlwapi
PE	40e50000-40e54000	Deferred        wsock32
PE	40e60000-40e64000	Deferred        ws2_32
PE	40ea0000-40ea4000	Deferred        iphlpapi
PE	40ec0000-40ec4000	Deferred        oleacc
PE	40ed0000-40ed4000	Deferred        gdiplus
PE	40f60000-40f67000	Deferred        oleaut32
PE	41080000-41084000	Deferred        imm32
PE	410b0000-410b4000	Deferred        winspool
PE	410f0000-41102000	Deferred        comdlg32
PE	41160000-4126e000	Deferred        shell32
PE	413c0000-413c3000	Deferred        winemac
PE	42c30000-42c34000	Deferred        uxtheme
PE	42dd0000-42dd4000	Deferred        dwmapi
PE	442f0000-442f4000	Deferred        d3d9
PE	7bc10000-7bc14000	Deferred        ntdll
Threads:
process  tid      prio (all id:s are in hex)
0000000e services.exe
	0000001f    0
	0000001e    0
	00000014    0
	00000010    0
	0000000f    0
00000012 winedevice.exe
	0000001d    0
	0000001a    0
	00000017    0
	00000013    0
0000001b plugplay.exe
	00000021    0
	00000020    0
	0000001c    0
00000031 (D) C:\Program Files\Tibia\Tibia.exe
	0000003d    0 <==
	00000032    0
00000033 explorer.exe
	00000035    0
	00000034    0
00000036 Injector.exe
	0000003a    0
	00000039    0
	00000038    0
	00000037    0
System information:
    Wine build: wine-1.6.2
    Platform: i386
    Host system: Darwin
    Host version: 13.1.0
I really don't understand why it worked at first, but doesn't work anymore. Nothing changed, that I am aware of, that would have made it stop working.

I have tried a clean install of wine and both programs to no avail. I have also tried running each program on every combination of windows 98/2000/XP (via winecfg)

Anyone have any tips or suggestions?
benknox
Newbie
Newbie
Posts: 2
Joined: Tue Apr 01, 2014 12:54 am

Re: Unhandled exception: page fault on read... XenoBot + Tib

Post by benknox »

Update:
I did a little extra debugging with
WINEDEBUG=+relay,-debug wine myProgram.exe
I believe the problem could be in this chunk of output (though I am no expert on windows system calls):

Code: Select all

002c:Call KERNEL32.CreateFileW(0429ed1c L"C:\\Program Files\\XenoBot\\Data\\Items.xml",80000000,00000003,0429ebc8,00000003,00000080,00000000) ret=100db952
002c:Ret  KERNEL32.CreateFileW() retval=00000098 ret=100db952
002c:Call KERNEL32.GetFileType(00000098) ret=100db9d0
002c:Ret  KERNEL32.GetFileType() retval=00000001 ret=100db9d0
002c:Call KERNEL32.SetFilePointer(00000098,00000000,00000000,00000002) ret=100c5c3d
002c:Ret  KERNEL32.SetFilePointer() retval=00001150 ret=100c5c3d
002c:Call KERNEL32.SetFilePointer(00000098,00000000,0429de2c,00000001) ret=100d7ae7
002c:Ret  KERNEL32.SetFilePointer() retval=00001150 ret=100d7ae7
002c:Call KERNEL32.SetFilePointer(00000098,00000000,0429de48,00000001) ret=100d7ae7
002c:Ret  KERNEL32.SetFilePointer() retval=00001150 ret=100d7ae7
002c:Call KERNEL32.SetFilePointer(00000098,00000000,00000000,00000000) ret=100c5c3d
002c:Ret  KERNEL32.SetFilePointer() retval=00000000 ret=100c5c3d
002c:Call KERNEL32.SetFilePointer(00000098,00000000,0429de2c,00000001) ret=100d7ae7
002c:Ret  KERNEL32.SetFilePointer() retval=00000000 ret=100d7ae7
002c:Call KERNEL32.SetFilePointer(00000098,00000000,0429de48,00000001) ret=100d7ae7
002c:Ret  KERNEL32.SetFilePointer() retval=00000000 ret=100d7ae7
002c:Call KERNEL32.SetFilePointer(00000098,00000000,0429de44,00000001) ret=100d7ae7
002c:Ret  KERNEL32.SetFilePointer() retval=00000000 ret=100d7ae7
002c:Call ntdll.RtlAllocateHeap(040b0000,00000000,00001000) ret=100b941d
002c:Ret  ntdll.RtlAllocateHeap() retval=040bcfe8 ret=100b941d
002c:Call KERNEL32.ReadFile(00000098,040bcfe8,00001000,0429ed78,00000000) ret=100cf58c
002c:Ret  KERNEL32.ReadFile() retval=00000001 ret=100cf58c
002c:Call KERNEL32.ReadFile(00000098,040bcfe8,00001000,0429ed78,00000000) ret=100cf58c
002c:Ret  KERNEL32.ReadFile() retval=00000001 ret=100cf58c
002c:Call KERNEL32.ReadFile(00000098,040bcfe8,00001000,0429ed78,00000000) ret=100cf58c
002c:Ret  KERNEL32.ReadFile() retval=00000001 ret=100cf58c
002c:Call ntdll.RtlFreeHeap(040b0000,00000000,040bcfe8) ret=100b87ce
002c:Ret  ntdll.RtlFreeHeap() retval=00000001 ret=100b87ce
002c:Call KERNEL32.CloseHandle(00000098) ret=100c615d
002c:Ret  KERNEL32.CloseHandle() retval=00000001 ret=100c615d
002c:Call KERNEL32.RaiseException(e06d7363,00000001,00000003,0429ef48) ret=100b8475
002c:Call KERNEL32.GetLastError() ret=100c39a4
002c:Ret  KERNEL32.GetLastError() retval=00000000 ret=100c39a4
002c:Call KERNEL32.GetLastError() ret=100c39a4
002c:Ret  KERNEL32.GetLastError() retval=00000000 ret=100c39a4
002c:Call KERNEL32.GetLastError() ret=100c39a4
002c:Ret  KERNEL32.GetLastError() retval=00000000 ret=100c39a4
002c:Call KERNEL32.UnhandledExceptionFilter(0429e9f0) ret=7bc6d941
002c:Call KERNEL32.GetLastError() ret=0069cd18
002c:Ret  KERNEL32.GetLastError() retval=00000000 ret=0069cd18
002c:Call ntdll.RtlDecodePointer(843a21cc) ret=0069cbed
002c:Ret  ntdll.RtlDecodePointer() retval=7b829db4 ret=0069cbed
002c:Call ntdll.RtlAllocateHeap(00b77000,00000008,00000214) ret=006a83be
002c:Ret  ntdll.RtlAllocateHeap() retval=01155978 ret=006a83be
002c:Call ntdll.RtlDecodePointer(843a227e) ret=0069cd54
002c:Ret  ntdll.RtlDecodePointer() retval=7b829e06 ret=0069cd54
002c:Call KERNEL32.GetModuleHandleW(0070bac0 L"KERNEL32.DLL") ret=0069cc71
002c:Ret  KERNEL32.GetModuleHandleW() retval=7b810000 ret=0069cc71
002c:Call KERNEL32.InterlockedIncrement(007c3840) ret=0069ccb2
002c:Ret  KERNEL32.InterlockedIncrement() retval=00000000 ret=0069ccb2
002c:Call KERNEL32.InterlockedIncrement(007c3ed0) ret=0069c875
002c:Ret  KERNEL32.InterlockedIncrement() retval=00000003 ret=0069c875
002c:Call KERNEL32.InterlockedIncrement(007c3e1c) ret=0069c8eb
002c:Ret  KERNEL32.InterlockedIncrement() retval=00000002 ret=0069c8eb
002c:Call ntdll.RtlDecodePointer(ffb8bc78) ret=006a435a
002c:Ret  ntdll.RtlDecodePointer() retval=00000000 ret=006a435a
002c:Call KERNEL32.IsDebuggerPresent() ret=0069e1eb
002c:Ret  KERNEL32.IsDebuggerPresent() retval=00000000 ret=0069e1eb
002c:Call KERNEL32.SetUnhandledExceptionFilter(00000000) ret=0069e1f5
002c:Ret  KERNEL32.SetUnhandledExceptionFilter() retval=006a4f02 ret=0069e1f5
002c:Call KERNEL32.UnhandledExceptionFilter(0429e3c8) ret=0069e202
wine: Unhandled exception 0x40000015 in thread 2c at address 0x6a0dd4 (thread 002c), starting debugger...
Locked