vmangos / core

Progressive Vanilla Core aimed at all versions from 1.2 to 1.12
GNU General Public License v2.0
679 stars 487 forks source link

🐛 [Bug] Crash when WSG queue pops up (after battlebots are added) #2336

Closed shudza closed 10 months ago

shudza commented 10 months ago

🐛 Bug report

Server crashes when WSG queue pops up (only tested with battlebots)

Expected behavior

Server doesn't crash and I can enter WSG with battlebots

Steps to reproduce

  1. Start server
  2. Login with admin level 6 account
  3. Queue for WST
  4. .battlebot add warsong horde/alliance x10
  5. Queue pops up
  6. Server crashes

Version & Environment

Server info: Archlinux Mysql 5.6 Build command: cmake .. -DCMAKE_INSTALL_PREFIX=/mangos/run -DUSE_EXTRACTORS=ON -DUSE_STD_MALLOC=OFF -DDEBUG_SYMBOLS=ON -DUSE_ANTICHEAT=ON

Client Version: 1.12.1

Commit Hash:
f450c08f7edaaa8a46d4889656566b4d49d1e0a9 (latest)

OS Client: Arch linux (wine) OS Server: Arch linux

Crashlog

/mangos/src/game/Objects/Object.cpp:2242: Error: Assertion in GetMap failed: m_currMap
/mangos/bin/mangosd(_ZN3Map6RemoveI10GameObjectEEvPT_b+0x422) [0x556c7bc6e942]
/mangos/bin/mangosd(_ZN3Map28RemoveAllObjectsInRemoveListEv+0xed) [0x556c7bc6235d]
/mangos/bin/mangosd(_ZN10MapManager28RemoveAllObjectsInRemoveListEv+0x2a) [0x556c7bc7112a]
/mangos/bin/mangosd(_ZN5World6UpdateEj+0x679) [0x556c7baca939]
/mangos/bin/mangosd(_ZN13WorldRunnableclEv+0x82) [0x556c7ba37702]
/usr/lib/libstdc++.so.6(+0xe1943) [0x7fee4c4e1943]
/usr/lib/libc.so.6(+0x8c9eb) [0x7fee4c2aa9eb]
/usr/lib/libc.so.6(clone+0x44) [0x7fee4c32e654]

Received SIGSEGV
terminate called after throwing an instance of 'std::runtime_error'
  what():  m_currMap
/usr/lib/libc.so.6(abort+0x174) [0x7fee4c244555]
/usr/lib/libstdc++.so.6(+0x9ca6f) [0x7fee4c49ca6f]
/usr/lib/libstdc++.so.6(+0xb011c) [0x7fee4c4b011c]
/usr/lib/libstdc++.so.6(+0xb0189) [0x7fee4c4b0189]
/usr/lib/libstdc++.so.6(+0xb03ed) [0x7fee4c4b03ed]
/mangos/bin/mangosd(+0x2c5981) [0x556c7b9ae981]
/mangos/bin/mangosd(_ZN10GameObject15SaveRespawnTimeEv+0x38) [0x556c7bce9548]
/mangos/bin/mangosd(_ZN3Map6RemoveI10GameObjectEEvPT_b+0x422) [0x556c7bc6e942]
/mangos/bin/mangosd(_ZN3Map28RemoveAllObjectsInRemoveListEv+0xed) [0x556c7bc6235d]
/mangos/bin/mangosd(_ZN10MapManager28RemoveAllObjectsInRemoveListEv+0x2a) [0x556c7bc7112a]
/mangos/bin/mangosd(_ZN5World6UpdateEj+0x679) [0x556c7baca939]
/mangos/bin/mangosd(_ZN13WorldRunnableclEv+0x82) [0x556c7ba37702]
/usr/lib/libstdc++.so.6(+0xe1943) [0x7fee4c4e1943]
/usr/lib/libc.so.6(+0x8c9eb) [0x7fee4c2aa9eb]
/usr/lib/libc.so.6(clone+0x44) [0x7fee4c32e654]

terminate called recursively
ratkosrb commented 10 months ago

The crash log you posted does not have anything to do with bots, but I fixed the issue there.