ERROR: JavaScript error: simulation/components/Pack.js line 102 TypeError: cmpPlayer is null Pack.prototype.GetPackTime@simulation/components/Pack.js:102:1 Pack.prototype.GetProgress@simulation/components/Pack.js:112:28 StatusBars.prototype.AddPackBar@simulation/components/StatusBars.js:162:58 StatusBars.prototype.RegenerateSprites@simulation/components/StatusBars.js:117:14 StatusBars.prototype.OnDestroy@simulation/components/StatusBars.js:101:3 ERROR: Script message handler OnDestroy failed Thread 1 "pyrogenesis_dbg" received signal SIGSEGV, Segmentation fault. 0x0000000000000000 in ?? () (gdb) bt #0 0x0000000000000000 in ?? () #1 0x0000555555789282 in CDynamicSubscription::CompareIComponent::operator() ( this=0x5555572aebd0, cmpA=0x55555e020ec0, cmpB=0x5555599fc7f0) at ../../../source/simulation2/system/DynamicSubscription.h:48 #2 0x000055555578a7b4 in std::_Rb_tree, CDynamicSubscription::CompareIComponent, std::allocator >::_M_get_insert_unique_pos (this=0x5555572aebd0, __k=@0x7fffffffc850: 0x55555e020ec0) at /usr/include/c++/6/bits/stl_tree.h:1836 #3 0x0000555555789bce in std::_Rb_tree, CDynamicSubscription::CompareIComponent, std::allocator >::_M_insert_unique (this=0x5555572aebd0, __v=@0x7fffffffc850: 0x55555e020ec0) at /usr/include/c++/6/bits/stl_tree.h:1889 #4 0x00005555557893ce in std::set >::insert (this=0x5555572aebd0, __x=@0x7fffffffc850: 0x55555e020ec0) at /usr/include/c++/6/bits/stl_set.h:483 #5 0x0000555555788d27 in CDynamicSubscription::Remove (this=0x5555572aeb88, cmp=0x55555e020ec0) at ../../../source/simulation2/system/DynamicSubscription.cpp:31 #6 0x0000555555757cd1 in CComponentManager::RemoveComponentDynamicSubscriptions (this=0x555558837b98, component=0x55555e020ec0) ---Type to continue, or q to quit--- at ../../../source/simulation2/system/ComponentManager.cpp:627 #7 0x0000555555759af2 in CComponentManager::FlushDestroyedComponents ( this=0x555558837b98) at ../../../source/simulation2/system/ComponentManager.cpp:932 #8 0x0000555555712074 in CSimulation2Impl::UpdateComponents (simContext=..., turnLengthFixed=..., commands=std::vector of length 0, capacity 0) at ../../../source/simulation2/Simulation2.cpp:566 #9 0x0000555555710cb1 in CSimulation2Impl::Update (this=0x555558837b70, turnLength=200, commands=std::vector of length 0, capacity 0) at ../../../source/simulation2/Simulation2.cpp:377 #10 0x00005555557133a6 in CSimulation2::Update (this=0x555558ec13c0, turnLength=200, commands=std::vector of length 0, capacity 0) at ../../../source/simulation2/Simulation2.cpp:731 #11 0x000055555574a45b in CTurnManager::Update (this=0x55555897d430, simFrameLength=0.0158507247, maxTurns=2) at ../../../source/simulation2/system/TurnManager.cpp:163 #12 0x00005555559714be in CGame::Update (this=0x555558842660, deltaRealTime=0.0079253623262047768, doInterpolate=true) at ../../../source/ps/Game.cpp:401 #13 0x00005555556a10d0 in Frame () at ../../../source/main.cpp:336 #14 0x00005555556a1d9c in RunGameOrAtlas (argc=1, argv=0x7fffffffe258) at ../../../source/main.cpp:531 #15 0x00005555556a2140 in main (argc=1, argv=0x7fffffffe258) ---Type to continue, or q to quit--- at ../../../source/main.cpp:571 (gdb) up #1 0x0000555555789282 in CDynamicSubscription::CompareIComponent::operator() (this=0x5555572aebd0, cmpA=0x55555e020ec0, cmpB=0x5555599fc7f0) at ../../../source/simulation2/system/DynamicSubscription.h:48 48 int cidB = cmpB->GetComponentTypeId(); (gdb) list 43 if (entityA < entityB) 44 return true; 45 if (entityB < entityA) 46 return false; 47 int cidA = cmpA->GetComponentTypeId(); 48 int cidB = cmpB->GetComponentTypeId(); 49 if (cidA < cidB) 50 return true; 51 return false; 52 } (gdb) print cidA $1 = 33 (gdb) print cidB $2 = 32767 (gdb) (gdb) whatis cidB type = int (gdb) print *cmpA $3 = {_vptr.IComponent = 0x5555563a73a8 , m_EntityHandle = {m_Id = 175, m_ComponentCache = 0x55555af18e70}, m_SimContext = 0x555558837b70} (gdb) print *cmpB $4 = {_vptr.IComponent = 0x5555572abe70, m_EntityHandle = {m_Id = 175, m_ComponentCache = 0x55555af18e70}, m_SimContext = 0x555558837b70} (gdb) print *cmpA @5 $5 = {{ = { = {_vptr.IComponent = 0x5555563a73a8 , m_EntityHandle = {m_Id = 175, m_ComponentCache = 0x55555af18e70}, m_SimContext = 0x555558837b70}, static ms_EnableDebugOverlays = false, static m_OverrideVisible = true}, m_OverlayDescriptor = {m_Type = ICmpSelectable::DYNAMIC_QUAD, m_QuadTexture = {m = 0x55555d185b20}, m_QuadTextureMask = { m = 0x55555d1c5a10}, m_LineTexture = {m = 0x5555563fc1e0}, m_LineTextureMask = {m = 0x5555563fc1e0}, m_LineThickness = 0}, m_BuildingOverlay = 0x0, m_UnitOverlay = 0x5555574466d0, m_DebugBoundingBoxOverlay = 0x0, m_DebugSelectionBoxOverlay = 0x0, m_EnabledInterpolate = true, m_EnabledRenderSubmit = true, m_Visible = true, m_EditorOnly = false, m_AlwaysVisible = false, m_Selected = true, m_Color = {r = 0.180392161, g = 0.180392161, b = 0.784313738, a = 1}, m_Cached = true, m_AlphaMin = 0, m_FadeBaselineAlpha = 1, m_FadeDeltaAlpha = 0, m_FadeProgress = 0, static FADE_DURATION = 0.29999999999999999}, { = { = {_vptr.IComponent = 0x0, m_EntityHandle = {m_Id = 33, m_ComponentCache = 0x3f2c00eb3f3e8fb3}, m_SimContext = 0x55555b8d71a0}, static ms_EnableDebugOverlays = false, static m_OverrideVisible = true}, m_OverlayDescriptor = {m_Type = (unknown: 32), m_QuadTexture = {m = 0x461}, m_QuadTextureMask = { m = 0x0}, m_LineTexture = {m = 0x0}, m_LineTextureMask = {m = 0x0}, m_LineThickness = 0}, m_BuildingOverlay = 0x0, m_UnitOverlay = 0xd500000001, m_DebugBoundingBoxOverlay = 0x0, m_DebugSelectionBoxOverlay = 0xa00000de1, m_EnabledInterpolate = false, m_EnabledRenderSubmit = false, m_Visible = false, m_EditorOnly = false, m_AlwaysVisible = false, m_Selected = false, m_Color = { r = 0, g = 0, b = 0, a = 0}, m_Cached = false, m_AlphaMin = 0, m_FadeBaselineAlpha = 0, m_FadeDeltaAlpha = 0, m_FadeProgress = 0, static FADE_DURATION = 0.29999999999999999}, { = { = {_vptr.IComponent = 0x0, m_EntityHandle = {m_Id = 10497, m_ComponentCache = 0x270300002901}, m_SimContext = 0x2601}, static ms_EnableDebugOverlays = false, static m_OverrideVisible = true}, m_OverlayDescriptor = {m_Type = ICmpSelectable::DYNAMIC_QUAD, m_QuadTexture = {m = 0xc47a000000000000}, m_QuadTextureMask = {m = 0x447a0000}, m_LineTexture = { m = 0x40800000}, m_LineTextureMask = {m = 0x8a4900000203}, m_LineThickness = 0}, m_BuildingOverlay = 0x1909, m_UnitOverlay = 0x3f800000, m_DebugBoundingBoxOverlay = 0x3e8, m_DebugSelectionBoxOverlay = 0x0, m_EnabledInterpolate = false, m_EnabledRenderSubmit = false, m_Visible = false, m_EditorOnly = false, m_AlwaysVisible = false, m_Selected = false, m_Color = {r = 0, g = 0, b = 8.97251407e-42, a = 8.97391537e-42}, m_Cached = 5, m_AlphaMin = 8.97671796e-42, m_FadeBaselineAlpha = 2.34297103e-42, m_FadeDeltaAlpha = 0, m_FadeProgress = 0, static FADE_DURATION = 0.29999999999999999}, { = { = {_vptr.IComponent = 0x0, m_EntityHandle = {m_Id = 0, m_ComponentCache = 0x55555cbe23b0}, m_SimContext = 0x55555e53cba0}, static ms_EnableDebugOverlays = false, static m_OverrideVisible = true}, m_OverlayDescriptor = {m_Type = (unknown: 1519866080), m_QuadTexture = {m = 0x55555e119050}, m_QuadTextureMask = { m = 0x55555d5e42f0}, m_LineTexture = {m = 0x55555c332bc0}, m_LineTextureMask = {m = 0x55555b4b80b0}, m_LineThickness = 1.44573109e+15}, m_BuildingOverlay = 0x55555d5d54d0, m_UnitOverlay = 0x0, m_DebugBoundingBoxOverlay = 0x0, m_DebugSelectionBoxOverlay = 0x0, m_EnabledInterpolate = false, m_EnabledRenderSubmit = false, m_Visible = false, m_EditorOnly = false, m_AlwaysVisible = false, m_Selected = false, m_Color = {r = 0, g = 0, b = 0, a = 0}, m_Cached = false, m_AlphaMin = 0, m_FadeBaselineAlpha = 0, m_FadeDeltaAlpha = 0, m_FadeProgress = 0, static FADE_DURATION = 0.29999999999999999}, { = { = {_vptr.IComponent = 0x0, m_EntityHandle = {m_Id = 0, m_ComponentCache = 0x0}, m_SimContext = 0x0}, static ms_EnableDebugOverlays = false, static m_OverrideVisible = true}, m_OverlayDescriptor = {m_Type = ICmpSelectable::DYNAMIC_QUAD, m_QuadTexture = {m = 0x0}, m_QuadTextureMask = {m = 0x0}, m_LineTexture = {m = 0x0}, m_LineTextureMask = {m = 0x0}, m_LineThickness = 0}, m_BuildingOverlay = 0x0, m_UnitOverlay = 0x0, m_DebugBoundingBoxOverlay = 0x0, m_DebugSelectionBoxOverlay = 0x0, m_EnabledInterpolate = false, m_EnabledRenderSubmit = false, m_Visible = false, m_EditorOnly = false, m_AlwaysVisible = false, m_Selected = false, m_Color = {r = 0, g = 0, b = 0, a = 0}, m_Cached = false, m_AlphaMin = 0, m_FadeBaselineAlpha = 0, m_FadeDeltaAlpha = 0, m_FadeProgress = 0, static FADE_DURATION = 0.29999999999999999}} (gdb) print *cmpB @5 $6 = {{_vptr.IComponent = 0x5555572abe70, m_EntityHandle = {m_Id = 175, m_ComponentCache = 0x55555af18e70}, m_SimContext = 0x555558837b70}, {_vptr.IComponent = 0x55556515f900, m_EntityHandle = { m_Id = 1695938816, m_ComponentCache = 0x55556515f980}, m_SimContext = 0x555565182d80}, {_vptr.IComponent = 0x555565182d80, m_EntityHandle = {m_Id = 1696083352, m_ComponentCache = 0x1}, m_SimContext = 0xa1}, {_vptr.IComponent = 0x7fff00000001, m_EntityHandle = {m_Id = 1503913808, m_ComponentCache = 0x555559a292e0}, m_SimContext = 0x555559a48350}, {_vptr.IComponent = 0x5555599fc8f0, m_EntityHandle = {m_Id = 53, m_ComponentCache = 0x35}, m_SimContext = 0x7400000072}}