Author Topic: Segmentation fault on new month  (Read 7793 times)

Offline ksnova

  • Sergeant
  • **
  • Posts: 16
    • View Profile
Segmentation fault on new month
« on: September 23, 2016, 08:51:11 am »
I've been playing for a while now, and at the end of August 1999, the game crashes. The only mods I'm using are the Terrain Pack by Hobbes, and the Final Mod Pack. I'm also using the latest nightly, and it worked fine until now for some reason. Anyone else have trouble with this? This is all I have from my openxcom.log file:

Code: [Select]
[23-09-2016_01-47-47] [INFO] Data folder is:
[23-09-2016_01-47-47] [INFO] Data search is:
[23-09-2016_01-47-47] [INFO] - C:\Users\------\Documents\OpenXcom\
[23-09-2016_01-47-47] [INFO] - E:\openxcom
[23-09-2016_01-47-47] [INFO] - E:\openxcom
[23-09-2016_01-47-47] [INFO] User folder is: E:\openxcom\user\
[23-09-2016_01-47-47] [INFO] Config folder is: E:\openxcom\user\
[23-09-2016_01-47-47] [INFO] Options loaded successfully.
[23-09-2016_01-47-47] [INFO] SDL initialized successfully.
[23-09-2016_01-47-48] [INFO] SDL_mixer initialized successfully.
[23-09-2016_01-47-48] [INFO] requested file not found: openxcom.png
[23-09-2016_01-47-48] [INFO] Attempting to set display to 1440x900x8...
[23-09-2016_01-47-48] [INFO] Display set to 1440x900x8.
[23-09-2016_01-47-48] [INFO] Loading data...
[23-09-2016_01-47-48] [INFO] Scanning standard mods in 'standard'...
[23-09-2016_01-47-48] [INFO] Scanning user mods in 'E:\openxcom\user\mods'...
[23-09-2016_01-47-48] [INFO] Mapping resource files...
[23-09-2016_01-47-49] [INFO] Resources files mapped successfully.
[23-09-2016_01-47-52] [INFO] Loading fonts... Font.dat
[23-09-2016_01-47-52] [INFO] Loading extra resources from ruleset...
[23-09-2016_01-47-53] [INFO] Data loaded successfully.
[23-09-2016_01-47-53] [INFO] Loading language...
[23-09-2016_01-47-53] [INFO] Language loaded successfully.
[23-09-2016_01-47-53] [INFO] OpenXcom started successfully!
[23-09-2016_01-47-53] [INFO] Using software scaling routine. For best results, try an OpenGL filter.
[23-09-2016_01-48-03] [FATAL] A fatal error has occurred: Segmentation fault. This usually indicates something missing in a mod.
[23-09-2016_01-48-09] [FATAL] OpenXcom has crashed: Segmentation fault. This usually indicates something missing in a mod.
Extra information has been saved to openxcom.log.
If this error was unexpected, please report it to the developers.

I did have to turn off the Terrain Pack a couple months ago in-game when doing an Alien Base mission, because my ship kept somehow wedging itself into the base and my guys couldn't get out, otherwise.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9101
    • View Profile
Re: Segmentation fault on new month
« Reply #1 on: September 23, 2016, 09:39:14 am »
It will be something missing/wrong in one of the the mods.

If you can post your save, I'll be able to help more...
(also, I need to know which version of terrain pack and which version of FMP you're using)

Offline Ridаn

  • Colonel
  • ****
  • Posts: 269
    • View Profile
Re: Segmentation fault on new month
« Reply #2 on: September 23, 2016, 10:03:44 am »
I`m pretty sure that FMP has Hobbes Terrain pack built in, so there is no reason to run both.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Segmentation fault on new month
« Reply #3 on: September 23, 2016, 11:13:18 am »
I`m pretty sure that FMP has Hobbes Terrain pack built in, so there is no reason to run both.

Yes. Not the latest version, but the difference is small.

Offline ksnova

  • Sergeant
  • **
  • Posts: 16
    • View Profile
Re: Segmentation fault on new month
« Reply #4 on: September 23, 2016, 05:56:55 pm »
Here's the save, then. The redeeming aspect of this is, I found another save from about one in-game month prior. (I sped through to the end of August and no crash happened there.) The only thing of significance I can remember is, August was the one month where I finally decided to start using AWACS. Because if you're gonna make mini-radar bases, why not complete the coverage?

As for versions, I'm using the latest versions of FMP, Terrain Pack, and the nightly. This is all from a fresh, spanking-new install from about... ten days ago? As far as I can tell from both mod pages, neither have been updated in the short time-frame I've had this one going.

For comparison, I'll also attach the save from one in-game month prior, "1.sav".

The quicksave one is the one that keeps crashing.

Just in case nobody can determine what's going on, I'm going to start over from 1.sav, and work again from there. But I'm hoping someone might find out for future reference.
« Last Edit: September 23, 2016, 06:03:49 pm by ksnova »

Offline Arthanor

  • Commander
  • *****
  • Posts: 2488
  • XCom Armoury Quartermaster
    • View Profile
Re: Segmentation fault on new month
« Reply #5 on: September 23, 2016, 06:07:10 pm »
When you change months is when the new missions are generated. It is almost certain that missions are the cause.

I would guess that both the FMP and the Terrain Pack mess around with missions, in such a way that at the beginning of your month some mission was chosen which was lacking something, and the lack of information cause the segmentation fault.

As was mentioned previously, it's a bad idea to run the FMP (which includes an old version of the terrain pack) with the Terrain Pack. Even if you don't get a segmentation fault this time around, you are pretty likely to get it again before the end of your game when the same faulty mission is generated.

Offline ksnova

  • Sergeant
  • **
  • Posts: 16
    • View Profile
Re: Segmentation fault on new month
« Reply #6 on: September 23, 2016, 06:12:37 pm »
Ouch. So I have to start over, then? There just seems to be a fair chunk missing without the newest version of that Terrain Pack.

Offline Arthanor

  • Commander
  • *****
  • Posts: 2488
  • XCom Armoury Quartermaster
    • View Profile
Re: Segmentation fault on new month
« Reply #7 on: September 23, 2016, 06:39:11 pm »
Depending on how far you are and how much you care about what you've got, restarting with only the FMP (which does include some of the Terrain Pack, so it's not like you'll be playing only with vanilla terrain) is certainly the easiest solution. If you restart, I would recommend Solarius' other mod: XComFiles, which has been a blast even though it's not quite finished. It's a kind of FMP++, if such a thing is even possible. And it has a whole bunch of terrains.

If you don't want to restart, I would suggest you start a game with FMP only (No terrain pack!), create your base and save immediately. The idea is to generate a clean FMP mission table, which is a list of all possible alien missions. Since you have only the FMP enabled, you'll have only proper FMP missions. In that save, find the section called "alienStrategy" and copy the whole thing. Take the save you want to keep, go to the "alienStrategy" section and delete everything, then paste in what you got from the clean start.

This will re-enable some missions that you've already gotten, but that's not much of an issue. The most important thing is that it will remove from the list of possible missions anything that was created by the Terrain Pack and allow you to remove all influence of the Terrain Pack on your game. (Make sure you also turn off the mod in options, of course). Only turning off the mod without the save fix wouldn't remove the entries from "alienStrategy" in your save. It would just not load the assets and that would be even worse because then any Terrain Pack specific mission still in your save would crash the game.

Mixing mods is a tricky thing, especially when you play around with big ones.

Offline ksnova

  • Sergeant
  • **
  • Posts: 16
    • View Profile
Re: Segmentation fault on new month
« Reply #8 on: September 23, 2016, 06:54:45 pm »
After doing all that, it still crashes at the end of August.
« Last Edit: September 23, 2016, 07:12:40 pm by ksnova »

Offline hellrazor

  • Commander
  • *****
  • Posts: 2027
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: Segmentation fault on new month
« Reply #9 on: September 25, 2016, 07:40:14 am »
After doing all that, it still crashes at the end of August.

I recommend you restart your game. Big Modpacks are mostly incompatible, remember that as a lesson.

Code: [Select]
[25-09-2016_06-46-51] [FATAL] ./openxcom(_ZN8OpenXcom13CrossPlatform10stackTraceEPv+0x2a) [0x5f266a]
[25-09-2016_06-46-51] [FATAL] ./openxcom(_ZN8OpenXcom13CrossPlatform9crashDumpEPvRKSs+0x427) [0x5f2e87]
[25-09-2016_06-46-51] [FATAL] ./openxcom(_Z12signalLoggeri+0x2c) [0x4b999c]
[25-09-2016_06-46-51] [FATAL] /lib/x86_64-linux-gnu/libc.so.6(+0x36cb0) [0x7f3370f61cb0]
[25-09-2016_06-46-51] [FATAL] ./openxcom(_ZNK8OpenXcom6Region8getRulesEv+0) [0x8df330]
[25-09-2016_06-46-51] [FATAL] ./openxcom(_ZN8OpenXcom13GeoscapeState14processCommandEPNS_17RuleMissionScriptE+0xa3f) [0x6dc5ff]
[25-09-2016_06-46-51] [FATAL] ./openxcom(_ZN8OpenXcom13GeoscapeState22determineAlienMissionsEv+0x824) [0x6deba4]
[25-09-2016_06-46-51] [FATAL] ./openxcom(_ZN8OpenXcom13GeoscapeState10time1MonthEv+0x2d) [0x6def9d]
[25-09-2016_06-46-51] [FATAL] ./openxcom(_ZN8OpenXcom13GeoscapeState11timeAdvanceEv+0xd8) [0x6e7408]
[25-09-2016_06-46-51] [FATAL] ./openxcom(_ZN8OpenXcom5Timer5thinkEPNS_5StateEPNS_7SurfaceE+0x87) [0x6b5f37]
[25-09-2016_06-46-51] [FATAL] ./openxcom(_ZN8OpenXcom4Game3runEv+0x3d6) [0x60ca16]
[25-09-2016_06-46-51] [FATAL] ./openxcom(main+0x12c) [0x4a1b3c]
[25-09-2016_06-46-51] [FATAL] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f3370f4cf45]
[25-09-2016_06-46-51] [FATAL] ./openxcom() [0x4a3ada]
[25-09-2016_06-46-57] [FATAL] OpenXcom has crashed: Segmentation fault. This usually indicates something missing in a mod.
Extra information has been saved to openxcom.log.

Region and or Missiongenerating is failing here. Probably different definitions.
« Last Edit: September 25, 2016, 07:49:06 am by hellrazor »

Offline ksnova

  • Sergeant
  • **
  • Posts: 16
    • View Profile
Re: Segmentation fault on new month
« Reply #10 on: September 25, 2016, 08:22:58 am »
Lesson learned, indeed. I restarted last night. Thanks for the help.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9101
    • View Profile
Re: Segmentation fault on new month
« Reply #11 on: September 26, 2016, 08:41:21 pm »
After doing all that, it still crashes at the end of August.

It crashes when processing the vanilla "researchRetaliation" mission script.
You can comment that out in the vanilla ruleset to prevent the crash and continue the campaign.

I'll have a look later, why exactly it crashes...