o3de-multiplayersample
o3de-multiplayersample copied to clipboard
Bug Report: Windows server crash `UnhandledExceptionFilter` in `lua_newuserdatauv`
Describe the bug Run launcher and server.
Steps to reproduce Steps to reproduce the behavior:
- Build latest stablization
- Run remote server and client in profile
Expected behavior Server assets (1/1)
<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.
Has low frequency of occurrence, for now track and add occurrences to ticket to understand priority.