Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Support [Client] Crashing when on desktop (Warning(opcode 0x812): Exception 0xC0000005 at 0x571A00)

 
  • 0 Vote(s) - 0 Average
Client Crashing when on desktop (Warning(opcode 0x812): Exception 0xC0000005 at 0x571A00)
whadez
Offline

Burgershot Member
Posts: 14
Threads: 1
Joined: Apr 2019
Reputation: 0
Location: Budapest
#1
2019-05-26, 07:36 PM (This post was last modified: 2019-05-27, 12:28 PM by JustMichael.)
My favourite crash types are those without a solution yet. I've read that it can be caused by invalid animations, but all of my animations are filtered, and they are being read from correct library. If anyone could help me with this I'd be very grateful. This crash occurs at crowded places after coming back from ALT+TAB.

In chatlog:
Code:
Warning(opcode 0x812): Exception 0xC0000005 at 0x571A00

Detailed crash log:
Code:
SA-MP 0.3.7-R3
Exception At Address: 0x00571A00
Base: 0x040B0000

Registers:
EAX: 0xFFFFFFFF EBX: 0x00000000 ECX: 0x3B83126E EDX: 0xFFFFFFFF
ESI: 0x00C0B1D4 EDI: 0x00C0B1E0 EBP: 0xFFFFFFFF ESP: 0x0177F2CC
EFLAGS: 0x00010202

Stack:
+0000: 0x006083A7   0x00C0B1E0   0x14CABB28   0x14BC68A8
+0010: 0x018EE750   0x00465E04   0x14BC68A8   0x00000812
+0020: 0x14CABB28   0x14C92E90   0x10E1A860   0x00000812
+0030: 0x0085B378   0x00000000   0x00000000   0x00000003
+0040: 0x14C92E90   0x0177F300   0x0177F37C   0x00837D18
+0050: 0x00000000   0x015696FB   0x00001005   0x14C92E90
+0060: 0x00000812   0x00000000   0x10E1A860   0x00000812
+0070: 0x00000000   0x00177D04   0x041A0F00   0x40833333
+0080: 0x00001005   0x14C92E90   0x00444550   0x00000000
+0090: 0x00000000   0x00000000   0x414D4F57   0x61775F4E
+00A0: 0x65736B6C   0x00007978   0x00000000   0x00000000
+00B0: 0x0177F538   0x00838121   0xFFFFFFFF   0x00473839
+00C0: 0x00000812   0x00000000   0x00000812   0x0177F598
+00D0: 0x00000000   0x00000000   0x00000000   0x0177F3BC
+00E0: 0x00000000   0x00000000   0x00000000   0x00000000
+00F0: 0x00000000   0x00000000   0x00000000   0x00000000
+0100: 0x0177F3E4   0x00000044   0x00000037   0x0177F810
+0110: 0xFFFFFFFF   0x00000000   0x0177F574   0x041124AB
+0120: 0x10ED5BA9   0x40000000   0x00000003   0x0177F558
+0130: 0x00000004   0x00000080   0x00000000   0x00000004
+0140: 0x00000080   0x00000000   0x00000000   0x00000000
+0150: 0x00000000   0x00000000   0x00000000   0x00000004
+0160: 0x76FDB499   0x75464180   0x00000000   0x00000000
+0170: 0x0177F45C   0x00000000   0x008E2EC0   0x00000000
+0180: 0x00B5D4A0   0x0177F468   0x008229E3   0x00B5D4A0
+0190: 0x0177F504   0x0177F504   0x00000000   0x0177F5B4
+01A0: 0x004D395E   0x00B5D4A0   0x0177F504   0x000004EE
+01B0: 0x10E1A860   0x0000FFFF   0x0048C3CE   0x00000001
+01C0: 0x00000000   0x000004EE   0x0177F5B4   0x00000000
+01D0: 0x00000001   0x00000000   0x00000000   0x00000000
+01E0: 0x00000000   0x00000001   0x0177F605   0x1F513750
+01F0: 0x04162711   0x1F513430   0x0177F604   0x00000320
+0200: 0x00000001   0x15A81340   0x15A38148   0x0177FFFF
+0210: 0x040CFFFF   0x040CC906   0x0177F938   0x0000002F
+0220: 0x1F510808   0x000001A0   0x000001A0   0x00000198
+0230: 0x0177F938   0x15A38100   0x00444550   0x00000000
+0240: 0x00000000   0x00000000   0x00000001   0x00000809
+0250: 0x00000030   0x00000030   0x00000028   0x0177F964
+0260: 0x00000000   0x00000000   0x00000000   0x0177F588
+0270: 0x0083821C   0xFFFFFFFF   0x00469EF7   0x00000812

SCM Op: 0x812, lDbg: 1 LastRendObj: 19482

Game Version: US 1.0

State Information: Ped Context: 0
P0 (0,0) P1 (0,0) P2 (0,0) P3 (17,0) 
P4 (0,0) P5 (17,0) P6 (17,0) P7 (0,0) 
P8 (0,0) P9 (17,0) P10 (17,0) P12 (0,0) P13 (0,0) P14 (33,0) P15 (0,0) 
P16 (0,0) P17 (17,0) P18 (17,0) P19 (0,0) 
P20 (0,0) P21 (0,0) P22 (17,0) P23 (19,123) 
P24 (17,0) P25 (33,0) P26 (0,0) P27 (17,0) 
P28 (0,0) P29 (0,0) P30 (19,111) P31 (17,0) 
P32 (0,0) P33 (0,0) P34 (0,0) P35 (17,0) 
P36 (0,0) P37 (0,0) P38 (17,0) P39 (17,0) 
P40 (17,0) P41 (0,0) P42 (17,0) P43 (0,0) 
P44 (17,0) P45 (0,0) P46 (0,0) P47 (0,0) 
P48 (0,0) P49 (0,0) P50 (0,0) P51 (19,40) 
P52 (0,0) P53 (0,0) P54 (0,0) P55 (0,0) 
P56 (0,0) P57 (0,0) P58 (0,0) P59 (0,0) 
P60 (17,0) P61 (0,0) P62 (0,0) P63 (17,0) 
P64 (0,0) P65 (17,0) P66 (0,0) P67 (19,70) 
P68 (0,0) P69 (0,0) P70 (0,0) P71 (0,0) 
P72 (0,0) P73 (33,0) P74 (0,0) P75 (17,0) 
P76 (18,40) P77 (0,0) P78 (17,0) P79 (0,0) 
P80 (0,0) P81 (17,0) P82 (0,0) P83 (17,0) 
P84 (0,0) P85 (0,0) P86 (19,85) P87 (0,0) 
P88 (0,0) P89 (0,0) P90 (0,0) P91 (17,0) 
P92 (0,0) P93 (17,0) P94 (19,58) P95 (0,0) 
P96 (0,0) P97 (0,0) P98 (0,0) P101 (0,0) P102 (0,0) P103 (0,0) 
P104 (17,0) P106 (17,0) P108 (0,0) P112 (0,0) P118 (17,0) P122 (0,0) P123 (17,0) 
Full-stack webdeveloper, specialized on backend development.

[Image: signature?characterName=Ethan_Marroquin]
whadez
Offline

Burgershot Member
Posts: 14
Threads: 1
Joined: Apr 2019
Reputation: 0
Location: Budapest
#2
2019-05-27, 11:33 AM
Bump.
Full-stack webdeveloper, specialized on backend development.

[Image: signature?characterName=Ethan_Marroquin]
JustMichael
Offline

Forum Manager

Posts: 189
Threads: 3
Joined: Feb 2019
Reputation: 17
Location: England
#3
2019-05-27, 12:25 PM (This post was last modified: 2019-05-27, 12:27 PM by JustMichael.)
Okay, so straight up your thread's title makes no sense. Pawn is a language and can not *crash* (the Pawn Compiler can crash, but is irrelevant to the problem here).
(You are referring to the SA-MP Client, that has crashed)

So the crashing, could be many things.

Invalid Vehicle Mods,
Invalid Ped Skins,
Bad Mods,
etc

I'm going to have to write a detailed format for this kind of thing, because there is a lot of information you are not providing, like is this your server you are on, what mods do you have installed (including any .als files), what where you were doing before you alt-tabbed.
Remember to always refer to J0sh as `J0sh...`

@ Networks/Servers
San Andreas Gaming Network (Owner/Founder)
San Andreas Gaming (Owner/Founder)
Grand Theft Cop's n Robber's (Owner)
Britannia Roleplay (Owner/Founder)
Alpine RP (Owner/Founder)
Aluminium Network (Maintainer)
AlphaDM (Tech Support)

# Services
Burgershot.gg (Forum Manager)
open.mp (Member)

~ Languages/Frameworks
Pawn, C, C++, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,
Angular, React, Vue, Svelte, Laravel, Rocket
BigETI
Offline

open.mp Developer

Posts: 107
Threads: 5
Joined: Feb 2019
Reputation: 12
Location: Germany
#4
2019-05-27, 12:28 PM
The server can crash through a PAWN script, but this topic is absolutely not related to that.
[Image: github-samp-icon.png]
whadez
Offline

Burgershot Member
Posts: 14
Threads: 1
Joined: Apr 2019
Reputation: 0
Location: Budapest
#5
2019-05-27, 01:49 PM (This post was last modified: 2019-05-27, 01:54 PM by whadez.)
Where did I say that PAWN is crashing? I said the client is crashing due to the error said in the title.

(In my view)
Client = The user who's playing on the server, he goes alt+tab, comes back and this error occurs for HIM. The server is not crashing at all.

Edit:
If you meant by the prefix, I might have put PAWN accidentaly, sorry about that.

Yes it's my server, people are experiencing this issue on both clean, and modded GTA San Andreas. I'm experiencing it aswell, and I have stock game without any mods. I'm validating the models the user is putting onto his car, so I highly doubt that could cause this problem, I fixed that long time ago, this gamemode wasn't ran in the past 2 years, and I have never seen this particular error code before. It happens at crowded places where people are playing animations. We have around 80-140 players most of the time, so the crash happens quite often.
Full-stack webdeveloper, specialized on backend development.

[Image: signature?characterName=Ethan_Marroquin]
whadez
Offline

Burgershot Member
Posts: 14
Threads: 1
Joined: Apr 2019
Reputation: 0
Location: Budapest
#6
2019-05-27, 02:57 PM
https://imgur.com/a/bef0Vbj (10-15 players around me)
Full-stack webdeveloper, specialized on backend development.

[Image: signature?characterName=Ethan_Marroquin]
whadez
Offline

Burgershot Member
Posts: 14
Threads: 1
Joined: Apr 2019
Reputation: 0
Location: Budapest
#7
2019-05-27, 06:11 PM
I'm filtering the animations, they are all ok, non-existent libraries are not being used based on the logging sequence.

Players are having correct skins, neither that is causing the issue.
Vehicle mods are filtered aswell, fixed that long time ago.
Perhaps some other mapping related objects could cause this issue?

That's my final quess.

P.S: I even tried to upgrade my fixes.inc to the latest, which didn't fix the issue unfortunately.
Full-stack webdeveloper, specialized on backend development.

[Image: signature?characterName=Ethan_Marroquin]
whadez
Offline

Burgershot Member
Posts: 14
Threads: 1
Joined: Apr 2019
Reputation: 0
Location: Budapest
#8
2019-05-28, 07:52 AM (This post was last modified: 2019-05-28, 07:58 AM by whadez.)
We checked the last streamed object for the player, the crash is not caused by neither animations, and objects, we got rid of the last objects reported in the users client, and then it showed some other object ids which are valid. If anyone has a single guess, please let me know, we are desperately looking for any solution that can come up ...

I'm hooking ApplyAnimation, and looping through an array consist of these libraries: https://pastebin.com/ThvS2W0e, if the called library is not found within this array, it prints an error. It never printed any error so far, although the code is working because I tested it out with some invalid libs. So I'm pretty sure that it has nothing to do with animations.

Object-wise I explained it above ^

Crash is neither caused by tuning on the vehicles because I'm using jernel's solution (afaik, it worked perfectly so far, and it reported different opcodes, which got fixed years ago by his solution)

- PED Animations
- Objects
- Vehicle components
Should be out.

Some info on the other forum: https://i.imgur.com/ZmlBBsI.png

What's the next step?
Full-stack webdeveloper, specialized on backend development.

[Image: signature?characterName=Ethan_Marroquin]
MyU
Offline

open.mp Developer

Posts: 18
Threads: 1
Joined: Apr 2019
Reputation: 2
Location: Germany
#9
2019-05-28, 08:56 AM (This post was last modified: 2019-05-28, 08:57 AM by MyU.)
Following the last executed opcode isn't fail-proof looking at the memory information will give you a much better view.
The game is crashing because it's trying to access invalid memory while cleaning up references.
Now this can be related to MANY things but the most common thing is the task system, which again spawns a new row of questions.
Are you sure the game is in a totally clean state? Are there actors/npcs playing animations?

The fastest way to find out more is for you to enable WER and have a full crash dump to analyze, one quick google even pop's up with a nice description on how to do it: https://www.meziantou.net/2018/06/04/tip-automatically-create-a-crash-dump-file-on-error .
The file can be quite large, don't upload it somewhere publically, it may contain sensitive data, you can provide me the download link and i'll look into it if I find any free time.
whadez
Offline

Burgershot Member
Posts: 14
Threads: 1
Joined: Apr 2019
Reputation: 0
Location: Budapest
#10
2019-05-28, 04:35 PM
(2019-05-28, 08:56 AM)MyU Wrote: Following the last executed opcode isn't fail-proof looking at the memory information will give you a much better view.
The game is crashing because it's trying to access invalid memory while cleaning up references.
Now this can be related to MANY things but the most common thing is the task system, which again spawns a new row of questions.
Are you sure the game is in a totally clean state? Are there actors/npcs playing animations?

The fastest way to find out more is for you to enable WER and have a full crash dump to analyze, one quick google even pop's up with a nice description on how to do it: https://www.meziantou.net/2018/06/04/tip-automatically-create-a-crash-dump-file-on-error .
The file can be quite large, don't upload it somewhere publically, it may contain sensitive data, you can provide me the download link and i'll look into it if I find any free time.

Thank you very much, I'm gonna hook it up soon and get in contact with you!
Full-stack webdeveloper, specialized on backend development.

[Image: signature?characterName=Ethan_Marroquin]
whadez
Offline

Burgershot Member
Posts: 14
Threads: 1
Joined: Apr 2019
Reputation: 0
Location: Budapest
#11
2019-05-29, 08:41 PM
Some more opcodes:
Warning(opcode 0x70A): Exception 0xC0000005 at 0x571A00
Warning(opcode 0x5CD): Exception 0xC0000005 at 0x571A00
Full-stack webdeveloper, specialized on backend development.

[Image: signature?characterName=Ethan_Marroquin]
MyU
Offline

open.mp Developer

Posts: 18
Threads: 1
Joined: Apr 2019
Reputation: 2
Location: Germany
#12
2019-05-29, 08:50 PM
Any chance you're using attached objects? A full stack trace would be better though (the whole crashlog) as it's not telling much more new.
Slowly I'm getting the suspicion that you're attaching invalid models to vehicles or players or something alike.
whadez
Offline

Burgershot Member
Posts: 14
Threads: 1
Joined: Apr 2019
Reputation: 0
Location: Budapest
#13
2019-05-29, 09:14 PM
I might have found the source of the issue ... There were some weird rows in my database with non-existent model ids, which are being attached to the players, since they are offline I guess this is why people are not crashing anymore (Atleast I hope so) Thank you very much, I'll let you know if the issue still persist, and if it does, I'll lend you the crash dump as you requested.

Thank you very much MyU!
Full-stack webdeveloper, specialized on backend development.

[Image: signature?characterName=Ethan_Marroquin]
whadez
Offline

Burgershot Member
Posts: 14
Threads: 1
Joined: Apr 2019
Reputation: 0
Location: Budapest
#14
2019-05-30, 04:46 PM
(2019-05-29, 08:50 PM)MyU Wrote: Any chance you're using attached objects? A full stack trace would be better though (the whole crashlog) as it's not telling much more new.
Slowly I'm getting the suspicion that you're attaching invalid models to vehicles or players or something alike.

Sent you a PM.
Full-stack webdeveloper, specialized on backend development.

[Image: signature?characterName=Ethan_Marroquin]
JustMichael
Offline

Forum Manager

Posts: 189
Threads: 3
Joined: Feb 2019
Reputation: 17
Location: England
#15
2019-05-30, 05:30 PM
Could you maybe not use PM's for this stuff? Unless you still plan to reply here with a solution if found. It's just so others with the same issue can use this thread to help them.

Thanks
Remember to always refer to J0sh as `J0sh...`

@ Networks/Servers
San Andreas Gaming Network (Owner/Founder)
San Andreas Gaming (Owner/Founder)
Grand Theft Cop's n Robber's (Owner)
Britannia Roleplay (Owner/Founder)
Alpine RP (Owner/Founder)
Aluminium Network (Maintainer)
AlphaDM (Tech Support)

# Services
Burgershot.gg (Forum Manager)
open.mp (Member)

~ Languages/Frameworks
Pawn, C, C++, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,
Angular, React, Vue, Svelte, Laravel, Rocket
whadez
Offline

Burgershot Member
Posts: 14
Threads: 1
Joined: Apr 2019
Reputation: 0
Location: Budapest
#16
2019-05-30, 06:12 PM
(2019-05-30, 05:30 PM)JustMichael Wrote: Could you maybe not use PM's for this stuff? Unless you still plan to reply here with a solution if found. It's just so others with the same issue can use this thread to help them.

Thanks

I'll share the solution when I found it, but I had to send him the dumpfile somewhere in private.
I'm debugging every call by hooks that can be in charge of this issue. ( http://prntscr.com/nvjo1k ), but nothing outstanding so far.
Full-stack webdeveloper, specialized on backend development.

[Image: signature?characterName=Ethan_Marroquin]
JustMichael
Offline

Forum Manager

Posts: 189
Threads: 3
Joined: Feb 2019
Reputation: 17
Location: England
#17
2019-05-30, 06:20 PM
Ah, no worries then. If it's because it contains private info that's perfectly understandable :)
Remember to always refer to J0sh as `J0sh...`

@ Networks/Servers
San Andreas Gaming Network (Owner/Founder)
San Andreas Gaming (Owner/Founder)
Grand Theft Cop's n Robber's (Owner)
Britannia Roleplay (Owner/Founder)
Alpine RP (Owner/Founder)
Aluminium Network (Maintainer)
AlphaDM (Tech Support)

# Services
Burgershot.gg (Forum Manager)
open.mp (Member)

~ Languages/Frameworks
Pawn, C, C++, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,
Angular, React, Vue, Svelte, Laravel, Rocket
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode