-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
SetVehicleDoorsLocked (RPC) native sometimes crashes client. #2190
Comments
Can you post a crash dump for this? |
Yes, I can, I am not sure this native caused all of them, because I don't know which Editor can open dmp files. |
None of these seem to be related |
Was this the only change? If so, the implications seem a bit gross. Would you happen to have any other dumps? Preferably ones that include the functions from your original message (i.e.,
The |
I personally don't have problems with this native (used it for a while, but not at the moment) and don't recall ever seeing a crash like this (have metrics to keep track of all crashes) But I don't use this native on population vehicles, so non script entities, and only on script entities, so that is probably the reason for it. I'm wondering if checking if GetEntityScript exists on the server side before calling the native could work to "resolve (avoid)" the crash, since it appears to be due to the script Guid, since the rpc natives request the script guid from an entity. But as said above, a crash dump would probably easily prove this point, since the stack trace would include the code from fivem calling the getScriptGuidFromEntity in the rpc natives. |
This issue has not been updated in a while. Were any more dumps related to this collected? |
We are using
SetVehicleDoorsLocked
native atserver-side
to lock all population vehicle when they are spawned and triggered theentityCreated
event. Not all the clients are crashing at same time, everyone crashes different time.We are checking that entity has already an owner before calling this native, we have built a workaround this native but it uses way too much event triggering to client, that is what we want to optimalize. (Triggering the entity owner to lock the vehicle's doors.)
What we use:
- Server Linux Artifact: 6645
- GameBuild: 2802 (we used older versions as well.)
- Tried released and canary version as well
- Lua 5.4
The text was updated successfully, but these errors were encountered: