Author Topic: How do I fix Segmentation Faults?  (Read 3620 times)

Offline Steakthedog

  • Squaddie
  • *
  • Posts: 5
    • View Profile
How do I fix Segmentation Faults?
« on: August 18, 2021, 04:48:38 am »
So, across three different saves, every time I attempted to start a mission or shoot down a UFO, I get a Segmentation Fault. Here is the log for the most recent one. Anyone know how to fix this?

Spoiler:
[17-08-2021_20-33-45]   [INFO]   OpenXcom Version: 1.0 git 2021-06-11 16:18
[17-08-2021_20-33-45]   [INFO]   Platform: Windows
[17-08-2021_20-33-45]   [INFO]   Data folder is:
[17-08-2021_20-33-45]   [INFO]   Data search is:
[17-08-2021_20-33-45]   [INFO]   - C:\Users\Daniel.000\Documents\OpenXcom\
[17-08-2021_20-33-45]   [INFO]   - C:\Program Files (x86)\OpenXcom
[17-08-2021_20-33-45]   [INFO]   - C:\Program Files (x86)\OpenXcom
[17-08-2021_20-33-45]   [INFO]   User folder is: C:\Users\Daniel.000\Documents\OpenXcom\
[17-08-2021_20-33-45]   [INFO]   Config folder is: C:\Users\Daniel.000\Documents\OpenXcom\
[17-08-2021_20-33-45]   [INFO]   Options loaded successfully.
[17-08-2021_20-33-45]   [INFO]   SDL initialized successfully.
[17-08-2021_20-33-46]   [INFO]   SDL_mixer initialized successfully.
[17-08-2021_20-33-46]   [INFO]   requested file not found: openxcom.png
[17-08-2021_20-33-46]   [INFO]   Detected locale: C
[17-08-2021_20-33-46]   [INFO]   Attempting to set display to 1152x864x8...
[17-08-2021_20-33-46]   [INFO]   Display set to 1152x864x8.
[17-08-2021_20-33-46]   [INFO]   Loading data...
[17-08-2021_20-33-46]   [INFO]   Scanning standard mods in 'standard'...
[17-08-2021_20-33-46]   [INFO]   Scanning user mods in 'C:\Users\Daniel.000\Documents\OpenXcom\mods'...
[17-08-2021_20-33-46]   [INFO]   Mapping resource files...
[17-08-2021_20-33-47]   [INFO]   Resources files mapped successfully.
[17-08-2021_20-33-47]   [INFO]   Active mods:
[17-08-2021_20-33-47]   [INFO]   - xcom1 v1.0
[17-08-2021_20-33-47]   [INFO]   Loading rulesets...
[17-08-2021_20-33-49]   [INFO]   Loading fonts... Font.dat
[17-08-2021_20-33-49]   [INFO]   Data loaded successfully.
[17-08-2021_20-33-49]   [INFO]   Loading language...
[17-08-2021_20-33-49]   [INFO]   Language loaded successfully.
[17-08-2021_20-33-50]   [INFO]   OpenXcom started successfully!
[17-08-2021_20-33-50]   [INFO]   Using software scaling routine. For best results, try an OpenGL filter.
[17-08-2021_20-39-55]   [FATAL]   A fatal error has occurred: Segmentation fault. This usually indicates something missing in a mod.
[17-08-2021_20-39-55]   [FATAL]   0x54eb20 OpenXcom::CrossPlatform::stackTrace(void*)
[17-08-2021_20-39-55]   [FATAL]   0x5523f0 OpenXcom::CrossPlatform::crashDump(void*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
[17-08-2021_20-39-55]   [FATAL]   0x40dca0 signalLogger(int)
[17-08-2021_20-39-55]   [FATAL]   0x87bac0 xbrz::nearestNeighborScale(unsigned int const*, int, int, int, unsigned int*, int, int, int, xbrz::SliceType, int, int)
[17-08-2021_20-39-55]   [FATAL]   0x7750e900 UnhandledExceptionFilter
[17-08-2021_20-39-55]   [FATAL]   0x77d58c40 RtlCaptureStackContext
[17-08-2021_20-39-55]   [FATAL]   0x77d37960 RtlGetAppContainerNamedObjectPath

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: How do I fix Segmentation Faults?
« Reply #1 on: August 18, 2021, 09:42:36 am »
can you upload a save just before the crash?

Offline Steakthedog

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Re: How do I fix Segmentation Faults?
« Reply #2 on: August 19, 2021, 12:28:02 am »
Do you know where I can find the saves? I can't seem to find them.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: How do I fix Segmentation Faults?
« Reply #3 on: August 19, 2021, 12:33:01 am »
C:\Users\Daniel.000\Documents\OpenXcom\xcom1

Offline Steakthedog

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Re: How do I fix Segmentation Faults?
« Reply #4 on: August 19, 2021, 12:35:20 am »
Thanks, here's the files.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: How do I fix Segmentation Faults?
« Reply #5 on: August 19, 2021, 12:48:40 am »
It doesn't crash for me :\

Can you upload also the config file? Located in: C:\Users\Daniel.000\Documents\OpenXcom\options.cfg

Also, which original UFO files did you use? From Steam, from gog.com or from somewhere else?

Offline Steakthedog

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Re: How do I fix Segmentation Faults?
« Reply #6 on: August 19, 2021, 12:51:35 am »
I downloaded it off a Computer Gaming World 200 disc, then upgraded it to 1.4 before installing it.

Here is the config.
« Last Edit: August 19, 2021, 12:55:30 am by Steakthedog »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: How do I fix Segmentation Faults?
« Reply #7 on: August 19, 2021, 01:02:33 am »
I downloaded it off a Computer Gaming World 200 disc, then upgraded it to 1.4 before installing it.

My guess is that there is something wrong with those files.
Probably with the music or with the sound effects.

I will send you a link to my files via a private message in a minute, please try using those files if it helps.
(If yes, I would also like to have a look at your files, so don't delete them just yet/make a backup)

Offline Steakthedog

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Re: How do I fix Segmentation Faults?
« Reply #8 on: August 19, 2021, 01:06:12 am »
Alright, I hope this works.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: How do I fix Segmentation Faults?
« Reply #9 on: August 19, 2021, 01:31:54 am »
Solved.

It was caused by the original files... more exact reason is being investigated.