liyunfan1223 / mod-playerbots

AzerothCore Playerbots Module
https://discord.gg/NQm5QShwf9
GNU Affero General Public License v3.0
283 stars 153 forks source link

When MapUpdate.Threads>1 or ThreadPool>2 playbots are very prone to crashing when there is more than one real player in the server #715

Open zbhcn opened 4 hours ago

zbhcn commented 4 hours ago

When configuring the option MapUpdate in the worldserver. conf file in the Azerothcore core When MapUpdate.Threads>1 or ThreadPool>2, playbots are very prone to crashing when there is more than one real player in the server. I think it is most likely because playbots do not support multithreading. The occurrence of crashes often occurs between 15 and 60 minutes of normal system operation. I have tested this issue repeatedly more than ten times, and crashes occur every time

zbhcn commented 4 hours ago

and When MapUpdate.Threads=1 and ThreadPool=2, no more crashes occur

PaoloBenigni commented 2 hours ago

How many bots are you running? What are your system specs for the server? What is your memory usage? What about diff?

Many people routinely run 3-4 mapupdate threads.

zbhcn commented 2 hours ago

How many bots are you running? What are your system specs for the server? What is your memory usage? What about diff?

Many people routinely run 3-4 mapupdate threads.

If it is not related to the parameter 'MapUpdate. Threads>1', then it must be caused by ThreadPool>2.

5929c8f0c7a0e2aed6cf0968e02db207 3ba9fecde69a62c45c941aca91121daa

zbhcn commented 2 hours ago

Hardware Processor: AMD EPYC 74F3 24-Core Processor
Number Of Processors: 16 Physical Memory: 16776756 KB (Available: 9117480 KB) Commit Charge Limit: 19791412 KB

Operation System Windows Server 2016 Datacenter (Version 10.0, Build 20348)

//===================================================== Exception code: C0000420 出现声明故障。

Assertion message:

----------------------------------------------------------------------

ABORTED

Location 'G:\azerothcore-wotlk-Playerbot\src\server\apps\worldserver\Main.cpp:650' Function 'FreezeDetector::Handler' Message 'World Thread hangs for 240161 ms, forcing a crash!'