Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#307 closed defect (fixed)

Program received signal SIGABRT, Aborted.

Reported by: BadassTester Owned by:
Priority: Should Have Milestone:
Component: Core engine Keywords: simple
Cc: Patch:

Description (last modified by Philip Taylor)

Hello! I was playing the "Badlands" map. crashed after sending units to an unclaimed settlement

pyrogenesis_dbg: /usr/include/boost/shared_ptr.hpp:315: T* boost::shared_ptr<T>::operator->() const [with T = CTerrainProperties]: Assertion `px != 0' failed.

Program received signal SIGABRT, Aborted.


(gdb) backtrace
#0  0xb7f7a410 in __kernel_vsyscall ()
#1  0xb7788085 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7789a01 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb778110e in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4  0x083747c9 in boost::shared_ptr<CTerrainProperties>::operator-> (this=0xbf9b305c) at /usr/include/boost/shared_ptr.hpp:315
#5  0x08374647 in CTerrain::IsPassable (this=0x9584120, loc=@0xbf9b3130, entity=@0xbf9b30f2) at ../../../source/graphics/Terrain.cpp:117
#6  0x0834c316 in AStarGoalLowLevel::IsPassable (this=0x8cf4558, loc=@0xbf9b3130, entity=@0xbf9b3140) at ../../../source/simulation/AStarEngine.cpp:508
#7  0x0834c1f1 in AStarGoalLowLevel::GetNeighbors (this=0x8cf4558, loc=@0xb549760, entity=@0xbf9b31ba) at ../../../source/simulation/AStarEngine.cpp:543
#8  0x0834cf4a in CAStarEngine::FindPath (this=0x8cf4438, src=@0xbf9b3278, dest=@0xbf9b32e4, entity=@0xbf9b328c, radius=0)
    at ../../../source/simulation/AStarEngine.cpp:234
#9  0x082f5f57 in CPathfindEngine::RequestLowLevelPath (this=0x8cf4438, entity=@0xbf9b3302, destination=@0xbf9b32e4, contact=false, radius=0, 
    orderSource=CEntityOrder::SOURCE_PLAYER) at ../../../source/simulation/PathfindEngine.cpp:533
#10 0x083478ab in CEntity::ProcessGotoWaypoint (this=0xa840808, current=0x8cf7a70, contact=false)
    at ../../../source/simulation/EntityStateProcessing.cpp:732
#11 0x082cc2d7 in CEntity::UpdateOrders (this=0xa840808, timestep=300) at ../../../source/simulation/Entity.cpp:582
#12 0x082cc940 in CEntity::Update (this=0xa840808, timestep=300) at ../../../source/simulation/Entity.cpp:457
#13 0x082b65cc in CEntityManager::UpdateAll (this=0x9588b80, timestep=300) at ../../../source/simulation/EntityManager.cpp:450
#14 0x083162f2 in CSimulation::Simulate (this=0x9561030) at ../../../source/simulation/Simulation.cpp:179
#15 0x083166e3 in CSimulation::Update (this=0x9561030, frameTime=0.033608004450798035) at ../../../source/simulation/Simulation.cpp:106
#16 0x0829f6a5 in CGame::Update (this=0x9588898, deltaTime=0.033608004450798035, doInterpolate=true) at ../../../source/ps/Game.cpp:230
#17 0x0820f421 in Frame () at ../../../source/main.cpp:271
#18 0x0820f882 in RunGameOrAtlas (argc=1, argv=0xbf9b3774) at ../../../source/main.cpp:397
#19 0x0820f906 in main (argc=1, argv=0xbf9b3774) at ../../../source/main.cpp:410

Change History (4)

comment:1 by Philip Taylor, 15 years ago

Description: modified (diff)

(Edited the description to make it more readable)

comment:2 by Jan Wassenberg, 15 years ago

Keywords: simple added

Thanks for the report :) Will hopefully be fixed soon; I'm tagging this with 'simple' to indicate a self-contained task.

comment:3 by Jan Wassenberg, 15 years ago

Resolution: fixed
Status: newclosed

(In [7153]) add missing terrains.xml avoid data-dependent bug (null pointer when no terrain properties loaded) fixes #307 thanks go to BadassTester and Heron!

comment:4 by (none), 14 years ago

Milestone: Open Source Release

Milestone Open Source Release deleted

Note: See TracTickets for help on using tickets.