fivem icon indicating copy to clipboard operation
fivem copied to clipboard

Crashes since recent update (zulu-helium-queen) GTA5_b3095.exe!sub_14039F848 (0x1929)

Open Senlar opened this issue 10 months ago • 37 comments

What happened?

GTA5_b3095.exe!sub_14039F848 (0x1929) I noticed these crashes started on the beta client around January 5th and I was investigating scripts to see if I could find where it was coming from. Then, when the beta moved to release on January 13th it crippled my entire server. image image image

Through the process of elimination I found a script that was previously working just fine, but now was resulting in a lot of these crashes. After stopping this script most of the crashes stopped, but they are still happening on occasion which leads me to believe it is possibly an issue with a native that is being used in other scripts as well. I am also seeing other server owners reporting issues with this crash on the CFX Discord so I know it is more than just an issue with one script on my server.

Here are some of the crash dumps from multiple players who provided them for this report.

CfxCrashDump_2025_01_13_15_52_48.zip CfxCrashDump_2025_01_13_16_32_55.zip CfxCrashDump_2025_01_13_17_19_50.zip CfxCrashDump_2025_01_13_17_51_58.zip CfxCrashDump_2025_01_13_18_31_06.zip CfxCrashDump_2025_01_14_15_28_37.zip CfxCrashDump_2025_01_14_03_55_58.zip

Expected result

Previously working scripts should not suddenly be causing crashes when they had not been updated or changed.

Reproduction steps

Its difficult to reproduce in an individual development environment... but on my server when I have players online if I start up the script it leads to an almost immediate crash for multiple players with the same crash message. But the crashes still happen to players when this script is not running so its not just this specific script.

Importancy

Crash

Area(s)

FiveM

Specific version(s)

[fivem:production] #12295

Server Info

windows:12255 set sv_enforceGameBuild 3095 sets sv_pureLevel 1

Additional information

No response

Senlar avatar Jan 15 '25 15:01 Senlar

I should mention that I did try to update my servers artifact and cleared the server cache. image This had no impact on the crashes.

Senlar avatar Jan 15 '25 15:01 Senlar

Been following this one with Senlar in his ticket in my discord and it seems that something in the latest client update has caused this problem for a small % of users of a particular one of my scripts. My best guess is being caused by the populationPedCreating event handler. Been a tricky one to diagnose as it is not happening for me on my test environment but I am happy to work with the team and share my code if needed.

Envi-Scripts avatar Jan 15 '25 22:01 Envi-Scripts

I’d be willing to bet that it’s multiple scripts that are causing this issue as well. Since reading this I’ve turned off all my envi scripts and still getting this error

Msolomon256 avatar Jan 16 '25 13:01 Msolomon256

From a quick look, that function seems to be related to ped dialogue. I can see it gets a voice line to say and appends to it modifier like "_MALE", "_FEMALE", "_ANGRY", etc. Do any of you have any resources that would affect this dialogue?

Gogsi avatar Jan 16 '25 13:01 Gogsi

Yea I am using a lot of ped dialogue in my script, however the reports don't indicate that the client is interacting with my script at the time and seems more random. Could it be tied to something like scenario peds speech or something perhaps ?

Envi-Scripts avatar Jan 16 '25 13:01 Envi-Scripts

Yeah brother we get it too with Envi trap phone…. This is very annoying, hopefully fivem fixes soon!

crimsoncoastrp avatar Jan 16 '25 15:01 crimsoncoastrp

From a quick look, that function seems to be related to ped dialogue. I can see it gets a voice line to say and appends to it modifier like "_MALE", "_FEMALE", "_ANGRY", etc. Do any of you have any resources that would affect this dialogue?

@Gogsi If you don't mind me asking, how did you figure that out? Also, can you tell what native it is or does it not really point to a native?

Senlar avatar Jan 16 '25 15:01 Senlar

Just some more info I have gathered. Another user is getting it simply when car-jacking an NPC, which does relate to SPEECH I guess as they will be in that panicked state

Envi-Scripts avatar Jan 16 '25 15:01 Envi-Scripts

I don't know if it can help, but here is a signature that locates the crash place: 8B ? ? EB ? 41 ? ? 48 ? ? ? ? ? ? 85

DaniGP17 avatar Jan 16 '25 16:01 DaniGP17

Is fivem even somewhat aware of this so we can all fix our servers?

crimsoncoastrp avatar Jan 17 '25 15:01 crimsoncoastrp

Is fivem even somewhat aware of this so we can all fix our servers?

Sadly it doesn't look like they've seen it yet. I would imagine they would take action on it here when they do by assigning someone or updating the tags.

Senlar avatar Jan 19 '25 03:01 Senlar

The same in my servers... It started on January 5th and got worse on the 12th, without having touched any of my scripts.

GTA5_b3258.exe!sub_1403A1D08 (0x1929)An error at GTA5_b3258.exe!sub_1403A1D08 (0x1929) caused FiveM to stop working. A crash report is being uploaded to the FiveM developers.
Legacy crash hash: pip-edward-vermont
GTA5_b3258.exe!sub_1403A1D08 (0x1929)

elvowe avatar Jan 20 '25 08:01 elvowe

The same in my servers... It started on January 5th and got worse on the 12th, without having touched any of my scripts.

GTA5_b3258.exe!sub_1403A1D08 (0x1929)An error at GTA5_b3258.exe!sub_1403A1D08 (0x1929) caused FiveM to stop working. A crash report is being uploaded to the FiveM developers.
Legacy crash hash: pip-edward-vermont
GTA5_b3258.exe!sub_1403A1D08 (0x1929)

But that crash is in 3258, not sure if it's related with this.(May be I'm wrong)

DaniGP17 avatar Jan 20 '25 08:01 DaniGP17

Yep, its diferent build version, im using 3258 building. And the dates of the crashes started right on those days (where I didn't make any script updates)

Image

elvowe avatar Jan 20 '25 08:01 elvowe

The same in my servers... It started on January 5th and got worse on the 12th, without having touched any of my scripts.

GTA5_b3258.exe!sub_1403A1D08 (0x1929)An error at GTA5_b3258.exe!sub_1403A1D08 (0x1929) caused FiveM to stop working. A crash report is being uploaded to the FiveM developers.
Legacy crash hash: pip-edward-vermont
GTA5_b3258.exe!sub_1403A1D08 (0x1929)

I can confirm this is the same crash, just a different offset because it's a different build. The fact that it started on the same day and has the same offset inside the function (0x1929) is also a good hint that it's related.

Had a bit more time to look into it, and it's crashing when attempting to get the current script thread ID. Weirdly enough it first calls "_GetCurrentThread" (made up name) to check if it's not null and then calls it a second time to get its ID. For some reason though, the second time the script thread is null despite passing the check in the if. Maybe an oddity given how FiveM handles scripts or maybe something in adhesive?

Image

Relevant code snippet, the crash is when adding 2 (8 bytes) to the scrThread* to get the ID

Gogsi avatar Jan 20 '25 09:01 Gogsi

Commits 636b97b and 4a02b90 both made it to production on that day (January 13) and the first one changes stuff in GtaThread, while the second one changes stuff in both GtaThread and scrThread. If I had to guess, the issue probably lies there but I don't know what it is right now.

Gogsi avatar Jan 20 '25 10:01 Gogsi

Probably related issue: #3079 (Crashing on reset calls to scrThread)

tens0rfl0w avatar Jan 21 '25 02:01 tens0rfl0w

Hopefully there is enough information here to help track down the cause of this issue. If we can provide any other information please let us know.

Senlar avatar Jan 24 '25 20:01 Senlar

getting it again even after updating trap phone, it worked for a week now it happened again... THIS IS THE TRAP PHONE GENERALLY WHEN WE GO UP TO GANG MEMBER CARS.

chopcity1oh avatar Jan 25 '25 16:01 chopcity1oh

Hopefully there is enough information here to help track down the cause of this issue. If we can provide any other information please let us know.

I was being carried in a car when the crash happened once (I thought it was a server problem), I joined back and just started walking on the shoulder of the highway bc I was in full rp mode lol and crashed maybe two minutes later again, its very frustrating ngl.

harr9i avatar Jan 27 '25 03:01 harr9i

I linked this to here, comment on this maybe cfx will see it.

https://forum.cfx.re/t/legacy-crash-hash-pip-edward-vermont/5301934

chopcity1oh avatar Jan 28 '25 20:01 chopcity1oh

I linked this to here, comment on this maybe cfx will see it.

There is already a cfx person assigned to this issue

DaniGP17 avatar Jan 28 '25 20:01 DaniGP17

I linked this to here, comment on this maybe cfx will see it.

There is already a cfx person assigned to this issue

GOOD TO KNOW BROTHER!

chopcity1oh avatar Jan 28 '25 20:01 chopcity1oh

Any info?

tomson701 avatar Feb 06 '25 22:02 tomson701

We are crashing MUCH less with the new envi trap phone update but still pretty often. PLEASE FIVEM FIX THIS LOL

chopcity1oh avatar Feb 09 '25 22:02 chopcity1oh

Any info?

nope!

chopcity1oh avatar Feb 09 '25 22:02 chopcity1oh

experiencing these issues fivem can we please get an update

xodashy avatar Feb 14 '25 04:02 xodashy

To give some update on the investigation I've been doing on my side with my customers who experienced this over the last week. I did many updates to the script in question and removed any usage of HasEntityClearLosToEntityInFront.

The reports were seeming pretty random so I added a new option to disable one module of my script which ensured that there are 0 loops running while the script is idle. Upon doing this, the user I was testing with was still experiencing crashes.

We then tested another theory and removed the props that I provide with the script (envi-trap-props resource) and this did seem to stop the crashes?

We have remade those props and provided a new version and this seems to have settled it. I will report back if I have any more reports

Envi-Scripts avatar Feb 15 '25 11:02 Envi-Scripts