Windows 10 Loading Crash
#21

Quote:
Originally Posted by SugarD-x
View Post
GTA:SA itself should be fine. Are you getting the same crashes I described?
I got the same problem and also I keep reporting the crash in the "Report Crash" button but I don't think it didn't helped me
Reply
#22

*(unsigned char*)0x6F74A4=0xEB;
*(unsigned char*)0x6F74CA=0xEB;

it disable loading of data\Paths\tracks2.dat data\Paths\tracks4.dat and fixes 0x40FB80 and 0x6F5636 crashes!!
Reply
#23

If it is a GTA:SA bug, then why is only SA:MP triggering the crash? Also, why is this only happening in Windows 10 and not other versions?
Reply
#24

it's some time happening on windows 7

and yeah it's not crashed in single, maybe it's samp bug
Reply
#25

Code:
SA-MP 0.3.7
Exception At Address: 0x0040FB80
Base: 0x04280000

Registers:
EAX: 0x00000EA0	EBX: 0x008D6264	ECX: 0x00000000	EDX: 0x0055B855
ESI: 0x008E48AC	EDI: 0x008E48AC	EBP: 0x00000000	ESP: 0x0029FC3C
EFLAGS: 0x00210212
Provided address refers to instruction

Code:
mov     edx, [ecx+8]
We also have registers from crashlog. In this case we're interested in EDX and ECX - let's check them.

EDX: 0x0055B855 - seems okay and well within GTA reserved memory - should be fine.
ECX: 0x00000000 - ops... This is the problem. The CPU doesn't know how to read memory from address 0 since there is no memory at address 0 (at least not readeable by user-space and GTA) - what CPU does when it finds problem? It raises exception which is then later catched by OS (Windows in this case) and OS decides what to do - in this case - it stops executing GTA and leaves informations about what caused exception to occur.

Instruction mentioned above would look like this in psedo-C:

Code:
v1 = *(_DWORD *)(this + 8);
v1 represents EDX and right side represents [ecx+8] which we know that is invalid. Is this case ECX contains address at which CPU should look for data. Basing on this it is safe to assume that ECX contains memory address pointing at start of some structure, presumably CColModel and +8 is index in that structure.

Since it doesn't happen for me in Windows 8.1 or Windows 10 i assume there is a difference between our configurations. Please re-check that all your files are original, you can find checksums for original GTA:SA files on internet.
Reply
#26

Quote:
Originally Posted by eider
View Post
Code:
SA-MP 0.3.7
Exception At Address: 0x0040FB80
Base: 0x04280000

Registers:
EAX: 0x00000EA0	EBX: 0x008D6264	ECX: 0x00000000	EDX: 0x0055B855
ESI: 0x008E48AC	EDI: 0x008E48AC	EBP: 0x00000000	ESP: 0x0029FC3C
EFLAGS: 0x00210212
Provided address refers to instruction

Code:
mov     edx, [ecx+8]
We also have registers from crashlog. In this case we're interested in EDX and ECX - let's check them.

EDX: 0x0055B855 - seems okay and well within GTA reserved memory - should be fine.
ECX: 0x00000000 - ops... This is the problem. The CPU doesn't know how to read memory from address 0 since there is no memory at address 0 (at least not readeable by user-space and GTA) - what CPU does when it finds problem? It raises exception which is then later catched by OS (Windows in this case) and OS decides what to do - in this case - it stops executing GTA and leaves informations about what caused exception to occur.

Instruction mentioned above would look like this in psedo-C:

Code:
v1 = *(_DWORD *)(this + 8);
v1 represents EDX and right side represents [ecx+8] which we know that is invalid. Is this case ECX contains address at which CPU should look for data. Basing on this it is safe to assume that ECX contains memory address pointing at start of some structure, presumably CColModel and +8 is index in that structure.

Since it doesn't happen for me in Windows 8.1 or Windows 10 i assume there is a difference between our configurations. Please re-check that all your files are original, you can find checksums for original GTA:SA files on internet.
I've been using the same original files for years. This exact copy of GTA:SA works fine on everything from XP MCE 2005 to Vista to 7 to 8/8.1 on the same computer. For whatever reason it just doesn't like Windows 10.

Edit: If someone knows where I can find a copy of a SA:MP version previous to 0.3.7, (containing both the client and server), I can test and see if other versions cause the crash on my system with Windows 10 too. I doubt it would make a difference, but it would be interesting to see if this update could be causing it.
Reply
#27

Still works for me in the latest build, if you ****** those crash addresses you will find results from 2011 so it's not related at all, people who had this crash fixed it by moving it to another directory did you even try doing it?
Reply
#28

it's possible to simulate this crashes with compatible windows xp sp3

I think sometime windows enable some debug for program (and then start crashes every start game) and you need to change folder for disable debug
Reply
#29

Quote:

it's possible to simulate this crashes with compatible windows xp sp3

Thank you for that tip.

EDIT: My initial conclusion that problem occured at address 55111C was invalid as i created conditional breakpoints and observed how GTA behaves. Instruction at 55111C had correct value in time of execution. For what it's worth, [b]40FC30[b] had correct value for most of the time during loading sequence - it changed to 0 at about 90% loading bar.

EDIT 2: It seems that B744A4 is being changed back to 0 by 006F5633

Code:
mov [edx+eax],cl
Reply
#30

read what I writed before

THERE IS A FIX FOR THIS
Reply
#31

While you solution may work it's useless without further examination of cause and possible drawbacks of its usage. I can however confirm that problem indeed occurs in function readTracksNDat on line

Code:
*(&filenameBuffer + v10 - v6) = v7;
Reply
#32

and game can't read
data\Paths\tracks2.dat
data\Paths\tracks4.dat
as result buffer has random bytes and result is memory leak
bla bla bla
Reply
#33

this aint linux that we can make those .dat file readable by chmod
Try to go to properties of this files and uncheck read only
Reply
#34

format of failed fread - "rb"
I think samp is hooked this function
Reply
#35

In single fread is work good

Samp block fread for this file

Confirm that is only samp bug

Also better to add for fix
*(unsigned char*)0x6F6CA9=2;
Reply
#36

My GTA SanAndreas is working fine but my SA-MP crashes on Windows 10
PHP Code:
SA-MP 0.3.7
Exception At Address
0x007ECA1A
Base
0x03F80000

Registers
:
EAX0x0029FA50 EBX0x00000000 ECX0x008241EF EDX0x00000001
ESI
0x00000000 EDI0x00000000 EBP0x0029FC3C ESP0x0029F9D4
EFLAGS
0x00210202

Stack
:
+
00000x00000000   0x0029FC3C   0x00000000   0x8F1CA875
+00100x00000258   0x004D4824   0x00000000   0x0029FA50
+00200x00000008   0x00000000   0x00000000   0x00000000
+00300x14000000   0x00000000   0xFFFFFE5C   0x6EC9E58F
+00400x050673B4   0x0029FA50   0x015EE17E   0x00000001
+00500x00000000   0x00000000   0x04DE2C00   0x0029FA50
+00600x6EC9CA91   0x7780518C   0x01C93110   0x01CCE158
+00700x6EC9CA00   0xEE0001EF   0x8107ED47   0x0029FBE4
+00800x0029FBE4   0x6EBB13F4   0x01C943C8   0x01CCE158
+00900x6EBB0D90   0x6EBB148A   0x0029FAEC   0x01CCE158
+00A00x777ED289   0x8F1CA84D   0x002D0000   0x0E4CFAC8
+00B00x00000000   0x00000000   0x0000004B   0x00000000
+00C00x00000000   0x02000002   0x00000258   0x00000000
+00D00x0029FB40   0x6B00EA81   0x00000011   0x00000000
+00E00x00000000   0x09090101   0x00000057   0x00010115
+00F00x00000000   0x0E48B510   0x01D2FAF0   0x00000001
+01000x0000004B   0xEE0001EF   0x002D06A4   0x002D06B0
+01100x002D0000   0x0E4CFAC8   0x015EF148   0x00000003
+01200x0029FB40   0x00827BE9   0x00000003   0x0000016F
+01300xFFFFFFFF   0x00000001   0xFFFFFFFF   0x00000000
+01400x00000003   0x008E2222   0x00000001   0x00000000
+01500x0E4CF8E0   0x00000000   0x00000000   0x0E4CFAD0
+01600x00000080   0x008E2222   0x00000000   0x0000004B
+01700x0000004B   0x0000004B   0x012D06B0   0x015EF0F8
+01800x0000000B   0x002D0260   0x018E2222   0x00000001
+01900x00000000   0x0029FBE4   0x77820C50   0xF8BF4F9D
+01A00xFFFFFFFE   0x0029FBAC   0x7782C570   0x00000000
+01B00x0E4CFAD0   0x00C97908   0x0E4CFAD0   0x00000000
+01C00x0029FC74   0x0E4CFAD0   0x00000040   0x0029FC74
+01D00x00000000   0x0E4CFADC   0x0029FBB8   0x777EC6DC
+01E00x00000000   0x0029FBF4   0x008241EA   0x002D0000
+01F00x00000000   0x008241EF   0x00C97908   0x0E4CFAD0
+02000x00000000   0x0E4CFADC   0x0029FBCC   0x008E2C90
+02100x0029FD78   0x00825EE4   0x00888038   0xFFFFFFFF
+02200x008241EF   0x00801E2F   0x0E4CFAD0   0x00000000
+02300x00000000   0x00000001   0x0E4CFADC   0x007ED05E
+02400x00C97908   0x0E4CFADC   0x00000001   0x00863B10
+02500x77650860   0x00000000   0x0029FD78   0x0083BDDC
+02600xFFFFFFFF   0x80000002   0x77650860   0x004D566C
+02700x00000000   0x00000001   0x00000000   0x00000002

SCM Op
0x0lDbg0 LastRendObj0

Game Version
EU 1.0 
Kindly tell me how to solve it?
Reply
#37

remove your SAMP mods and delete gta_sa.set from your GTA San Andreas User Files folder
Reply
#38

Quote:
Originally Posted by Travalle
View Post
My GTA SanAndreas is working fine but my SA-MP crashes on Windows 10
PHP Code:
SA-MP 0.3.7
Exception At Address
0x007ECA1A
Base
0x03F80000
Registers
:
EAX0x0029FA50 EBX0x00000000 ECX0x008241EF EDX0x00000001
ESI
0x00000000 EDI0x00000000 EBP0x0029FC3C ESP0x0029F9D4
EFLAGS
0x00210202
Stack
:
+
00000x00000000   0x0029FC3C   0x00000000   0x8F1CA875
+00100x00000258   0x004D4824   0x00000000   0x0029FA50
+00200x00000008   0x00000000   0x00000000   0x00000000
+00300x14000000   0x00000000   0xFFFFFE5C   0x6EC9E58F
+00400x050673B4   0x0029FA50   0x015EE17E   0x00000001
+00500x00000000   0x00000000   0x04DE2C00   0x0029FA50
+00600x6EC9CA91   0x7780518C   0x01C93110   0x01CCE158
+00700x6EC9CA00   0xEE0001EF   0x8107ED47   0x0029FBE4
+00800x0029FBE4   0x6EBB13F4   0x01C943C8   0x01CCE158
+00900x6EBB0D90   0x6EBB148A   0x0029FAEC   0x01CCE158
+00A00x777ED289   0x8F1CA84D   0x002D0000   0x0E4CFAC8
+00B00x00000000   0x00000000   0x0000004B   0x00000000
+00C00x00000000   0x02000002   0x00000258   0x00000000
+00D00x0029FB40   0x6B00EA81   0x00000011   0x00000000
+00E00x00000000   0x09090101   0x00000057   0x00010115
+00F00x00000000   0x0E48B510   0x01D2FAF0   0x00000001
+01000x0000004B   0xEE0001EF   0x002D06A4   0x002D06B0
+01100x002D0000   0x0E4CFAC8   0x015EF148   0x00000003
+01200x0029FB40   0x00827BE9   0x00000003   0x0000016F
+01300xFFFFFFFF   0x00000001   0xFFFFFFFF   0x00000000
+01400x00000003   0x008E2222   0x00000001   0x00000000
+01500x0E4CF8E0   0x00000000   0x00000000   0x0E4CFAD0
+01600x00000080   0x008E2222   0x00000000   0x0000004B
+01700x0000004B   0x0000004B   0x012D06B0   0x015EF0F8
+01800x0000000B   0x002D0260   0x018E2222   0x00000001
+01900x00000000   0x0029FBE4   0x77820C50   0xF8BF4F9D
+01A00xFFFFFFFE   0x0029FBAC   0x7782C570   0x00000000
+01B00x0E4CFAD0   0x00C97908   0x0E4CFAD0   0x00000000
+01C00x0029FC74   0x0E4CFAD0   0x00000040   0x0029FC74
+01D00x00000000   0x0E4CFADC   0x0029FBB8   0x777EC6DC
+01E00x00000000   0x0029FBF4   0x008241EA   0x002D0000
+01F00x00000000   0x008241EF   0x00C97908   0x0E4CFAD0
+02000x00000000   0x0E4CFADC   0x0029FBCC   0x008E2C90
+02100x0029FD78   0x00825EE4   0x00888038   0xFFFFFFFF
+02200x008241EF   0x00801E2F   0x0E4CFAD0   0x00000000
+02300x00000000   0x00000001   0x0E4CFADC   0x007ED05E
+02400x00C97908   0x0E4CFADC   0x00000001   0x00863B10
+02500x77650860   0x00000000   0x0029FD78   0x0083BDDC
+02600xFFFFFFFF   0x80000002   0x77650860   0x004D566C
+02700x00000000   0x00000001   0x00000000   0x00000002
SCM Op
0x0lDbg0 LastRendObj0
Game Version
EU 1.0 
Kindly tell me how to solve it?
Don't bump old threads, make new ones.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)