OpenXcom Forum

OpenXcom => Troubleshooting => Topic started by: j0nx on March 27, 2022, 08:36:33 pm

Title: Keeps crashing!
Post by: j0nx on March 27, 2022, 08:36:33 pm
I am playing openxcom with no mods enabled and I keep getting openxcom has crashed segmentation fault. How can I troubleshoot this so that I can continue with my game? Thanks.
Title: Re: Keeps crashing!
Post by: Meridian on March 27, 2022, 09:16:51 pm
You can upload the log file for us to analyze.

You can also upload a save file if the crash is reproducible.
Title: Re: Keeps crashing!
Post by: SIMON BAILIE on March 27, 2022, 09:27:06 pm
I have a crash that keeps happening as it goes into the new month, don't know why.
Title: Re: Keeps crashing!
Post by: j0nx on March 27, 2022, 09:40:01 pm
What is name of logfile that you need? Thanks.
Title: Re: Keeps crashing!
Post by: Meridian on March 27, 2022, 10:05:45 pm
What is name of logfile that you need? Thanks.

openxcom.log
Title: Re: Keeps crashing!
Post by: j0nx on April 01, 2022, 11:44:52 pm
OK I uploaded the log and my saved game. Thank you for any help you can give because I am almost ready to go to mars.
Title: Re: Keeps crashing!
Post by: Meridian on April 02, 2022, 09:17:53 am
The log wasn't too helpful unfortunately.

What steps should I do after loading the game to make it crash?
Title: Re: Keeps crashing!
Post by: j0nx on April 03, 2022, 11:58:11 pm
Once the game loads, you are in the geoscape. Fast forward 5 mins and it will pickup a ufo. If you intercept or cancel the ufo then within seconds it will crash after that. Thanks.
Title: Re: Keeps crashing!
Post by: Meridian on April 04, 2022, 01:51:17 pm
I tried several times, but it doesn't crash for me.

I suspect that it can be an issue with the original game data files, a missing or corrupted sound effect for example.
Do you have the original data files from a reliable source (e.g. Steam or gog.com) or from somewhere else?
Title: Re: Keeps crashing!
Post by: j0nx on April 06, 2022, 12:17:47 am
Yeah it is on steam. I reverified the files and it found some bad files and redownloaded them and then I reinstalled openxcom pulling from the xcom directory with the known good files but it still crashes. This worked really well for a few weeks until it started crashing. It even crashes for me on my laptop which I used to test it to make sure it wasn't my PC causing it.
Title: Re: Keeps crashing!
Post by: j0nx on April 06, 2022, 12:36:41 am
I think I may have found it. It's the allow psi strength improvement option. Whenever I enable it is when it crashes. I have all the psi options checked and the one that is crashing the game is that one.
Title: Re: Keeps crashing!
Post by: Meridian on April 06, 2022, 10:32:17 am
That option can't cause a crash, at least not directly.
However it does use RNG, so when it is turned on you get different RNG on other things, which could cause a crash.

I still can't make it crash on my PC though.
Could you please configure the options again so that the game crashes; and then zip everything (including the game, the data, the config, the save, etc.) and upload it all here, so that I have files identical to yours?

Does the game crash exactly at midnight (game time)? Or at some other time?