Open DurtyFree opened 2 months ago
Hi, could you include a resource to easily reproduce the crash?
Hi, could you include a resource to easily reproduce the crash?
Hi due to copyright reasons and the size of such a resource (2GB+) I can hardly upload it here but feel free to DM me at Discord @DurtyFree
and I am happy to provide it privately
We are a server with an average of 250-300 players.
We have exactly this problem, as addressed here by DurtyFree.
For this reason, we would also like to see improvements made here so that the problem can be resolved quickly.
Hey, we also have this problem. Especially when players go through pieces of clothing they get the crash with the error message that DurtyFree send above.
+1
I think the same or similar was already reported years ago here https://forum.cfx.re/t/native-setpedcomponentvariation-0x262b14f48d29de80/2108253
There is repro resource attached (I believe it was for 1604 back then 😅), it was even fixed for a while but removed because it caused more issues. https://github.com/citizenfx/fivem/blob/master/code/components/gta-streaming-five/src/CrashFixes_Clothing.cpp
I was able to increase the limit to 512 without any noticiable issues while testing
I'm guessing that other fix attempt was missing patches in some other places and that's why it was causing weird crashes
I was able to increase the limit to 512 without any noticiable issues while testing
I'm guessing that other fix attempt was missing patches in some other places and that's why it was causing weird crashes
You possibly sharing this fix? I would love to testing it on a live server
Unfortunately this is not something you would be able to test on a live server.
The patch is done but it requires some other fix to prevent crashing players that don't yet have the patch.
Exact same problem.
Hope this is looked into and fixed as a priority as yesterday alone in the space of 6 hours we had nearly 200 crashes with the errors reported above which isnt ideal for a server owner or players of the server
@prikolium-cfx
Afaik @slashkeyvalue already implemented a fix and its just waiting for some other changes to be published before being merged.
Maybe CFX team can confirm and provide more information
Another 2-300 concurrent players server here, Project NXT. We are also fighting this issue, and stand with Alexander here (@DurtyFree).
A giant +1 from us. This is quickly becoming one of the most limiting factors in growing and increasing the quality our content to our end users.
Afaik @slashkeyvalue already implemented a fix and its just waiting for some other changes to be published before being merged.
Maybe CFX team can confirm and provide more information
I believe it usually takes 5-6 weeks or so before fixes get pushed to Release build on average? Correct me if I'm wrong @Nobelium-cfx
There has been no push or commit to fix this issue yet.
I do have a working prototype for it but haven't had the time to actually finish it and can't promise I will be able to in the near future.
Maybe someone else from Cfx manages to fix it before i do
There has been no push or commit to fix this issue yet.
I do have a working prototype for it but haven't had the time to actually finish it and can't promise I will be able to in the near future.
Maybe someone else from Cfx manages to fix it before i do
Could you share what you have achived so far?
has anyone had luck on fixing this?
has anyone had luck on fixing this?
There is no way in fixing this yourself. Will most likely have to wait until someone creates a PR to fix this as CFX doesn't seem to care about this
What happened?
My Cloth Tool received some new features in its recent update, properly utilizing the R Cloth "Ped Alternate Variations" feature (pedalternatevariations.meta). This file basically defines a set of alternate models (YDD) per clothing that will applied when a certain other cloth is weared/applied on the ped. R uses this for all sorts of things but the most common one is for hairs to not glitch thru clothes that cover the head, like for example big masks and hoodies.
When now generating a cloth resource that properly creates all the alternate definitions for berds (big masks) or jbibs (hoodies) the game will crash. The reason for the crash is a internal game limit that is hardcoded to
160 ped alternate variations per cloth
, this limit is not related to the technical limitation of what is possible and seems like some console gen related limit. In theory this should be very easily patchable. Increasing this limit to 512 should be already more than enough.Why increasing it and not keep it the way it is? Every server that wants to utilize proper handling of hairs/not glitching thru their clothes will come across this issue very quickly. In before most people didn't knew how to properly use this feature or it was to inconvenient to use but now it is easily accessible and I am already getting tons of reports with this crash.
Here is some quick maths to showcase the limits;
Feel free to reach out to me on Discord
@DurtyFree
for more information if needed.Expected result
Loads the cloth alternate variations properly without game crash
Reproduction steps
For any cloth resource and detailed steps on how to reproduce it feel free to DM me (I don't want and also can't upload 2GB of cloth resource here)
Importancy
Crash
Area(s)
FiveM
Specific version(s)
FiveM 9654, Server 7290 Windows
Additional information
Some crashes on b3095
CfxCrashDump_2024_08_30_09_35_04.zip
CfxCrashDump_2024_08_30_09_52_01.zip