IRL2 / nanover-rs

Other
0 stars 0 forks source link

Server still using CPU after "Stop server"? #198

Open Ragzouken opened 4 months ago

Ragzouken commented 4 months ago

Tested with GUI client on windows. Stopping the server after using it doesn't seem to always stop using CPU. Seems to add up over multiple runs until I restart the program. Could be a consequence of unity/python side not closing connections properly (but I think "Stop server" should disregard this).

jbarnoud commented 4 months ago

I am looking at this but I cannot reproduce the issue. Can you give me more details on how you get it and how you detect it?

Ragzouken commented 4 months ago

Unfortunately I don't think I can reproduce it consistently either, but it's something I noticed when doing many runs of SubtleGame including restarting the vr client and python client and rust server in various orders. Potentially both clients are exiting very uncleanly. What I actually see is that eventually the rust server is using a lot of CPU, and by restarting the program I can reduce this to a normal quantity again, but simply stopping the server doesn't seem to drop it at all.