Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: Windows server crash UnhandledExceptionFilter in lua_newuserdatauv #337

Open
lmbr-pip opened this issue Apr 7, 2023 · 1 comment
Labels
kind/bug Something isn't working priority/major Major priority. Work that should be handled after all blocking and critical work is done.

Comments

@lmbr-pip
Copy link
Contributor

lmbr-pip commented Apr 7, 2023

Describe the bug
Run launcher and server.

Steps to reproduce
Steps to reproduce the behavior:

  1. Build latest stablization
  2. Run remote server and client in profile

Expected behavior
Server assets (1/1)

error.log

<08:13:05> 
==================================================================

<08:13:05> Trace::Assert
 D:\git\o3de\Code\Framework\AzCore\AzCore\Memory\SystemAllocator.cpp(100): (5080) 'void *__cdecl AZ::SystemAllocator::allocate(unsigned __int64,unsigned __int64)'

<08:13:05> (Exit) - Exception with exit code: 0xc0000005
<08:13:31> (Exit) - D:\git\o3de\Code\Legacy\CrySystem\DebugCallStack.cpp (223) : DebugCallStack::handleException

<08:13:31> (Exit) - 00007FFF1D44707C (KERNELBASE) : UnhandledExceptionFilter

<08:13:31> (Exit) - 00007FFF211C8AC0 (ntdll) : memset

<08:13:31> (Exit) - 00007FFF211AFE36 (ntdll) : _C_specific_handler

<08:13:31> (Exit) - 00007FFF211C509F (ntdll) : _chkstk

<08:13:31> (Exit) - 00007FFF21124CEF (ntdll) : RtlWalkFrameChain

<08:13:31> (Exit) - 00007FFF211C3E0E (ntdll) : KiUserExceptionDispatcher

<08:13:31> (Exit) - D:\git\o3de\Code\Framework\AzCore\AzCore\std\string\string.h (1453) : AZStd::basic_string<char,AZStd::char_traits<char>,AZStd::allocator>::set_capacity

<08:13:31> (Exit) - D:\git\o3de\Code\Framework\AzCore\AzCore\IO\ByteContainerStream.h (183) : AZ::IO::ByteContainerStream<AZStd::basic_string<char,AZStd::char_traits<char>,AZStd::allocator> >::PrepareToWrite

<08:13:31> (Exit) - D:\git\o3de\Code\Framework\AzCore\AzCore\IO\ByteContainerStream.h (163) : AZ::IO::ByteContainerStream<AZStd::basic_string<char,AZStd::char_traits<char>,AZStd::allocator> >::Write

<08:13:31> (Exit) - D:\git\o3de\Code\Framework\AzCore\AzCore\std\function\function_template.h (172) : AZStd::Internal::function_util::get_invoker<void __cdecl(AZ::IO::GenericStream &),AZStd::Internal::function_util::function_obj_tag,AZStd::allocator>::call<`AZCoreLogSink::O

<08:13:31> (Exit) - D:\git\o3de\Code\Legacy\CrySystem\Log.cpp (699) : `CLog::LogWithCallback'::`2'::<lambda_1>::operator()

<08:13:31> (Exit) - D:\git\o3de\Code\Legacy\CrySystem\Log.cpp (719) : CLog::LogWithCallback

<08:13:31> (Exit) - D:\git\o3de\Code\Legacy\CrySystem\AZCoreLogSink.h (154) : AZCoreLogSink::OnOutput

<08:13:31> (Exit) - D:\git\o3de\Code\Framework\AzCore\AzCore\EBus\Internal\BusContainer.h (1400) : AZ::Internal::EBusContainer<AZ::Debug::TraceMessageEvents,AZ::Debug::TraceMessageEvents,0,1>::Dispatcher<AZ::EBus<AZ::Debug::TraceMessageEvents,AZ::Debug::TraceMessageEvents> 

<08:13:31> (Exit) - D:\git\o3de\Code\Framework\AzCore\AzCore\Debug\Trace.cpp (581) : AZ::Debug::Trace::Output

<08:13:31> (Exit) - D:\git\o3de\Code\Framework\AzCore\AzCore\Debug\Trace.cpp (362) : AZ::Debug::Trace::Assert

<08:13:31> (Exit) - D:\git\o3de\Code\Framework\AzCore\AzCore\Memory\SystemAllocator.cpp (98) : AZ::SystemAllocator::allocate

<08:13:31> (Exit) - 00007FF6176AFD77 (MultiplayerSample.ServerLaunche) : luaL_where

<08:13:31> (Exit) - 00007FF6176B7E65 (MultiplayerSample.ServerLaunche) : lua_newuserdatauv

<08:13:31> (Exit) - D:\git\o3de\Code\Framework\AzCore\AzCore\Script\ScriptContext.cpp (2785) : AZ::Internal::RegisteredObjectToLua

<08:13:31> (Exit) - D:\git\o3de\Code\Framework\AzCore\AzCore\Script\ScriptContext.cpp (2953) : AZ::Internal::LuaScriptReflectedType::ToStack

<08:13:31> (Exit) - D:\git\o3de\Code\Framework\AzCore\AzCore\std\function\function_template.h (172) : AZStd::Internal::function_util::get_invoker<void __cdecl(void),AZStd::Internal::function_util::function_obj_tag,AZStd::allocator>::call<`AZ::LuaScriptCaller::Call'::`20'::<

<08:13:31> (Exit) - D:\git\o3de\Code\Framework\AzCore\AzCore\RTTI\BehaviorMethodImpl.inl (48) : AZ::Internal::CallMethodMember<AZ::RPI::LuaMaterialFunctorAPI::RenderStates,AZ::RPI::LuaMaterialFunctorAPI::ShaderItem>

<08:13:31> (Exit) - D:\git\o3de\Code\Framework\AzCore\AzCore\std\function\function_template.h (172) : AZStd::Internal::function_util::get_invoker<void __cdecl(AZ::BehaviorArgument *,AZStd::span<AZ::BehaviorArgument,-1>),AZStd::Internal::function_util::function_obj_tag,AZStd

<08:13:32> () - 00007FFF1D44707C (KERNELBASE) : UnhandledExceptionFilter

<08:13:32> () - 00007FFF211C8AC0 (ntdll) : memset

<08:13:32> () - 00007FFF211AFE36 (ntdll) : _C_specific_handler

<08:13:32> () - 00007FFF211C509F (ntdll) : _chkstk

<08:13:32> () - 00007FFF21124CEF (ntdll) : RtlWalkFrameChain

<08:13:32> () - 00007FFF211C3E0E (ntdll) : KiUserExceptionDispatcher

<08:13:32> () - D:\git\o3de\Code\Framework\AzCore\AzCore\std\string\string.h (1453) : AZStd::basic_string<char,AZStd::char_traits<char>,AZStd::allocator>::set_capacity

<08:13:32> () - D:\git\o3de\Code\Framework\AzCore\AzCore\IO\ByteContainerStream.h (183) : AZ::IO::ByteContainerStream<AZStd::basic_string<char,AZStd::char_traits<char>,AZStd::allocator> >::PrepareToWrite

<08:13:32> () - D:\git\o3de\Code\Framework\AzCore\AzCore\IO\ByteContainerStream.h (163) : AZ::IO::ByteContainerStream<AZStd::basic_string<char,AZStd::char_traits<char>,AZStd::allocator> >::Write

<08:13:32> () - D:\git\o3de\Code\Framework\AzCore\AzCore\std\function\function_template.h (172) : AZStd::Internal::function_util::get_invoker<void __cdecl(AZ::IO::GenericStream &),AZStd::Internal::function_util::function_obj_tag,AZStd::allocator>::call<`AZCoreLogSink::O

<08:13:32> () - D:\git\o3de\Code\Legacy\CrySystem\Log.cpp (699) : `CLog::LogWithCallback'::`2'::<lambda_1>::operator()

<08:13:32> () - D:\git\o3de\Code\Legacy\CrySystem\Log.cpp (719) : CLog::LogWithCallback

<08:13:32> () - D:\git\o3de\Code\Legacy\CrySystem\AZCoreLogSink.h (154) : AZCoreLogSink::OnOutput

<08:13:32> () - D:\git\o3de\Code\Framework\AzCore\AzCore\EBus\Internal\BusContainer.h (1400) : AZ::Internal::EBusContainer<AZ::Debug::TraceMessageEvents,AZ::Debug::TraceMessageEvents,0,1>::Dispatcher<AZ::EBus<AZ::Debug::TraceMessageEvents,AZ::Debug::TraceMessageEvents> 

<08:13:32> () - D:\git\o3de\Code\Framework\AzCore\AzCore\Debug\Trace.cpp (581) : AZ::Debug::Trace::Output

<08:13:32> () - D:\git\o3de\Code\Framework\AzCore\AzCore\Debug\Trace.cpp (362) : AZ::Debug::Trace::Assert

<08:13:32> () - D:\git\o3de\Code\Framework\AzCore\AzCore\Memory\SystemAllocator.cpp (98) : AZ::SystemAllocator::allocate

<08:13:32> () - 00007FF6176AFD77 (MultiplayerSample.ServerLaunche) : luaL_where

<08:13:32> () - 00007FF6176B7E65 (MultiplayerSample.ServerLaunche) : lua_newuserdatauv

<08:13:32> () - D:\git\o3de\Code\Framework\AzCore\AzCore\Script\ScriptContext.cpp (2785) : AZ::Internal::RegisteredObjectToLua

<08:13:32> () - D:\git\o3de\Code\Framework\AzCore\AzCore\Script\ScriptContext.cpp (2953) : AZ::Internal::LuaScriptReflectedType::ToStack

<08:13:32> () - D:\git\o3de\Code\Framework\AzCore\AzCore\std\function\function_template.h (172) : AZStd::Internal::function_util::get_invoker<void __cdecl(void),AZStd::Internal::function_util::function_obj_tag,AZStd::allocator>::call<`AZ::LuaScriptCaller::Call'::`20'::<

<08:13:32> () - D:\git\o3de\Code\Framework\AzCore\AzCore\RTTI\BehaviorMethodImpl.inl (48) : AZ::Internal::CallMethodMember<AZ::RPI::LuaMaterialFunctorAPI::RenderStates,AZ::RPI::LuaMaterialFunctorAPI::ShaderItem>

<08:13:32> () - D:\git\o3de\Code\Framework\AzCore\AzCore\std\function\function_template.h (172) : AZStd::Internal::function_util::get_invoker<void __cdecl(AZ::BehaviorArgument *,AZStd::span<AZ::BehaviorArgument,-1>),AZStd::Internal::function_util::function_obj_tag,AZStd

<08:13:32> () - D:\git\o3de\Code\Framework\AzCore\AzCore\RTTI\BehaviorMethodImpl.cpp (76) : AZ::Internal::BehaviorMethodImpl::Call

Actual behavior

  • Server is stable

Assets required
Provide sample assets needed to reproduce the issue.

Screenshots/Video
If applicable, add screenshots and/or a video to help explain your problem.

Found in Branch
Name of or link to the branch where the issue occurs.

Desktop/Device (please complete the following information):

  • See running on Windows 2021 server on c5.2xlarge

Additional context
Add any other context about the problem here.

@lmbr-pip lmbr-pip added kind/bug Something isn't working needs-triage Issue requires review labels Apr 7, 2023
@lmbr-pip lmbr-pip changed the title Bug Report: Windows server crash Bug Report: Windows server crash UnhandledExceptionFilter in lua_newuserdatauv Apr 7, 2023
@lmbr-pip lmbr-pip added priority/major Major priority. Work that should be handled after all blocking and critical work is done. and removed needs-triage Issue requires review labels Apr 13, 2023
@lmbr-pip
Copy link
Contributor Author

Has low frequency of occurrence, for now track and add occurrences to ticket to understand priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working priority/major Major priority. Work that should be handled after all blocking and critical work is done.
Projects
None yet
Development

No branches or pull requests

1 participant