Exception thrown: read access violation.
**CComponent::Graphics**(...) returned nullptr.
in CChat::RebuildChat at the line Graphics()->DeleteQuadContainer(Line.m_QuadContainerIndex);
cl_chat_old 0
, because the chained command handler assumes that the graphics have already been initialisedddnet "cl_chat_old 0"
is should crash in any casecl_chat_old
, because the resize listener is not (and cannot be) registered until graphics are upThread 1 received signal SIGSEGV, Segmentation fault.
0x000000000050d735 in CChat::RebuildChat (this=0x7330c98)
at E:/Teeworlds_DDNet/ddnet/src/game/client/components/chat.cpp:51
51 Graphics()->DeleteQuadContainer(Line.m_QuadContainerIndex);
(gdb) bt
#0 0x000000000050d735 in CChat::RebuildChat (this=0x7330c98)
at E:/Teeworlds_DDNet/ddnet/src/game/client/components/chat.cpp:51
#1 0x000000000050dc64 in CChat::ConchainChatOld (pResult=0x225970,
pUserData=0x7330c98,
pfnCallback=0x4687bf <IntVariableCommand(IConsole::IResult*, void*)>,
pCallbackUserData=0x915e40 <CConsole::Init()::Data>)
at E:/Teeworlds_DDNet/ddnet/src/game/client/components/chat.cpp:145
#2 0x000000000047b90b in CConsole::Con_Chain (pResult=0x225970,
pUserData=0x63b7ee0)
at E:/Teeworlds_DDNet/ddnet/src/engine/shared/console.cpp:1241
#3 0x0000000000467899 in CConsole::ExecuteLineStroked (this=0x6324a70,
Stroke=1, pStr=0x47c7e19 "cl_chat_old 0", ClientID=-1,
InterpretSemicolons=true)
at E:/Teeworlds_DDNet/ddnet/src/engine/shared/console.cpp:549
#4 0x0000000000467b75 in CConsole::ExecuteLine (this=0x6324a70,
pStr=0x47c7e19 "cl_chat_old 0", ClientID=-1, InterpretSemicolons=true)
at E:/Teeworlds_DDNet/ddnet/src/engine/shared/console.cpp:613
#5 0x000000000047b2a6 in CConsole::ParseArguments (this=0x6324a70,
NumArgs=1, ppArguments=0x47c7898)
at E:/Teeworlds_DDNet/ddnet/src/engine/shared/console.cpp:1094
#6 0x00000000004de4b9 in main (argc=2, argv=0x47c7890)
at E:/Teeworlds_DDNet/ddnet/src/engine/client/client.cpp:4672
RebuildChat
is called by ConchainChatOld
, which causes the client to crash if cl_chat_old
is present in the user's config or used as a command line argument.
Thread 1 received signal SIGSEGV, Segmentation fault.
0x000000000050d735 in CChat::RebuildChat (this=0x7330c98)
at E:/Teeworlds_DDNet/ddnet/src/game/client/components/chat.cpp:51
51 Graphics()->DeleteQuadContainer(Line.m_QuadContainerIndex);
(gdb) bt
#0 0x000000000050d735 in CChat::RebuildChat (this=0x7330c98)
at E:/Teeworlds_DDNet/ddnet/src/game/client/components/chat.cpp:51
#1 0x000000000050dc64 in CChat::ConchainChatOld (pResult=0x225970,
pUserData=0x7330c98,
pfnCallback=0x4687bf <IntVariableCommand(IConsole::IResult*, void*)>,
pCallbackUserData=0x915e40 <CConsole::Init()::Data>)
at E:/Teeworlds_DDNet/ddnet/src/game/client/components/chat.cpp:145
#2 0x000000000047b90b in CConsole::Con_Chain (pResult=0x225970,
pUserData=0x63b7ee0)
at E:/Teeworlds_DDNet/ddnet/src/engine/shared/console.cpp:1241
#3 0x0000000000467899 in CConsole::ExecuteLineStroked (this=0x6324a70,
Stroke=1, pStr=0x47c7e19 "cl_chat_old 0", ClientID=-1,
InterpretSemicolons=true)
at E:/Teeworlds_DDNet/ddnet/src/engine/shared/console.cpp:549
#4 0x0000000000467b75 in CConsole::ExecuteLine (this=0x6324a70,
pStr=0x47c7e19 "cl_chat_old 0", ClientID=-1, InterpretSemicolons=true)
at E:/Teeworlds_DDNet/ddnet/src/engine/shared/console.cpp:613
#5 0x000000000047b2a6 in CConsole::ParseArguments (this=0x6324a70,
NumArgs=1, ppArguments=0x47c7898)
at E:/Teeworlds_DDNet/ddnet/src/engine/shared/console.cpp:1094
#6 0x00000000004de4b9 in main (argc=2, argv=0x47c7890)
at E:/Teeworlds_DDNet/ddnet/src/engine/client/client.cpp:4672