celguar / mangosbot-bots

Bot AI Core from ike3 for cmangos/mangos classic/tbc/wotlk
https://github.com/cmangos/playerbots
85 stars 42 forks source link

[Wotlk] Server Crash #346

Closed Twiggstar closed 5 months ago

Twiggstar commented 5 months ago

I downloaded wotlk and left it to run all default settings with nothing changed. After the server started i occasionaly get this request error and at the bottom line the server crashed.

2024-01-22 17:05:59 ERROR:Player::AddCooldown> Spell(30217) try to add and already existing cooldown 0? 2024-01-22 17:05:59 ERROR:Player::AddCooldown> Spell(2457) try to add and already existing cooldown 0? 2024-01-22 17:06:02 ERROR:Player::AddCooldown> Spell(28499) try to add and already existing cooldown 0? 2024-01-22 17:06:41 ERROR:Player::AddCooldown> Spell(2024) try to add and already existing cooldown 0? 2024-01-22 17:06:45 ERROR:Belegardis: items could not be enchanted, wrong item type equipped 2024-01-22 17:06:50 ERROR: DB-SCRIPTS: Process table dbscripts_on_creature_movement id 2130202, command 20 has buddy 21316 not found in range 5 of searcher Creature (Entry: 21302 Counter: 74601) DBGuid: 74601 (data-flags 7), skipping. 2024-01-22 17:06:58 ERROR:Player::AddCooldown> Spell(2024) try to add and already existing cooldown 0? 2024-01-22 17:07:01 ERROR:Player::AddCooldown> Spell(54572) try to add and already existing cooldown 0? 2024-01-22 17:07:31 ERROR:Player::AddCooldown> Spell(2457) try to add and already existing cooldown 0? 2024-01-22 17:07:31 ERROR:Player::AddCooldown> Spell(44055) try to add and already existing cooldown 30000? 2024-01-22 17:07:38 ERROR:Player::AddCooldown> Spell(42234) try to add and already existing cooldown 0? 2024-01-22 17:07:39 ERROR:Player::AddCooldown> Spell(42234) try to add and already existing cooldown 0? 2024-01-22 17:07:45 ERROR:Player::AddCooldown> Spell(43185) try to add and already existing cooldown 0? 2024-01-22 17:07:57 ERROR:Lammert: items could not be enchanted, wrong item type equipped 2024-01-22 17:08:01 GameEvent 61 "Stormwind City - Stockades Jail Break" removed. 2024-01-22 17:08:02 ERROR:Player::AddCooldown> Spell(17534) try to add and already existing cooldown 0? 2024-01-22 17:08:09 ERROR:Player::AddCooldown> Spell(28499) try to add and already existing cooldown 0? 2024-01-22 17:08:10 ERROR:Player::addSpell: nonexistent in SpellStore spell #75460 request. 2024-01-22 17:08:10 ERROR:Player::addSpell: nonexistent in SpellStore spell #75460 request. 2024-01-22 17:08:12 ERROR:Player::AddCooldown> Spell(22729) try to add and already existing cooldown 0? 2024-01-22 17:08:17 ERROR:Player::AddCooldown> Spell(44055) try to add and already existing cooldown 30000? 2024-01-22 17:08:17 ERROR:Hadewidis: items could not be enchanted, wrong item type equipped 2024-01-22 17:08:17 ERROR:Hadewidis: items could not be enchanted, wrong item type equipped 2024-01-22 17:08:25 ERROR:Gainko: items could not be enchanted, wrong item type equipped 2024-01-22 17:08:25 ERROR:Gainko: items could not be enchanted, wrong item type equipped 2024-01-22 17:08:52 ERROR:Player::AddCooldown> Spell(2457) try to add and already existing cooldown 0? 2024-01-22 17:09:02 ERROR:Player::AddCooldown> Spell(59657) try to add and already existing cooldown 30000? 2024-01-22 17:09:02 ERROR:Aimery: items could not be enchanted, wrong item type equipped 2024-01-22 17:09:07 ERROR:Klymene: items could not be enchanted, wrong item type equipped 2024-01-22 17:09:07 ERROR:Klymene: items could not be enchanted, wrong item type equipped 2024-01-22 17:09:10 ERROR:Player::AddCooldown> Spell(19769) try to add and already existing cooldown 0? 2024-01-22 17:09:44 ERROR:Player::AddCooldown> Spell(17534) try to add and already existing cooldown 0? 2024-01-22 17:09:49 ERROR:Player::AddCooldown> Spell(17534) try to add and already existing cooldown 0? 2024-01-22 17:10:01 GameEvent 41 "Leader of Jin'Alai, Kutube'sa" started. 2024-01-22 17:10:01 GameEvent 43 "Leader of Jin'Alai, Chulo" removed. 2024-01-22 17:10:03 ERROR:Player::AddCooldown> Spell(48266) try to add and already existing cooldown 0? 2024-01-22 17:10:10 ERROR:Player::AddCooldown> Spell(54572) try to add and already existing cooldown 0? 2024-01-22 17:10:31 ERROR:Player::AddCooldown> Spell(48266) try to add and already existing cooldown 0? 2024-01-22 17:11:11 ERROR: DB-SCRIPTS: WARNING: Process table dbscripts_on_relay id 20155, command 15 has no OTHER buddy 23691 found - maybe you need to update the script? 2024-01-22 17:11:11 ERROR: DB-SCRIPTS: WARNING: Process table dbscripts_on_relay id 20155, command 15 has no OTHER buddy 23691 found - maybe you need to update the script? 2024-01-22 17:11:11 ERROR: DB-SCRIPTS: Process table dbscripts_on_relay id 20155, command 15 call for non-unit, skipping. 2024-01-22 17:11:28 ERROR:Player::AddCooldown> Spell(42245) try to add and already existing cooldown 0? 2024-01-22 17:11:46 ERROR:Player::AddCooldown> Spell(43185) try to add and already existing cooldown 0? 2024-01-22 17:11:57 ERROR:Player Heudebrand(GUID: 1749) logged in to a reset instance (map: 609) and there is no area-trigger leading to this map. Thus he can't be ported back to the entrance. This might be an exploit attempt. 2024-01-22 17:11:57 ERROR:Player::AddCooldown> Spell(48266) try to add and already existing cooldown 0? 2024-01-22 17:12:00 ERROR:Player::AddCooldown> Spell(19769) try to add and already existing cooldown 0? 2024-01-22 17:12:00 ERROR:Player::AddCooldown> Spell(17534) try to add and already existing cooldown 0? 2024-01-22 17:12:01 GameEvent 59 "World's End Tavern - L70ETC Concert Announce" removed. 2024-01-22 17:12:01 ERROR:Player Biche(GUID: 1750) logged in to a reset instance (map: 609) and there is no area-trigger leading to this map. Thus he can't be ported back to the entrance. This might be an exploit attempt. 2024-01-22 17:12:01 ERROR:Player::AddCooldown> Spell(48266) try to add and already existing cooldown 0? 2024-01-22 17:12:06 ERROR:Player::AddCooldown> Spell(17534) try to add and already existing cooldown 0? 2024-01-22 17:12:08 ERROR: DB-SCRIPTS: Process table dbscripts_on_creature_movement id 2130202, command 20 has buddy 21316 not found in range 5 of searcher Creature (Entry: 21302 Counter: 74601) DBGuid: 74601 (data-flags 7), skipping. 2024-01-22 17:12:23 ERROR:Player::AddCooldown> Spell(2457) try to add and already existing cooldown 0? 2024-01-22 17:12:32 ERROR:Player Fremin(GUID: 1758) logged in to a reset instance (map: 609) and there is no area-trigger leading to this map. Thus he can't be ported back to the entrance. This might be an exploit attempt. 2024-01-22 17:12:32 ERROR:Player::AddCooldown> Spell(48266) try to add and already existing cooldown 0? 2024-01-22 17:12:42 ERROR:Player::AddCooldown> Spell(60299) try to add and already existing cooldown 0? 2024-01-22 17:12:43 ERROR:Xaxi: items could not be enchanted, wrong item type equipped 2024-01-22 17:12:43 ERROR:Xaxi: items could not be enchanted, wrong item type equipped 2024-01-22 17:12:45 ERROR:Player::AddCooldown> Spell(60299) try to add and already existing cooldown 0? 2024-01-22 17:12:58 ERROR:Player::AddCooldown> Spell(60299) try to add and already existing cooldown 0? 2024-01-22 17:13:00 ERROR:Player::AddCooldown> Spell(60299) try to add and already existing cooldown 0? 2024-01-22 17:13:14 ERROR:Player Berenike(GUID: 1762) logged in to a reset instance (map: 609) and there is no area-trigger leading to this map. Thus he can't be ported back to the entrance. This might be an exploit attempt. 2024-01-22 17:13:14 ERROR:Player::AddCooldown> Spell(48266) try to add and already existing cooldown 0? 2024-01-22 17:13:15 ERROR:Player::AddCooldown> Spell(11387) try to add and already existing cooldown 0? 2024-01-22 17:13:40 ERROR:Player::AddCooldown> Spell(54572) try to add and already existing cooldown 0? 2024-01-22 17:14:00 ERROR:Player::AddCooldown> Spell(48266) try to add and already existing cooldown 0? 2024-01-22 17:14:03 ERROR:Player::AddCooldown> Spell(17534) try to add and already existing cooldown 0? 2024-01-22 17:14:08 ERROR:Player::AddCooldown> Spell(28499) try to add and already existing cooldown 0? 2024-01-22 17:14:11 ERROR:Player::AddCooldown> Spell(48266) try to add and already existing cooldown 0? 2024-01-22 17:14:33 ERROR:Player::AddCooldown> Spell(2457) try to add and already existing cooldown 0? 2024-01-22 17:15:05 ERROR:Player Odela(GUID: 1785) logged in to a reset instance (map: 609) and there is no area-trigger leading to this map. Thus he can't be ported back to the entrance. This might be an exploit attempt. 2024-01-22 17:15:05 ERROR:Player::AddCooldown> Spell(48266) try to add and already existing cooldown 0? 2024-01-22 17:15:12 ERROR: DB-SCRIPTS: Process table dbscripts_on_creature_movement id 60401, command 18 called without buddy 604, but no source for search available, skipping. 2024-01-22 17:16:00 ERROR:Player::addSpell: nonexistent in SpellStore spell #75460 request. 2024-01-22 17:16:00 ERROR:Player::addSpell: nonexistent in SpellStore spell #75460 request.

Twiggstar commented 5 months ago

Through the whole time the server ran "ERROR:Player::addSpell: nonexistent in SpellStore spell #75460 request." was spammed pretty much in intervals of few seconds to few minutes.

Twiggstar commented 5 months ago

92f85f3emangosd.exe[22-1_17-16-11].dmp

Here is the crash dump file.

Twiggstar commented 5 months ago

The provided call stack indicates a crash in a Mangosbot project, specifically in the Boost Asio library, which is commonly used for asynchronous operations in C++. The crash seems to be related to thread handling in Boost Asio and involves waiting for an object.

The relevant parts of the call stack are as follows:

  1. Crash in Player::BindToInstance:

    • The crash occurred in the Player::BindToInstance function at line 17959 of the Player.cpp file.
    • The parameter load is a boolean with a memory address 0x76F9C0.
  2. Crash in DungeonMap::Add:

    • The crash also occurred in the DungeonMap::Add function at an unspecified line in the Map.cpp file.
    • Local variables include an instance of InstanceGroupBind with an unreadable memory address and a WorldPacket object.
  3. Crash in MovementHandler.cpp:

    • The crash is related to a lambda function in MovementHandler.cpp at line 187.
    • Local variables include a Map* pointer, a GenericTransport* pointer, and a BattleGround* pointer, all with unreadable memory addresses.
  4. Crash in WorldSession::HandleMoveWorldportAckOpcode:

    • The crash occurred in the WorldSession::HandleMoveWorldportAckOpcode function at line 257 of MovementHandler.cpp.
    • Local variables include a Difficulty enum and a WorldLocation object with coordinates and orientation.
  5. Thread Crash in Boost Asio:

    • The second call stack indicates a thread crash in the Boost Asio library.
    • The crash occurred in the timer thread function of the Boost Asio library, waiting for a single object.
    • The crash is related to Boost Asio's internal thread handling.

It seems that there might be a synchronization issue or a problem with threading in the Boost Asio library, possibly leading to a deadlock or a crash. Without the exact code and more context, it's challenging to pinpoint the exact cause. You may want to review the relevant parts of your codebase, paying attention to multithreading issues, object lifetimes, and potential race conditions.

Here are some steps you can take to troubleshoot the issue:

If possible, provide more context or code snippets related to the mentioned functions, especially the parts involving multithreading and Boost Asio usage, for a more accurate analysis.

This is from ChatGPT, hope this is useful.

Twiggstar commented 5 months ago

Ah more information i forgot to disclose. This is a repack i got from Github, i didn't compile this.

Twiggstar commented 5 months ago

I haven't had 2005 and 2008 VC Redist installed, i will re-check again with them installed but i am not sure that is the cause of this.