[Bug] Client crash: Error: Script error in Native GetClosestObjectOfType: exception at game RVA 0x1493AE #333
Replies: 3 comments 2 replies
|
To be honest, this is most likely related to these: Maybe this one too: #309 Seems like anything with objects on client-side is unstable for some reason. Sometimes it crashes on GetClosestObjectOfType. Sometimes on FindNextObject, sometimes on RemoveObject (#309), GetGamePool('CObject') etc. The likelyhood of crashing increases greatly when driving around the city at high speeds while calling these natives in an interval (eg 100ms, or 500ms, or faster) I had Claude dig through this extensively, reading client crash dumps and whatnot. I'm not claiming this as a single-source-of-truth, since we all know AI can output the weirdest shit. However, regardless of that, the output may be valid, so here is a bunch of it: So ya, take it with a grain of salt. But regardless of this, considering multiple people have reported crashes in regards to client objects/pools over the past week, I do think these issues are worth investigating. Basically what it comes down to right now is that no-one can reliably use CObject pool scanning and/or use client-side object natives at all (reliably). |
|
We also assume its related to the same issue as #133. |
|
A fix for this bug has been implemented and is available in the August 4 patch. Please try again and let us know if the issue persists. Thanks for your help! |
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
Update: see first reply for more info
Causes a game crash when done in an interval on JS clientside.
Error: Script error in Native GetClosestObjectOfType: exception at game RVA 0x1493AE
It does not happen every time. For us, it happened on
prop_atm_02, spawned by the GTA world (not custom script object). But seems to happen randomly or so.I can provide more details if necessary.
Issue type
Client
Repro rate
Always
Server build version
b104 (hotfix 7)
OS
Windows 11
CPU
Intel Core i7-12700K
GPU
NVidia RTX 5070TI
RAM
96GB DDR4
Storage type
SSD NVMe
Connection type
Ethernet
ISP and bandwidth
1GB up/down Glass Fiber
DxDiag
No response
Network graph
No response
Platform
None
OS version / distribution
No response
CPU
No response
RAM
No response
Using txAdmin?
None
Hosting provider
None
Machine type
None
/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
2.Wait for crash
Expected Behavior
Should not crash
Actual Behavior
Crashes client
Evidence
No response
Additional Context
We are using this in combination with draw outline native to highlight interactables in the world
All reactions