Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

carolina-december-eight crash #3107

Open
LegendaryMods opened this issue Jan 28, 2025 · 3 comments
Open

carolina-december-eight crash #3107

LegendaryMods opened this issue Jan 28, 2025 · 3 comments
Labels
bug crash triage Needs a preliminary assessment to determine the urgency and required action

Comments

@LegendaryMods
Copy link

LegendaryMods commented Jan 28, 2025

What happened?

If an NPC shoots another NPC the game will crash. This causes other players in the area to crash, if they're nearby.
I've tested this on multiple game builds (b3095, b3258, b3323 & b3407,) and multiple artifacts, and it seems to only happen on b3407.
I've also tested this across multiple servers, including one with a a fresh install of the Default CFX recipe provided by txAdmin.
This happens on both Linux, and Windows servers. CfxCrashDump_2025_01_28_18_16_38.zip

Edit: Shooting armed NPCs will also cause a crash to happen.
Crash dump from the video below: CfxCrashDump_2025_01_28_21_09_58.zip
https://github.com/user-attachments/assets/b3e5d699-ca40-43ea-af3e-ecefbfd160a8

Expected result

no crashes

Reproduction steps

1a. NPC shoots/kills another NPC
1b. Shoot an armed NPC
2. Crash

Importancy

Crash

Area(s)

FiveM

Specific version(s)

FiveM 3407, Server 12508 Linux, Server 12629 Windows

Additional information

Edit 1: Removed incorrect information & reproduction steps, added more context, and clearer reproduction steps

@LegendaryMods LegendaryMods added bug triage Needs a preliminary assessment to determine the urgency and required action labels Jan 28, 2025
@github-actions github-actions bot added the crash label Jan 28, 2025
@DaniGP17
Copy link
Contributor

DaniGP17 commented Jan 28, 2025

I've tried on b3407 being killed +14 times in the same spot with the same NPCs but I can't reproduce the issue. Am I doing something wrong?
Edit: Finally able to reproduce the crash shooting to an armed NPC

@CrazedslawDev
Copy link

Ive been consistently getting this issue whenever trying to shoot armed NPCs (specifically altruist cultists or armed bank truck guards as part of a script)

@DaniGP17
Copy link
Contributor

DaniGP17 commented Feb 1, 2025

I've been investigating for a while but I still haven't found a solution, in case anyone finds this useful:

Location: 48 8B 81 ? ? ? ? 4C 8B 90 ? ? ? ? 49 8B 82
Function Name: CPedIntelligence::IsThreatenedBy
Instruction Crash: mov     rax, [rcx+358h]
Reason: rcx = 0000000000000, rcx means self of CPedIntelligence
Called from:
	CPedIntelligence::IsPedThreatening:
		Location: 48 ? ? ? ? 57 48 ? ? ? 41 ? ? 45 ? ? 41 ? ? 48 ? ? c6
		Instruction: call    CPedIntelligence__IsThreatenedBy
		Reason: self is invalid
		Called from:
			CTaskSmartFlee::ShouldConsiderPedThreatening:
				Location: 48 89 5C 24 ? 57 48 83 EC ? 48 8B F9 48 8B 89 ? ? ? ? 48 8B DA E8 ? ? ? ? 84 C0 75 ? 32 C0
				Instruction: call    CPedIntelligence__IsPedThreatening
				Reason: Yet I didn't find the exact cause but I only think about the first argument of ShouldConsiderPedThreatening that is a invalid CPed* or that CPed is a valid pointer but miss the m_pPedIntelligence

Maybe my research is wrong but I hope it can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug crash triage Needs a preliminary assessment to determine the urgency and required action
Projects
None yet
Development

No branches or pull requests

3 participants