OnDynamicObjectMoved - endless calling
#1

Hello. My server very often hangs. I decided to find an infinite loop and saw that OnDynamicObjectMoved executes an infinite number of times, which leads to a hang.

When everything is fine, the objecttide parameter is normal, and when everything is bad and the server crashes, the parameter is very strange.

I can not understand how this public can get stuck with this level.
I tried calling MoveDynamicObject for 1 ms, but this did not work.


[debug] #1 00d5b260 in public OnDynamicObjectMoved (objectid=36474) - normal
[debug] #1 00d5b260 in public OnDynamicObjectMoved (objectid=301912240) - don't normal
[debug] #1 00d5b260 in public OnDynamicObjectMoved (objectid=0) - don't normal


In this case, the entire callback is executed and not its individual parts. There are several cycles inside this callback, but they are all executed, and callback reacts again, which leads to a hangup.

Also in my script, OnObjectMoved is used separately for several objects created through CreateObject, but according to the tests made, it has no connection with OnDynamicObjectMoved at all.

To find an infinite loop, I used this:

PHP код:
#define for___loop(%1;%2;%3) \
    
for(%1;%2;%3)
#define while___loop(%1) \
    
while(%1
I ask your help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)