- edited description
Crash when loading map
Hi,
i encounter a persistent crash of ja2 0486830 (compiled with the shipped libs) on openbsd 5.5-current.
So far, i freed most of the cities and ignored the monsters in alma mine. Now i want to take care of them, but when my mercs are all in the sector and i enter the map, the game crashes after loading the map.
Here is the backtrace, savegame attached:
Program received signal SIGSEGV, Segmentation fault.
0x0000023f33442538 in FloorAtGridNo (map_idx=25601) at Build/TileEngine/WorldDef.cc:139
139 if (i->usIndex == NO_TILE) continue;
(gdb) backtrace
#0 0x0000023f33442538 in FloorAtGridNo (map_idx=25601) at Build/TileEngine/WorldDef.cc:139
#1 0x0000023f333c7b65 in LoadRottingCorpsesFromTempCorpseFile (x=14, y=9, z=0 '\000') at Build/Tactical/Tactical_Save.cc:749
#2 0x0000023f333c7271 in LoadCurrentSectorsInformationFromTempItemsFile () at Build/Tactical/Tactical_Save.cc:503
#3 0x0000023f332b4587 in EnterSector (x=14, y=9, z=0 '\000') at Build/Strategic/StrategicMap.cc:1178
#4 0x0000023f332b3a73 in SetCurrentWorldSector (x=14, y=9, z=0 '\000') at Build/Strategic/StrategicMap.cc:746
#5 0x0000023f3328d316 in HandleExitsFromMapScreen () at Build/Strategic/Map_Screen_Interface_Bottom.cc:1197
#6 0x0000023f332747b3 in MapScreenHandle () at Build/Strategic/MapScreen.cc:2175
#7 0x0000023f331e179b in GameLoop () at Build/GameLoop.cc:299
#8 0x0000023f3347555c in MainLoop (msPerGameCycle=25) at sgp/SGP.cc:252
#9 0x0000023f33475d9a in main (argc=1, argv=0x7f7ffffc8938) at sgp/SGP.cc:516
Comments (5)
-
reporter -
reporter - edited description
-
reporter Still crashing with latest master (72b4f78f387d). Maybe i'll find time to look into it.
Program received signal SIGSEGV, Segmentation fault. FloorAtGridNo (map_idx=25601) at Build/TileEngine/WorldDef.cc:139 139 if (i->usIndex == NO_TILE) continue; (gdb) backtrace #0 FloorAtGridNo (map_idx=25601) at Build/TileEngine/WorldDef.cc:139 #1 0x000017dfd831d0e5 in LoadCurrentSectorsInformationFromTempItemsFile () at Build/Tactical/Tactical_Save.cc:748 #2 0x000017dfd825a864 in SetCurrentWorldSector (x=Variable "x" is not available.) at Build/Strategic/StrategicMap.cc:1178 #3 0x000017dfd823a3b2 in HandleExitsFromMapScreen () at Build/Strategic/Map_Screen_Interface_Bottom.cc:1197 #4 0x000017dfd822f755 in MapScreenHandle () at Build/Strategic/MapScreen.cc:2177 #5 0x000017dfd81beea0 in GameLoop () at Build/GameLoop.cc:299 #6 0x000017dfd8398419 in main (argc=Variable "argc" is not available.) at sgp/SGP.cc:252
-
reporter Seems that this issue exists since at least 5 years: http://thepit.ja-galaxy-forum.com/index.php?t=tree&th=16589&mid=250604&&rev=&reveal=
-
Account Deleted I had the exact same Issue. Consistent crash when entering Alma Mine after the monsters appeared. The open Pull Request #20 by drm00 fixes this for me just fine. Additionally, it may be interesting why a corpse ends up out of the map limit when the monsters spawn.
- Log in to comment