Description
Game crash to desktop when using the native SetPlayerModel on b2060.
Crash Details
FiveM_b2060_GTAProcess.exe+6C9BE7
Legacy Code: ohio-green-low
Logfile Output
[ 217547] [b2060_GTAProce] MainThrd/ [skin] Trying to load model! Model: 1885233650
[ 217547] [b2060_GTAProce] MainThrd/ Model Requested: 1885233650
[ 217703] [b2060_GTAProce] MainThrd/ Model loaded!
[ 217718] [b2060_GTAProce] MainThrd/ Model is valid! Setting now!
[ 217718] [b2060_GTAProce] MainThrd/ InvokeNative: execution failed: Error executing native 0x00a1cadd00108836 at address 0x1407baccc.
[ 217734] [b2060_GTAProce] MainThrd/ Execution of native 00a1cadd00108836 in script host failed: Error executing native 0x00a1cadd00108836 at address 0x1407baccc.
[ 223015] [b2060_DumpServ] 18964/ Process crash captured. Crash dialog content:
[ 223031] [b2060_DumpServ] 18964/ FiveM_b2060_GTAProcess.exe+6C9BE7
[ 223031] [b2060_DumpServ] 18964/ An error at FiveM_b2060_GTAProcess.exe+6C9BE7 caused FiveM to stop working. A crash report is being uploaded to the FiveM developers.
[ 223047] [b2060_DumpServ] 18964/
[ 223047] [b2060_DumpServ] 18964/ Legacy crash hash: ohio-green-low
[ 223062] [b2060_DumpServ] 18964/ Stack trace:
[ 223062] [b2060_DumpServ] 18964/ FiveM_b2060_GTAProcess.exe+6C9BE7
[ 223062] [b2060_DumpServ] 18964/ FiveM_b2060_GTAProcess.exe+6C9B9A
[ 223078] [b2060_DumpServ] 18964/ FiveM_b2060_GTAProcess.exe+919DE0
[ 223078] [b2060_DumpServ] 18964/ gta-core-five.dll!rage::RunEntries (0x1a1) (<A HREF="https://github.com/citizenfx/fivem/blob/master/code/components/gta-core-five/src/GameSkeleton.cpp#L181">GameSkeleton.cpp:181</A>)
[ 223109] [b2060_DumpServ] 18964/ gta-core-five.dll!rage::RunEntries (0x1a1) (<A HREF="https://github.com/citizenfx/fivem/blob/master/code/components/gta-core-five/src/GameSkeleton.cpp#L181">GameSkeleton.cpp:181</A>)
[ 223125] [b2060_DumpServ] 18964/ gta-core-five.dll!rage::RunEntries (0x172) (<A HREF="https://github.com/citizenfx/fivem/blob/master/code/components/gta-core-five/src/GameSkeleton.cpp#L181">GameSkeleton.cpp:181</A>)
[ 223140] [b2060_DumpServ] 18964/ gta-core-five.dll!rage::gameSkeleton::RunUpdate (0x1c1) (<A HREF="https://github.com/citizenfx/fivem/blob/master/code/components/gta-core-five/src/GameSkeleton.cpp#L197">GameSkeleton.cpp:197</A>)
[ 223156] [b2060_DumpServ] 18964/
[ 231687] [b2060_DumpServ] 18964/ Crash report service returned si-fdf7a8a9813445bdb34f8a84a42c1976
Reproduction Steps
local modelHash = GetHashKey("mp_m_freemode_01")
print("[skin] Trying to load model! Model: "..modelHash)
if not IsModelValid(modelHash) then
print("[skin] Model didn't exist! Model: "..modelHash)
return false
end
RequestModel(modelHash)
print("Model Requested: "..modelHash)
while not HasModelLoaded(modelHash) do
Citizen.Wait(0)
end
print("Model loaded!")
if IsModelInCdimage(modelHash) and HasModelLoaded(modelHash) then
print("Model is valid! Setting now!")
SetPlayerModel(PlayerId(), modelHash)
SetPedDefaultComponentVariation(PlayerPedId())
end
SetModelAsNoLongerNeeded(modelHash)
This seems to cause the above crash as soon as SetPlayerModel is triggered.
Crash Logs
CfxCrashDump_2020_08_27_11_17_49.zip (1.5 MB)