LandSandBoat / server

:sailboat: LandSandBoat - a server emulator for Final Fantasy XI. Just an X-34 landspeeder out for a drive.
https://landsandboat.github.io/server/
GNU General Public License v3.0
277 stars 543 forks source link

Divine might crashed my server and burned my crops. #1215

Closed TeoTwawki closed 1 year ago

TeoTwawki commented 2 years ago

Additional Information (Steps to reproduce/Expected behavior) : Got us a spicy one. Divine might isn't feeling well, I think it needs a doctor.

Steps to repro:

  1. log in a GM character
  2. !zone ru \<tabkey> and go to sky. zone into the bcnm zone you land at (this will be the entrance to Ark Angel Hume's battle.
  3. Enter Divine Might.
  4. watch as the into CS plays out where the ark's do their power posing.
  5. watch as you get the "skip event" prompt. Do not skip, let it play.
  6. watch as game plays cs for having beaten Ark Angel Hume - not the divine might version the solo ark battle.
  7. you will now land at the battle exit as if you won. but you will still have battlefield status on.
  8. !pos -13.833 -18.716 13.796 to get back to the arena, where ALL FIVE ARKS are still up. Only Hume can be engaged or targeted.
  9. Engage Hume.
  10. Enjoy the Apocalypse as the server dies in nuclear fire.
    [01/25/22 20:30:56:953][critical][stacktrace] ================================================================
    [01/25/22 20:30:56:953][critical][stacktrace] !!! CRASH !!!
    [01/25/22 20:30:56:953][critical][stacktrace] Exception DBG_PRINTEXCEPTION_WIDE_C (0X4001000A) occured!
    [01/25/22 20:30:56:953][critical][stacktrace] A crash dump has been created: <repo root>/dmp/topaz_game_64.exe_2022_01_25_20_30_49.dmp
    [01/25/22 20:30:56:953][critical][stacktrace] ================================================================
    [01/25/22 20:30:56:953][critical][stacktrace] Process Name: topaz_game_64.exe
    [01/25/22 20:30:56:953][critical][stacktrace] Process Uptime: 43 hours
    [01/25/22 20:30:56:953][critical][stacktrace] Process Memory Usage 1861MiB / 8192MiB
    [01/25/22 20:30:56:953][critical][stacktrace] Git SHA: 62a60ae7c0cfe74001266a83f4b2f2b1c090f4ef-dirty
    [01/25/22 20:30:56:953][critical][stacktrace] Git Date: Sun Jan 23 13:04:34 2022
    [01/25/22 20:30:56:953][critical][stacktrace] Git Branch: LIVE
    [01/25/22 20:30:56:953][critical][stacktrace] Git Subject: Update some messaging, modify autojail conditions to eliminate a false positive.
    [01/25/22 20:30:56:953][critical][stacktrace] ================================================================
    [01/25/22 20:30:59:210][critical][stacktrace] at RaiseException, address 0x7FFC383C92B0.
    [01/25/22 20:30:59:210][critical][stacktrace] in C:\Windows\System32\KERNELBASE.dll
    [01/25/22 20:30:59:211][critical][stacktrace] at OutputDebugStringW, address 0x7FFC383C9350.
    [01/25/22 20:30:59:211][critical][stacktrace] in C:\Windows\System32\KERNELBASE.dll
    [01/25/22 20:30:59:211][critical][stacktrace] at unlock_locales, address 0x7FFC141565E0.
    [01/25/22 20:30:59:211][critical][stacktrace] in C:\Windows\SYSTEM32\ucrtbased.dll
    [01/25/22 20:30:59:211][critical][stacktrace] at VCrtDbgReportA, address 0x7FFC14168D40.
    [01/25/22 20:30:59:211][critical][stacktrace] in C:\Windows\SYSTEM32\ucrtbased.dll
    [01/25/22 20:30:59:211][critical][stacktrace] at CrtDbgReport, address 0x7FFC141686E0.
    [01/25/22 20:30:59:211][critical][stacktrace] in C:\Windows\SYSTEM32\ucrtbased.dll
    [01/25/22 20:31:00:521][critical][stacktrace] at std::array<std::array<unsigned char,23>,64>::operator[] in C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\array: line: 554: address: 0x7FF742AD6FA0
    [01/25/22 20:31:00:539][critical][stacktrace] at battleutils::GetMaxSkill in C:\repository\Demiurge\LIVE\src\map\utils\battleutils.cpp: line: 308: address: 0x7FF742AC08D0
    [01/25/22 20:31:00:780][critical][stacktrace] at CLuaBaseEntity::getMaxSkillLevel in C:\repository\Demiurge\LIVE\src\map\lua\lua_baseentity.cpp: line: 7766: address: 0x7FF74284B570
    [01/25/22 20:31:00:808][critical][stacktrace] at sol::member_function_wrapper<unsigned short (__cdecl CLuaBaseEntity::*)(unsigned char,unsigned char,unsigned char),unsigned short,CLuaBaseEntity,unsigned char,unsigned char,unsigned char>::call<unsigned short (__cdecl CLuaBaseEntity::*&)(unsigned char,unsigned char,unsigned char),unsigned char,unsigned char,unsigned char> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 16279: address: 0x7FF74297DE40
    [01/25/22 20:31:00:842][critical][stacktrace] at sol::member_function_wrapper<unsigned short (__cdecl CLuaBaseEntity::*)(unsigned char,unsigned char,unsigned char),unsigned short,CLuaBaseEntity,unsigned char,unsigned char,unsigned char>::caller::operator()<unsigned short (__cdecl CLuaBaseEntity::*&)(unsigned char,unsigned char,unsigned char),unsigned char,unsigned char,unsigned char> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 16285: address: 0x7FF74294ED40
    [01/25/22 20:31:00:863][critical][stacktrace] at sol::stack::stack_detail::eval<sol::member_function_wrapper<unsigned short (__cdecl CLuaBaseEntity::*)(unsigned char,unsigned char,unsigned char),unsigned short,CLuaBaseEntity,unsigned char,unsigned char,unsigned char>::caller,unsigned short (__cdecl CLuaBaseEntity::*&)(unsigned char,unsigned char,unsigned char),CLuaBaseEntity &,unsigned char,unsigned char,unsigned char> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 15029: address: 0x7FF74294EC80
    [01/25/22 20:31:00:864][critical][stacktrace] at sol::stack::stack_detail::eval<sol::member_function_wrapper<unsigned short (__cdecl CLuaBaseEntity::*)(unsigned char,unsigned char,unsigned char),unsigned short,CLuaBaseEntity,unsigned char,unsigned char,unsigned char>::caller,unsigned char,2,unsigned short (__cdecl CLuaBaseEntity::*&)(unsigned char,unsigned char,unsigned char),CLuaBaseEntity &,unsigned char,unsigned char> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 15042: address: 0x7FF74294EAF0
    [01/25/22 20:31:00:864][critical][stacktrace] at sol::stack::stack_detail::eval<sol::member_function_wrapper<unsigned short (__cdecl CLuaBaseEntity::*)(unsigned char,unsigned char,unsigned char),unsigned short,CLuaBaseEntity,unsigned char,unsigned char,unsigned char>::caller,unsigned char,unsigned char,1,2,unsigned short (__cdecl CLuaBaseEntity::*&)(unsigned char,unsigned char,unsigned char),CLuaBaseEntity &,unsigned char> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 15042: address: 0x7FF74294E9A0
    [01/25/22 20:31:00:884][critical][stacktrace] at sol::stack::stack_detail::eval<sol::member_function_wrapper<unsigned short (__cdecl CLuaBaseEntity::*)(unsigned char,unsigned char,unsigned char),unsigned short,CLuaBaseEntity,unsigned char,unsigned char,unsigned char>::caller,unsigned char,unsigned char,unsigned char,0,1,2,unsigned short (__cdecl CLuaBaseEntity::*&)(unsigned char,unsigned char,unsigned char),CLuaBaseEntity &> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 15042: address: 0x7FF74294E880
    [01/25/22 20:31:00:884][critical][stacktrace] at sol::stack::stack_detail::call<1,0,1,2,unsigned short,unsigned char,unsigned char,unsigned char,sol::member_function_wrapper<unsigned short (__cdecl CLuaBaseEntity::*)(unsigned char,unsigned char,unsigned char),unsigned short,CLuaBaseEntity,unsigned char,unsigned char,unsigned char>::caller,unsigned short (__cdecl CLuaBaseEntity::*&)(unsigned char,unsigned char,unsigned char),CLuaBaseEntity &> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 15060: address: 0x7FF74294E760
    [01/25/22 20:31:00:886][critical][stacktrace] at sol::stack::call<1,unsigned short,unsigned char,unsigned char,unsigned char,sol::member_function_wrapper<unsigned short (__cdecl CLuaBaseEntity::*)(unsigned char,unsigned char,unsigned char),unsigned short,CLuaBaseEntity,unsigned char,unsigned char,unsigned char>::caller,unsigned short (__cdecl CLuaBaseEntity::*&)(unsigned char,unsigned char,unsigned char),CLuaBaseEntity &> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 15078: address: 0x7FF74294E6A0
    [01/25/22 20:31:00:900][critical][stacktrace] at sol::stack::call_into_lua<1,1,unsigned short,unsigned char,unsigned char,unsigned char,sol::member_function_wrapper<unsigned short (__cdecl CLuaBaseEntity::*)(unsigned char,unsigned char,unsigned char),unsigned short,CLuaBaseEntity,unsigned char,unsigned char,unsigned char>::caller,unsigned short (__cdecl CLuaBaseEntity::*&)(unsigned char,unsigned char,unsigned char),CLuaBaseEntity &> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 15124: address: 0x7FF74294E590
    [01/25/22 20:31:00:925][critical][stacktrace] at sol::call_detail::lua_call_wrapper<CLuaBaseEntity,unsigned short (__cdecl CLuaBaseEntity::*)(unsigned char,unsigned char,unsigned char),0,0,1,0,1,void>::call<unsigned short (__cdecl CLuaBaseEntity::*&)(unsigned char,unsigned char,unsigned char),CLuaBaseEntity &> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 17121: address: 0x7FF7429155E0
    [01/25/22 20:31:00:937][critical][stacktrace] at sol::call_detail::lua_call_wrapper<CLuaBaseEntity,unsigned short (__cdecl CLuaBaseEntity::*)(unsigned char,unsigned char,unsigned char),0,0,1,0,1,void>::call<unsigned short (__cdecl CLuaBaseEntity::*&)(unsigned char,unsigned char,unsigned char)> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 17121: address: 0x7FF7428F3C10
    [01/25/22 20:31:00:962][critical][stacktrace] at sol::call_detail::call_wrapped<CLuaBaseEntity,0,0,0,1,1,unsigned short (__cdecl CLuaBaseEntity::*&)(unsigned char,unsigned char,unsigned char)> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 17420: address: 0x7FF7428E6910
    [01/25/22 20:31:00:988][critical][stacktrace] at sol::function_detail::upvalue_this_member_function<CLuaBaseEntity,unsigned short (__cdecl CLuaBaseEntity::*)(unsigned char,unsigned char,unsigned char),0>::real_call in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 17797: address: 0x7FF7428DBB40
    [01/25/22 20:31:01:015][critical][stacktrace] at sol::detail::lua_cfunction_trampoline in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 7987: address: 0x7FF7425F93B0
    [01/25/22 20:31:01:031][critical][stacktrace] at sol::detail::static_trampoline<&sol::function_detail::upvalue_this_member_function<CLuaBaseEntity,unsigned short (__cdecl CLuaBaseEntity::*)(unsigned char,unsigned char,unsigned char),0>::real_call> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 8013: address: 0x7FF7428EF8F0
    [01/25/22 20:31:01:044][critical][stacktrace] at sol::detail::typed_static_trampoline<int (__cdecl*)(lua_State *),&sol::function_detail::upvalue_this_member_function<CLuaBaseEntity,unsigned short (__cdecl CLuaBaseEntity::*)(unsigned char,unsigned char,unsigned char),0>::real_call> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 8074: address: 0x7FF7428E4060
    [01/25/22 20:31:01:054][critical][stacktrace] at sol::function_detail::upvalue_this_member_function<CLuaBaseEntity,unsigned short (__cdecl CLuaBaseEntity::*)(unsigned char,unsigned char,unsigned char),0>::call in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 17806: address: 0x7FF7428D8C90
    [01/25/22 20:31:01:054][critical][stacktrace] at sol::function_detail::upvalue_this_member_function<CLuaBaseEntity,unsigned short (__cdecl CLuaBaseEntity::*)(unsigned char,unsigned char,unsigned char),0>::call, address 0x7FF7428D8C90.
    [01/25/22 20:31:01:054][critical][stacktrace] in C:\repository\Demiurge\LIVE\lua51_64.dll
    [01/25/22 20:31:01:054][critical][stacktrace] at lua_pcall, address 0x7FFC143C7EA0.
    [01/25/22 20:31:01:054][critical][stacktrace] in C:\repository\Demiurge\LIVE\lua51_64.dll
    [01/25/22 20:31:01:114][critical][stacktrace] at sol::basic_protected_function<sol::stack_reference,1,sol::basic_reference<0> >::luacall<0> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 19211: address: 0x7FF7426061A0
    [01/25/22 20:31:01:174][critical][stacktrace] at sol::basic_protected_function<sol::basic_reference<0>,0,sol::basic_reference<0> >::invoke<1> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 19243: address: 0x7FF7426CB420
    [01/25/22 20:31:01:250][critical][stacktrace] at sol::basic_protected_function<sol::basic_reference<0>,0,sol::basic_reference<0> >::call<,CLuaBaseEntity,CLuaBaseEntity,CLuaSpell> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 19448: address: 0x7FF7427AE730
    [01/25/22 20:31:01:251][critical][stacktrace] at sol::basic_protected_function<sol::basic_reference<0>,0,sol::basic_reference<0> >::operator()<CLuaBaseEntity,CLuaBaseEntity,CLuaSpell> in C:\repository\Demiurge\LIVE\ext\sol\include\sol\sol.hpp: line: 19432: address: 0x7FF7427AE6A0
    [01/25/22 20:31:01:260][critical][stacktrace] at luautils::OnSpellCast in C:\repository\Demiurge\LIVE\src\map\lua\luautils.cpp: line: 2480: address: 0x7FF742785FF0
    [01/25/22 20:31:01:315][critical][stacktrace] at CBattleEntity::OnCastFinished in C:\repository\Demiurge\LIVE\src\map\entities\battleentity.cpp: line: 1426: address: 0x7FF742738B00
    [01/25/22 20:31:01:347][critical][stacktrace] at CMobEntity::OnCastFinished in C:\repository\Demiurge\LIVE\src\map\entities\mobentity.cpp: line: 1383: address: 0x7FF7427595A0
    [01/25/22 20:31:01:381][critical][stacktrace] at CMagicState::Update in C:\repository\Demiurge\LIVE\src\map\ai\states\magic_state.cpp: line: 147: address: 0x7FF742B3CCB0
    [01/25/22 20:31:01:416][critical][stacktrace] at CState::DoUpdate in C:\repository\Demiurge\LIVE\src\map\ai\states\state.cpp: line: 89: address: 0x7FF742B3B770
    [01/25/22 20:31:01:544][critical][stacktrace] at CAIContainer::Tick in C:\repository\Demiurge\LIVE\src\map\ai\ai_container.cpp: line: 382: address: 0x7FF7427207B0
    [01/25/22 20:31:01:566][critical][stacktrace] at CZoneEntities::ZoneServer in C:\repository\Demiurge\LIVE\src\map\zone_entities.cpp: line: 1086: address: 0x7FF7426E55A0
    [01/25/22 20:31:01:594][critical][stacktrace] at CZone::ZoneServer in C:\repository\Demiurge\LIVE\src\map\zone.cpp: line: 818: address: 0x7FF7426EFF30
    [01/25/22 20:31:01:597][critical][stacktrace] at zone_server in C:\repository\Demiurge\LIVE\src\map\zone.cpp: line: 85: address: 0x7FF7426ED6F0
    [01/25/22 20:31:01:625][critical][stacktrace] at CTaskMgr::DoTimer in C:\repository\Demiurge\LIVE\src\common\taskmgr.cpp: line: 91: address: 0x7FF7426F8E20
    [01/25/22 20:31:01:633][critical][stacktrace] at main in C:\repository\Demiurge\LIVE\src\common\kernel.cpp: line: 267: address: 0x7FF742703870
    [01/25/22 20:31:01:634][critical][stacktrace] ================================================================

Demiurge needed those crops you know. We're going to have to eat taru to not starve.

zach2good commented 2 years ago

That is quite the repro, thanks for figuring that out! I'll take a look at this this weekend

ghost commented 2 years ago

I would like to mention that with DM. Trade the Ark Pentasphere, then select DM. Get the CS, with all loading up, after the CS you can't move then pops up to skip the event. If you let the CS play it will only show Hume dying. Still will show you in the Battlefield and timer still count down until you exit.

kaincenteno commented 2 years ago

did this recent change fix this bug?

https://github.com/LandSandBoat/server/pull/2052

TeoTwawki commented 2 years ago

did this recent change fix this bug?

2052

dunno, haven't been able to pull and retest yet

TeoTwawki commented 1 year ago

This did get fixed