MT-CTF / capturetheflag

Capture the Flag game using the Minetest Voxel Engine
https://ctf.rubenwardy.com
81 stars 88 forks source link

Game freezes while loading a map #1191

Closed a-blob closed 11 months ago

a-blob commented 1 year ago

The game freezes in singleplayer while loading maps on some computers, which only happens while loading a second map after the game loads the first one after voting. This problem persists since version 3.3.0. When frozen, the player can move around but the game does not respond or teleport the player to the next map. If attempted to exit the game, Minetest freezes and crashes.

LoneWolfHT commented 1 year ago

How many cores do these computers have? Are you able to wait it out? It may just be taking a long time

farooqkz commented 1 year ago

I had a similar problem using a VPS for a testing server. The game crashes when the match begins upon barrier removal. The problem was with low memory and the OOM killing the process. The temporary workaround was adding more swap using swapfile.

The long term solution is modifying smaller chunks of the map for barrier removal.

a-blob commented 1 year ago

How many cores do these computers have?

The current one I'm using, which has the problem, has 10.

Are you able to wait it out? It may just be taking a long time

It does eventually load, but that's after waiting approximately 7 minutes.

farooqkz commented 1 year ago

How much free memory have you got on the computer?

a-blob commented 1 year ago

Around 10 GB.

farooqkz commented 1 year ago

Hmm then it probably is not the issue I was encountering

One more question:

During this 7 minute period, do all the 10 cores get used to maximum?

a-blob commented 1 year ago

No, they're pretty much idle.

a-blob commented 1 year ago

Funny enough, if you close the Minetest window during the 7 minutes, it continues running in the background. image

farooqkz commented 1 year ago

No, they're pretty much idle.

That's the problem then. Relying on a single core is making it take too long and crash. Are you on Windows?

a-blob commented 1 year ago

Yep

165135 commented 1 year ago

I have basically the same problem (When loading the second map in a mode or after that mode has already been run at least once.) The game freezes for about a 20 seconds to a minute, in the same fashion that was already described. Minetest isn't even using an entire core of cpu, practically none, and memory isn't a problem either...

src4026 commented 1 year ago

This could also be the issue I have been facing on a CTF server that is public.:thinking:

farooqkz commented 1 year ago

I never had this problem. All those who have got this problem on Windows? Does anybody from Linux have this problem?

src4026 commented 1 year ago

I never had this problem. All those who have got this problem on Windows? Does anybody from Linux have this problem?

When I run single player on Linux, I do not run into this issue. However, I think the server that Catars runs for me is also on Linux, need to verify that once with them.

a-blob commented 1 year ago

Some on Windows are also not experiencing this problem, so this might not be related to the OS.

a-blob commented 11 months ago

It seems like this is fixed now.