[Bug] Using server KVP getters with no-sync setters can crash the server #45
D4isDAVID
started this conversation in
[BUG] FiveM for GTAV Enhanced
Replies: 1 comment 1 reply
|
Seems fixed as of Code: local time = tostring(os.time())
print('setting', time)
SetResourceKvpNoSync('test', time)
print('getting', GetResourceKvpString('test'))
print('flushing')
FlushResourceKvp()Legacy output (brand new db): Enhanced output (brand new db): |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Using
GetResourceKvp...functions after runningSetResourceKvp...NoSyncbefore or immediately after runningFlushResourceKvpcrashes the server in Enhanced, when it used to work in Legacy. Sometimes with/without a crash message.Issue type
Server
Repro rate
Often
Server build version
FXServer-early-access b92 win32
OS
No response
CPU
No response
GPU
No response
RAM
No response
Storage type
None
Connection type
None
ISP and bandwidth
No response
DxDiag
No response
Network graph
No response
Platform
Windows
OS version / distribution
Windows 11 Home 25H2
CPU
12th Gen Intel(R) Core(TM) i7-12700F
RAM
64 GB DDR5
Using txAdmin?
No
Hosting provider
Self-hosted
Machine type
Dedicated
/perf endpoint output
No response
DDoS protection
No response
ulimit -n value (Linux only)
No response
Docker Compose file (Docker only)
No response
Steps to Reproduce
Run:
Or
Expected Behavior
The setters and getters work properly before or immediately after flushing.
Actual Behavior
The server may crash when running the getter.
Evidence
Case 1
Example script:Output:
Case 2
Example script:Output:
Additional Context
Adding a
Wait(0)after usingFlushResourceKvp()makes the getter work fine.All reactions