Server Freeze on Cache Destroy #1587
-
Hello there, I was hoping someone could help me with this. Our server is running Hearts and Minds on Takistan, but when destroying a cache, the server seems to freeze right before it gets destroyed. Nothing stands out in the RPT from what I can see, as the server freezes the second it gets destroyed. We've used AT Launchers, and demolition blocks to destroy the caches. Sometimes it's fine, sometimes it crashes. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Happens on clientside as well, game freezes. Nothing interesting showing in RPT |
Beta Was this translation helpful? Give feedback.
-
Did some further debugging, and got a fresh mission file from the github. Set on Altis, and tested it on there. Destroyed a couple of Ammocaches without any problem. All on clientside. It seems that somehow Takistan causes the game to crash when blowing up a cache.. At least, it does for me, and the server my community hosts. |
Beta Was this translation helpful? Give feedback.
-
Found the issue Core > FNC > Cache > find_pos.sqf L42, [] call btc_cache_fnc_find_pos seems to run in a loop if it can not find a suitable building to place a new Cache inside of. Putting: sleep 1; before btc_cache_fnc_find_pos gets called seems to resolve the problem. |
Beta Was this translation helpful? Give feedback.
-
Happy to help! |
Beta Was this translation helpful? Give feedback.
Hello,
Thank you a lot for this valuable analyse
The
sleep
will not work becauuse this code is executed in unscheduled environnementThis will should fix the issue: #1588
Cheers