• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Client] Crashing when on desktop (Warning(opcode 0x812): Exception 0xC0000005 at 0x571A00)
#1
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䰀.



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:

퍍: 0x006083A7? ?0x00C0B1E0? ?0x14CABB28? ?0x14BC68A8

퍍: 0x018EE750? ?0x00465E04? ?0x14BC68A8? ?0x00000812

퍍: 0x14CABB28? ?0x14C92E90? ?0x10E1A860? ?0x00000812

퍍: 0x0085B378? ?0x00000000? ?0x00000000? ?0x00000003

퍎: 0x14C92E90? ?0x0177F300? ?0x0177F37C? ?0x00837D18

퍎: 0x00000000? ?0x015696FB? ?0x00001005? ?0x14C92E90

퍎: 0x00000812? ?0x00000000? ?0x10E1A860? ?0x00000812

퍎: 0x00000000? ?0x00177D04? ?0x041A0F00? ?0x40833333

퍏: 0x00001005? ?0x14C92E90? ?0x00444550? ?0x00000000

퍏: 0x00000000? ?0x00000000? ?0x414D4F57? ?0x61775F4E

퍀: 0x65736B6C? ?0x00007978? ?0x00000000? ?0x00000000

퍀: 0x0177F538? ?0x00838121? ?0xFFFFFFFF? ?0x00473839

퍀: 0x00000812? ?0x00000000? ?0x00000812? ?0x0177F598

퍀: 0x00000000? ?0x00000000? ?0x00000000? ?0x0177F3BC

퍁: 0x00000000? ?0x00000000? ?0x00000000? ?0x00000000

퍁: 0x00000000? ?0x00000000? ?0x00000000? ?0x00000000

퍝: 0x0177F3E4? ?0x00000044? ?0x00000037? ?0x0177F810

퍝: 0xFFFFFFFF? ?0x00000000? ?0x0177F574? ?0x041124AB

퍝: 0x10ED5BA9? ?0x40000000? ?0x00000003? ?0x0177F558

퍝: 0x00000004? ?0x00000080? ?0x00000000? ?0x00000004

퍞: 0x00000080? ?0x00000000? ?0x00000000? ?0x00000000

퍞: 0x00000000? ?0x00000000? ?0x00000000? ?0x00000004

퍞: 0x76FDB499? ?0x75464180? ?0x00000000? ?0x00000000

퍞: 0x0177F45C? ?0x00000000? ?0x008E2EC0? ?0x00000000

퍟: 0x00B5D4A0? ?0x0177F468? ?0x008229E3? ?0x00B5D4A0

퍟: 0x0177F504? ?0x0177F504? ?0x00000000? ?0x0177F5B4

퍐: 0x004D395E? ?0x00B5D4A0? ?0x0177F504? ?0x000004EE

퍐: 0x10E1A860? ?0x0000FFFF? ?0x0048C3CE? ?0x00000001

퍐: 0x00000000? ?0x000004EE? ?0x0177F5B4? ?0x00000000

퍐: 0x00000001? ?0x00000000? ?0x00000000? ?0x00000000

퍑: 0x00000000? ?0x00000001? ?0x0177F605? ?0x1F513750

퍑: 0x04162711? ?0x1F513430? ?0x0177F604? ?0x00000320

퍭: 0x00000001? ?0x15A81340? ?0x15A38148? ?0x0177FFFF

퍭: 0x040CFFFF? ?0x040CC906? ?0x0177F938? ?0x0000002F

퍭: 0x1F510808? ?0x000001A0? ?0x000001A0? ?0x00000198

퍭: 0x0177F938? ?0x15A38100? ?0x00444550? ?0x00000000

퍮: 0x00000000? ?0x00000000? ?0x00000001? ?0x00000809

퍮: 0x00000030? ?0x00000030? ?0x00000028? ?0x0177F964

퍮: 0x00000000? ?0x00000000? ?0x00000000? ?0x0177F588

퍮: 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]
  Reply
#2
Bump.
Full-stack webdeveloper, specialized on backend development.



[Image: signature?characterName=Ethan_Marroquin]
  Reply
#3
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) [Retired]

Alpine RP (Owner/Founder)

Aluminium Network (Maintainer) [Disbanded]

AlphaDM (Tech Support) [Disbanded]



# Services

forum.open.mp (Forum Manager) (Formerly Burgershot.gg

open.mp (Member)



~ Languages/Frameworks

Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,

Angular, React, Vue, Svelte, Laravel, Rocket
  Reply
#4
The server can crash through a PAWN script, but this topic is absolutely not related to that.
[Image: github-samp-icon.png]
  Reply
#5
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떦, 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]
  Reply
#6
https://imgur.com/a/bef0Vbj (10-15 players around me)
Full-stack webdeveloper, specialized on backend development.



[Image: signature?characterName=Ethan_Marroquin]
  Reply
#7
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]
  Reply
#8
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]
  Reply
#9
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...e-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.
  Reply
#10
(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...e-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]
  Reply
#11
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]
  Reply
#12
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.
  Reply
#13
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]
  Reply
#14
(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]
  Reply
#15
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) [Retired]

Alpine RP (Owner/Founder)

Aluminium Network (Maintainer) [Disbanded]

AlphaDM (Tech Support) [Disbanded]



# Services

forum.open.mp (Forum Manager) (Formerly Burgershot.gg

open.mp (Member)



~ Languages/Frameworks

Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,

Angular, React, Vue, Svelte, Laravel, Rocket
  Reply
#16
(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]
  Reply
#17
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) [Retired]

Alpine RP (Owner/Founder)

Aluminium Network (Maintainer) [Disbanded]

AlphaDM (Tech Support) [Disbanded]



# Services

forum.open.mp (Forum Manager) (Formerly Burgershot.gg

open.mp (Member)



~ Languages/Frameworks

Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,

Angular, React, Vue, Svelte, Laravel, Rocket
  Reply


Forum Jump: