Winds-Studio / Leaf

A Paper fork aim to find balance between performance, vanilla and stability
Other
324 stars 39 forks source link

Mob AI Issues #102

Open KobeBryant114514 opened 2 months ago

KobeBryant114514 commented 2 months ago

Is there an existing issue for this?

What behaviour is observed?

After the server has been running for a period of time (usually more than 10 hours), the Mob AI may become abnormal. Specifically, the mob AI disappears, and the mobs, especially monsters, does not move. Restart the server can solve this issue.

服务器运行一段时间后,生物AI会消失(大概需要运行十几个小时才会出现) 具体表现为,生物不运动,正常刷怪但是怪物不动。 重启服务器能解决,但是一段时间后还会出现。

Expected behaviour

The mob AI will not disappear.

生物AI不应该出现问题。

To Reproduce

  1. Run the server, and invite some players to joins this server to play.
  2. Wait for about a dozen hours.
  3. The mob AI will disappear.

正常运行服务器,服务器大概有20-35人游玩。运行一段时间,大概十几个小时,就会出现这个问题,不知道原因。以前运行其它服务端没有出现过这个问题。

Plugin list

[18:56:50 INFO]: Paper Plugins: (0): [18:56:50 INFO]: Bukkit Plugins: (16): [18:56:50 INFO]: - AngelChest, Chairs, CoreProtect, Dimensions, floodgate, GreenChunk, Hurricane, LuckPerms, Multiverse-Core, Multiverse-Inventories [18:56:50 INFO]: Multiverse-NetherPortals, PreLoginWhitelist, ProtocolLib, ViaBackwards, ViaRewind, ViaVersion

Leaf Version

[18:57:06 INFO]: This server is running Leaf version 1.21.1-DEV-ver/1.21.1@aad915a (2024-08-11T12:31:06Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT) * You are 3 version(s) behind Download the new version at: https://github.com/Winds-Studio/Leaf Previous: 1.21-DEV-d4fcc79 (MC: 1.21)

Error log (if applicable)

No response

Configuration

No response

Dreeam-qwq commented 2 months ago

请提供Leaf, paper配置 并尝试在purpur上测试

KobeBryant114514 commented 2 months ago

config.zip

配置文件已提供

我会尝试用Purpur运行测试,找个问题大概要十几个小时才会出现,我会在大概一天后给出测试结果

BAD7777 commented 2 months ago

After updating to 1.21.1, these issues began, along with serious performance problems after several hours. The TPS is low.

Dreeam-qwq commented 2 months ago

After updating to 1.21.1, these issues began, along with serious performance problems after several hours. The TPS is low.

Using Paper or Leaf, and can you provide spark profiler when server is lagging?

BAD7777 commented 2 months ago

After updating to 1.21.1, these issues began, along with serious performance problems after several hours. The TPS is low.

Using Paper or Leaf, and can you provide spark profiler when server is lagging?

I can't provide it right now. However, I had to revert to Purpur 1.21.1, and the TPS issue was resolved.

Dreeam-qwq commented 2 months ago

After updating to 1.21.1, these issues began, along with serious performance problems after several hours. The TPS is low.

Using Paper or Leaf, and can you provide spark profiler when server is lagging?

I can't provide it right now. However, I had to revert to Purpur 1.21.1, and the TPS issue was resolved.

So i'm not sure it's Leaf's fault you said and I can't solve the issue your encountered.

Dreeam-qwq commented 2 months ago

image image

Can't replicate, all mobs (animals and monsters) look fine, can move and also have random behaviors.

KobeBryant114514 commented 2 months ago

之前我服务器tps一直在20.0左右,基本上没变化,所以说我认为之前提到的AI问题和tps无关。 Purpur能否复现仍在测试。

KobeBryant114514 commented 2 months ago

此问题经过一日测试,似乎是leaf的生物异步寻路导致的,关闭此配置暂时未出现该问题。

还不能完全确定是由此引起的,我正在进一步测试,我会继续反馈。

KobeBryant114514 commented 2 months ago

此问题经过一日测试,似乎是leaf的生物异步寻路导致的,关闭此配置暂时未出现该问题。

还不能完全确定是由此引起的,我正在进一步测试,我会继续反馈。

基本上可以确认,关闭leaf异步寻路之后,不再出现这个问题

Mamsikas commented 2 months ago

same issue but their AI does not disappear completely, they continue to hit the player but stand still (I can't replicate this but players on my server have encountered this several times and have shown proof)

KobeBryant114514 commented 2 months ago

same issue but their AI does not disappear completely, they continue to hit the player but stand still (I can't replicate this but players on my server have encountered this several times and have shown proof)

You are right, the mob AI will not disappear completely. They can attack players, and the undead mobs will burn under the sunlight. But the mobs stood still in place, not moving.

BAD7777 commented 2 months ago

image image The problem with AI is 100%. Mobs hang up after 16-20 hours

Dreeam-qwq commented 2 months ago

image image The problem with AI is 100%. Mobs hang up after 16-20 hours

What's the problem? and if the server tps is low, please send spark profiler instead of only a screenshot without any sense.

BAD7777 commented 2 months ago

image image The problem with AI is 100%. Mobs hang up after 16-20 hours

What's the problem? and if the server tps is low, please send spark profiler instead of only a screenshot without any sense.

It's just that the players send a screenshot, and I saw it a little later. If there is another problem, I will send it.

pjindras commented 2 months ago

I have also seen lot of issues with mob AI now, sometimes they are not moving, sometimes they are very lobotomized. Sometimes it is fine.

Dreeam-qwq commented 2 months ago

I have also seen lot of issues with mob AI now, sometimes they are not moving, sometimes they are very lobotomized. Sometimes it is fine.

Not moving is like, looks like stuck in some seconds, then can move, or not moving for a long time?

pjindras commented 2 months ago

sometimes they are not moving until I hit them, sometimes I stay next to zombie for example and he is not attacking me, only watching me

They stuck for longer time. I will send a

https://github.com/user-attachments/assets/2ec5ddf2-9cf6-429e-b6ea-3759e879ff6b

https://github.com/user-attachments/assets/fb4d385a-0687-4673-92b5-4c19866bddae

https://github.com/user-attachments/assets/2e742391-3cee-469a-926e-1072900ab4ff

video.

pjindras commented 2 months ago

https://github.com/user-attachments/assets/458d6cd4-2e67-4f9f-b901-311177d8c225