Before continuing, please make sure that your issue/crash has not been filed before on this forum. If it has, please provide additional information in the existing forum topic by filling out the template there.
To provide valuable feedback for OneSync issues or crashes, please fill out the following template as much as possible.
Client
Using canary? Yes
Windows version: 10 ( 21H1 19043.928)
System specifications: 16gig ram cpu i7 9700k rx580
Server
Operating system: same as above
Artifact version: 3854
IP address: local
Resources:
System specifications: same as above
Incident
Summary: NetworkGetFirstEntityOwner native is not working and crashes the server
Expected behavior: NetworkGetFirstEntityOwner work
Actual behavior: =================================================================
Native Crash Reporting
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Managed Stacktrace:
=================================================================
Steps to reproduce:
Server/Client? Server
Files for repro (if any):
client
Citizen.CreateThread(function()
print("OK")
while true do
local player = PlayerId()
if IsPedShooting(PlayerPedId()) then
local _, entity = GetEntityPlayerIsFreeAimingAt(player)
if entity > 0 then
print("DoesEntityExist: " .. tostring(DoesEntityExist(entity)))
print("NetworkGetNetworkIdFromEntity: " .. NetworkGetNetworkIdFromEntity(entity))
TriggerServerEvent("test:test" , entity , NetworkGetNetworkIdFromEntity(entity))
end
end
Citizen.Wait(0)
end
end)
server
RegisterNetEvent('test:test')
AddEventHandler('test:test', function(ent , net_ent)
--print(DoesEntityExist(ent))
print(tostring(DoesEntityExist(NetworkGetEntityFromNetworkId(net_ent))))
Citizen.Wait(1000)
--print(NetworkGetFirstEntityOwner(ent))
print(NetworkGetFirstEntityOwner(NetworkGetEntityFromNetworkId(net_ent)))
end)
Error screenshot (if any):
.dmp files/report IDs:
Any additional info: the server is using these args : +set onesync_population false +set svgui_disable false +set onesync_forceMigration true +set sv_enforceGameBuild 2189