Colliders Server Thread Aborted crash?

Started by ninekorn, May 03, 2019, 05:02:16 PM

ninekorn

Hi,

Here is the image of the current bug I am facing. Is it due to too many colliders on the same object?


ai_enabled

Hi,

this is really strange. The physics collision test took over 9 seconds or so, this is an extreme case.
If this issue is reproducible, you need to try to simplify the physics.
Please note that it's always a good idea to use simple shapes (rectangles and circles) instead of polygons.

Regards!

ninekorn

I didn't remember that I originally had posted this thread here. I am still having some issues it seems. I have removed ALL polygon colliders of all XML station Interior files. But it did crash again with the same thing. What could be causing this issue. I mean i am on some or all stations using more than 30 colliders combined. I can't really lower that number unless I refactor all of the station interiors but again I don't even know what to model them too because I don't know where the bug is coming from. I am re-testing tonight with ALL polygons removed but its a needle in a haystack. I mean all stations have a concave shape but no colliders themselves are concave since I am now using only circle colliders mixed with Box Colliders. Only the mining station and science station have circle colliders, all of the others have box colliders ONLY.

ai_enabled

Hello!
Please share the screenshots of the error, probably there is another error and you're looking in the wrong direction.

Regards!

ninekorn

got another screenshot here. The error at the top has a different syntax.


ai_enabled

Hmm, this is weird. Please upload the MPK file and share the link, I will take a quick look.

ninekorn

The file is here:
https://drive.google.com/open?id=1U6Cb9a3whCSIhQdS13sKkiUPodK5ZdfT

ninekorn

#7
Hi,

I was so frustrated about this bug yesterday that I had put that station Interior projekt on the shelf. So today I rebuilt the drone MOD completely WITHOUT the station interior but forgot to remove the custom spawning of the turrets... The server console went red again with somewhat of a similar crash with the main thread hanging... I didnt take a screenshot but that might mean that the problem is coming from the script where i am spawning the turrets and where I am spawning the repair/refuel platforms, in the script "BaseGenerator.js" .I have commented out all of that code and will keep testing tonight... I really hope a thousand percent that the mistake is mine somewhere in that code, it would mean that i will be able to find it and fix it.

ninekorn

#8
Very sorry for the commotion about this. It seems that the problem really was on my end. Sorry for "snatching" you from Cryofall to look into this but it seems as it turns out, this turn of events made me find the bug. It really seems to be in the scripts basegenerator or NPCGenerator where the turrets are spawned that the bug is and it's my fault. But I must admit, now that the station interior mod is rolling, not yet updated on steam, and that I can finally spawn drones at will, the development can continue. thank you

EDIT: 2019-06-18 - 02h57am - Nevermind... the crash is still there...


EDIT: 2019-06-18 - 02h57am -All of the station colliders had a mass of 8. I changed that to 1. The drones colliders were 1000 of mass, i changed that to 1. I removed the turrets and repair/refuel platforms from spawning. testing now for stability .

And after doing that I got this error.




Also I am using a hull that has absolutely no vertices and no faces and use it for the NPC At Base. I just removed it for testing.

ai_enabled

Hello!

I've checked your MPK source code and it doesn't have any polygon-shaped colliders used anywhere.
Are you certain you're using only this MPK and your Core.cpk is not modified?

We're using polygon physics to define physics for some asteroids (probably all asteroids), hulls (though only a few of them), and stations in Core.cpk. So the issue might be related to our physical shapes having a calculation problem when they collide with the physical shapes you've defined in your mod.

I will try using your MPK to try to locate the issue.

Regards!

ai_enabled

I've tried your MPK but I cannot reproduce any issues. It works flawlessly here as far as I've tested (flying in shuttle around and inside the first base).

Please let me know any exact steps I could use to reproduce the issue.

Also, please pay attention to the "physics_ms" performance stat in the game log. If it's going much higher than 1.00 milliseconds something is probably wrong.
(https://imgur.com/CGnJr7g)

ninekorn

Hi ai_enabled,

Thank you for investigating. The bug is not happening at a precise moment. It can happen at 30 seconds gameplay or at 10 minutes gameplay for no apparent reasons. I removed all of the polygon colliders from the station interior xml files, I removed the turret spawning and repair/refuel platforms spawning and still, the bug was apparent. I have got no clue on what is creating the error.

I have just released the part 2.0 of 9.0 of the 9sMODs series without the station interior, but I am still using 8 different rotations for all stations. It seems that the bug is not apparent when I am only using the original station colliders... But also, I made sure to use the original copies of the station XML files with only modifying their name and rotation and size. Next, I will try to reincorporate one by the one the station interiors to see if it can handle it. Thank you again,

Don't continue testing as again, its a periodic bug that happens and I have got no clue on how to reproduce it faster. You will lose time working on Cryofall if you start playing Void Expanse just for this bug. When I will have a more pinpoint way of knowing where the bug comes from, I will update the thread here.

ai_enabled

I see. So the issue is random...
Ok, please let me know if you will stump on it again and then send me your latest server log file to check.

Regards!

ninekorn

Hi,

I have just tested again with the station interior and somehow, the crash only happened once I changed system. Here are the logs. Could it be that jumpgates or turrets jumpgates are spawning inside of the station colliders?

https://drive.google.com/open?id=1nm59bY0oZ748a6k519PZgSvJHM6Gpby6

ai_enabled

Yes, it's very likely to be related to the distance from stations to asteroids and any other objects (which are using polygon shapes to define their physics).

I've tested the MPK you've uploaded but with it, I cannot reproduce any issue when I teleport to other systems (tested several star systems).