Author Topic: [Crash] Pressing 'Ok' in options screen crashes OpenXComEx  (Read 2507 times)

Offline Sander Bouwhuis

  • Sergeant
  • **
  • Posts: 26
    • View Profile
[Crash] Pressing 'Ok' in options screen crashes OpenXComEx
« on: July 27, 2024, 06:46:47 pm »
I just now installed OpenXComEx v2024-07-26. I went to the options, and after pressing 'Ok' the game crashed:
https://imgur.com/FIZCkTl

Code: [Select]
[27-07-2024_17-56-03] [INFO] OpenXcom Version: Extended 7.13 (v2024-07-26)
[27-07-2024_17-56-03] [INFO] Platform: Windows 64 bit
[27-07-2024_17-56-03] [INFO] Data folder is:
[27-07-2024_17-56-03] [INFO] Data search is:
[27-07-2024_17-56-03] [INFO] - C:/Users/Bouwhuis/Documents/OpenXcom/
[27-07-2024_17-56-03] [INFO] - E:/Games/Installed/OpenXcom/
[27-07-2024_17-56-03] [INFO] User folder is: C:/Users/Bouwhuis/Documents/OpenXcom/
[27-07-2024_17-56-03] [INFO] Config folder is: C:/Users/Bouwhuis/Documents/OpenXcom/
[27-07-2024_17-56-03] [INFO] Options loaded successfully.
[27-07-2024_17-56-03] [INFO] SDL initialized successfully.
[27-07-2024_17-56-03] [INFO] SDL_mixer initialized successfully.
[27-07-2024_17-56-03] [INFO] Attempted locale:
[27-07-2024_17-56-03] [INFO] Detected locale: C
[27-07-2024_17-56-03] [INFO] Attempting to set display to 3840x2160x32...
[27-07-2024_17-56-03] [INFO] Display set to 3840x2160x32.
[27-07-2024_17-56-03] [INFO] Loading data...
[27-07-2024_17-56-03] [INFO] Scanning standard mods in 'E:/Games/Installed/OpenXcom/'...
[27-07-2024_17-56-03] [INFO] Scanning user mods in 'C:/Users/Bouwhuis/Documents/OpenXcom/'...
[27-07-2024_17-56-03] [INFO] Active mods:
[27-07-2024_17-56-03] [INFO] - xcom2 v1.0
[27-07-2024_17-56-03] [INFO] - Aliens_Pick_Up_Weapons_TFTD v1.0
[27-07-2024_17-56-04] [INFO] - OpenXCom_Unlimited_Waypoints_TFTD v1.0
[27-07-2024_17-56-04] [INFO] - Smarter_Equip_TFTD v1.0
[27-07-2024_17-56-04] [INFO] - StrategyCore_Swap_Small_USOs_TFTD v1.0
[27-07-2024_17-56-04] [INFO] - UFOextender_Psionic_Line_Of_Fire_TFTD v1.0
[27-07-2024_17-56-04] [INFO] - XcomUtil_Fighter_Transports_TFTD v1.0
[27-07-2024_17-56-04] [INFO] - XcomUtil_High_Explosive_Damage_TFTD v1.0
[27-07-2024_17-56-04] [INFO] - XcomUtil_Improved_Gauss v1.0
[27-07-2024_17-56-04] [INFO] - XcomUtil_Infinite_Gauss v1.0
[27-07-2024_17-56-04] [INFO] - XcomUtil_Starting_Improved_Base_TFTD v1.0
[27-07-2024_17-56-04] [INFO] - XcomUtil_Pistol_Auto_Shot_TFTD v1.0
[27-07-2024_17-56-04] [INFO] - XcomUtil_Starting_Defensive_Base_TFTD v1.0
[27-07-2024_17-56-04] [INFO] - XcomUtil_Starting_Defensive_Improved_Base_TFTD v1.0
[27-07-2024_17-56-04] [INFO] - XcomUtil_Triton_Weapon_Slot v1.0
[27-07-2024_17-56-04] [INFO] - XcomUtil_Statstrings_TFTD v1.0
[27-07-2024_17-56-04] [INFO] - UFOextender_Gun_Melee_TFTD v1.0
[27-07-2024_17-56-05] [INFO] Loading begins...
[27-07-2024_17-56-05] [INFO] Pre-loading rulesets...
[27-07-2024_17-56-05] [INFO] Loading vanilla resources...
[27-07-2024_17-56-05] [INFO] Loading rulesets...
[27-07-2024_17-56-05] [INFO] Loading rulesets done.
[27-07-2024_17-56-05] [INFO] Loading fonts... Font.dat
[27-07-2024_17-56-05] [INFO] Lazy loading: 0
[27-07-2024_17-56-05] [INFO] Loading extra resources from ruleset...
[27-07-2024_17-56-05] [INFO] Loading custom palettes from ruleset...
[27-07-2024_17-56-05] [INFO] Making palette backups...
[27-07-2024_17-56-05] [INFO] After load.
[27-07-2024_17-56-05] [INFO] Loading ended.
[27-07-2024_17-56-05] [INFO] Data loaded successfully.
[27-07-2024_17-56-05] [INFO] Loading language...
[27-07-2024_17-56-05] [INFO] Language loaded successfully.
[27-07-2024_17-56-05] [INFO] OpenXcom started successfully!
[27-07-2024_17-56-05] [INFO] Playing flx, 320x200, 200 frames
[27-07-2024_17-56-07] [INFO] SDL_mixer initialized successfully.
[27-07-2024_17-56-08] [INFO] Update check status: 7; newVersion: v7.13;
[27-07-2024_17-56-16] [INFO] Attempting to set display to 3840x2160x8...
[27-07-2024_17-56-16] [INFO] Display set to 3840x2160x8.
[27-07-2024_17-56-16] [INFO] Using software scaling routine. For best results, try an OpenGL filter.
[27-07-2024_17-56-32] [INFO] Attempting to set display to 3840x2160x32...
[27-07-2024_17-56-32] [INFO] Display set to 3840x2160x32.
[27-07-2024_17-56-32] [FATAL] A fatal error has occurred: Segmentation fault.
[27-07-2024_17-56-32] [FATAL] ??
[27-07-2024_17-56-32] [FATAL] ??
[27-07-2024_17-56-32] [FATAL] ??
[27-07-2024_17-56-32] [FATAL] Unfortunately, no stack trace information is available
[27-07-2024_17-56-37] [FATAL] OpenXcom has crashed: Segmentation fault.
Log file: C:/Users/Bouwhuis/Documents/OpenXcom/openxcom.log
If this error was unexpected, please report it on the OpenXcom forum (OXCE board).
The following can help us solve the problem:
1. a saved game from just before the crash (helps 98%)
2. a detailed description how to reproduce the crash (helps 80%)
3. a log file (helps 10%)
4. a screenshot of this error message (helps 5%)

Reproduction steps:
1. Go to the options screen
2. Go to the video options
3. Select 'Disabled' for the display filter
4. Press 'Ok'.
5. #CRASH#
« Last Edit: July 27, 2024, 07:19:25 pm by Sander Bouwhuis »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9077
    • View Profile
Re: [Crash] Pressing 'Ok' in options screen crashes OpenXComEx
« Reply #1 on: July 27, 2024, 07:16:53 pm »
which display filter are you using?

Offline Sander Bouwhuis

  • Sergeant
  • **
  • Posts: 26
    • View Profile
Re: [Crash] Pressing 'Ok' in options screen crashes OpenXComEx
« Reply #2 on: July 27, 2024, 07:20:18 pm »
Sorry, I updated the original comment before I saw your response.
I used the 'disabled' display filter. I don't know what 'display filter' does exactly.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9077
    • View Profile
Re: [Crash] Pressing 'Ok' in options screen crashes OpenXComEx
« Reply #3 on: July 27, 2024, 07:22:41 pm »
Did you change from a different filter to Disabled?
If yes, what was the original filter?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9077
    • View Profile
Re: [Crash] Pressing 'Ok' in options screen crashes OpenXComEx
« Reply #4 on: July 27, 2024, 07:36:35 pm »
Also, maybe try a smaller resolution than 3840x2160, if it helps or not.
(I can only test a maximum of 1920x1200 on my laptop.)


@all: does it crash for anyone else? for me, it doesn't...

Online Delian

  • Colonel
  • ****
  • Posts: 492
    • View Profile
Re: [Crash] Pressing 'Ok' in options screen crashes OpenXComEx
« Reply #5 on: July 27, 2024, 08:44:56 pm »
If I want to crash the game, I just do: <video attached>

log:
Code: [Select]
[27-07-2024_19-39-40] [INFO] OpenXcom started successfully!
[27-07-2024_19-39-40] [INFO] Using software scaling routine. For best results, try an OpenGL filter.
[27-07-2024_19-39-49] [WARN] Couldn't get display resolutions
[27-07-2024_19-39-52] [INFO] Attempting to set display to 1280x720x32...
[27-07-2024_19-39-52] [INFO] Display set to 1280x720x32.
[27-07-2024_19-39-55] [INFO] Attempting to set display to 1280x720x32...
[27-07-2024_19-39-56] [INFO] Display set to 1280x720x32.
[27-07-2024_19-39-56] [FATAL] A fatal error has occurred: Segmentation fault.
[27-07-2024_19-39-56] [FATAL] 0x5e3460 OpenXcom::CrossPlatform::stackTrace(void*)
[27-07-2024_19-39-56] [FATAL] 0x5e42e0 OpenXcom::CrossPlatform::crashDump(void*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
[27-07-2024_19-39-56] [FATAL] 0x41c7f0 signalLogger(int)
[27-07-2024_19-39-56] [FATAL] 0xa2c3d0 OpenXcom::UfopaediaStartState::think()
[27-07-2024_19-39-56] [FATAL] 0x7ffa9c8ff5d0 _C_specific_handler
[27-07-2024_19-39-56] [FATAL] 0x7ffa9c914f20 _chkstk
[27-07-2024_19-39-56] [FATAL] 0x7ffa9c88ddd0 RtlFindCharInUnicodeString
[27-07-2024_19-39-56] [FATAL] 0x7ffa9c914010 KiUserExceptionDispatcher
[27-07-2024_19-39-56] [FATAL] 0xa3a8a0 SDL_FillRect
[27-07-2024_19-39-56] [FATAL] 0x6c15d0 OpenXcom::Surface::CleanSdlSurface(SDL_Surface*)
[27-07-2024_19-39-56] [FATAL] 0x5fb890 OpenXcom::Game::run()
[27-07-2024_19-39-56] [FATAL] 0x41c950 SDL_main
[27-07-2024_19-39-56] [FATAL] 0xa2df00 console_main
[27-07-2024_19-39-56] [FATAL] 0xa2e020 WinMain
[27-07-2024_19-39-56] [FATAL] ??
[27-07-2024_19-39-56] [FATAL] ??
[27-07-2024_19-39-56] [FATAL] 0x7ffa9b302560 BaseThreadInitThunk
[27-07-2024_19-39-56] [FATAL] 0x7ffa9c8caf00 RtlUserThreadStart
[27-07-2024_19-39-58] [FATAL] OpenXcom has crashed: Segmentation fault.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9077
    • View Profile
Re: [Crash] Pressing 'Ok' in options screen crashes OpenXComEx
« Reply #6 on: July 27, 2024, 08:55:07 pm »
If I want to crash the game, I just do: <video attached>

Yes, but that one is known and happens in all versions of OXC and OXCE.

I was trying to figure out if this is a new issue.
(the logs are different, so probably it is)

Online Delian

  • Colonel
  • ****
  • Posts: 492
    • View Profile
Re: [Crash] Pressing 'Ok' in options screen crashes OpenXComEx
« Reply #7 on: July 27, 2024, 09:08:37 pm »
When you set to Disabled, I think it should say 3840x2160x8, but in his log the last change says 3840x2160x32. So I think his last filter change was not to Disabled but to some other filter.

Offline Sander Bouwhuis

  • Sergeant
  • **
  • Posts: 26
    • View Profile
Re: [Crash] Pressing 'Ok' in options screen crashes OpenXComEx
« Reply #8 on: July 27, 2024, 09:14:36 pm »
I went from the original ('*raw) to disabled, and then it crashes.
When I just leave it on *raw, the game works. I don't know what the 'display filter' does. I was experimenting to try and discover what it was.

What should I set this to to get the best quality?

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [Crash] Pressing 'Ok' in options screen crashes OpenXComEx
« Reply #9 on: July 27, 2024, 09:22:27 pm »
What should I set this to to get the best quality?

Use vanilla settings, filters are ew.

I'm not even joking.

Offline Sander Bouwhuis

  • Sergeant
  • **
  • Posts: 26
    • View Profile
Re: [Crash] Pressing 'Ok' in options screen crashes OpenXComEx
« Reply #10 on: July 27, 2024, 09:32:41 pm »
Is 'vanilla' settings the 'disabled' option? If so, then I can't run that because it crashes.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9077
    • View Profile
Re: [Crash] Pressing 'Ok' in options screen crashes OpenXComEx
« Reply #11 on: July 27, 2024, 09:57:29 pm »
Is 'vanilla' settings the 'disabled' option? If so, then I can't run that because it crashes.

Yes, "Disabled" is the default.

You can also click "Restore Defaults" button; or delete the options.cfg file (while the game isn't running)... both should reset to "Disabled".

Offline Sander Bouwhuis

  • Sergeant
  • **
  • Posts: 26
    • View Profile
Re: [Crash] Pressing 'Ok' in options screen crashes OpenXComEx
« Reply #12 on: July 27, 2024, 11:48:07 pm »
I deleted the options.cfg file and used the halving method to reintroduce the settings.

Finally, I found that this single setting crashes the game when I change from 'raw' to 'disabled'.

WORKS
useOpenGL: false

#CRASH#
useOpenGL: true

Code: [Select]
[27-07-2024_22-45-41] [INFO] OpenXcom Version: Extended 7.13 (v2024-07-26)
[27-07-2024_22-45-41] [INFO] Platform: Windows 64 bit
[27-07-2024_22-45-41] [INFO] Data folder is:
[27-07-2024_22-45-41] [INFO] Data search is:
[27-07-2024_22-45-41] [INFO] - C:/Users/Bouwhuis/Documents/OpenXcom/
[27-07-2024_22-45-41] [INFO] - E:/Games/Installed/OpenXcom/
[27-07-2024_22-45-41] [INFO] User folder is: C:/Users/Bouwhuis/Documents/OpenXcom/
[27-07-2024_22-45-41] [INFO] Config folder is: C:/Users/Bouwhuis/Documents/OpenXcom/
[27-07-2024_22-45-41] [INFO] Options loaded successfully.
[27-07-2024_22-45-41] [INFO] SDL initialized successfully.
[27-07-2024_22-45-42] [INFO] SDL_mixer initialized successfully.
[27-07-2024_22-45-42] [INFO] Attempted locale:
[27-07-2024_22-45-42] [INFO] Detected locale: C
[27-07-2024_22-45-42] [INFO] Attempting to set display to 3840x2160x32...
[27-07-2024_22-45-42] [INFO] Display set to 3840x2160x32.
[27-07-2024_22-45-42] [INFO] Loading data...
[27-07-2024_22-45-42] [INFO] Scanning standard mods in 'E:/Games/Installed/OpenXcom/'...
[27-07-2024_22-45-42] [INFO] Scanning user mods in 'C:/Users/Bouwhuis/Documents/OpenXcom/'...
[27-07-2024_22-45-42] [INFO] Active mods:
[27-07-2024_22-45-42] [INFO] - xcom2 v1.0
[27-07-2024_22-45-42] [INFO] - Aliens_Pick_Up_Weapons_TFTD v1.0
[27-07-2024_22-45-42] [INFO] - OpenXCom_Unlimited_Waypoints_TFTD v1.0
[27-07-2024_22-45-42] [INFO] - Smarter_Equip_TFTD v1.0
[27-07-2024_22-45-42] [INFO] - StrategyCore_Swap_Small_USOs_TFTD v1.0
[27-07-2024_22-45-42] [INFO] - UFOextender_Psionic_Line_Of_Fire_TFTD v1.0
[27-07-2024_22-45-42] [INFO] - XcomUtil_Fighter_Transports_TFTD v1.0
[27-07-2024_22-45-42] [INFO] - XcomUtil_High_Explosive_Damage_TFTD v1.0
[27-07-2024_22-45-42] [INFO] - XcomUtil_Improved_Gauss v1.0
[27-07-2024_22-45-42] [INFO] - XcomUtil_Infinite_Gauss v1.0
[27-07-2024_22-45-42] [INFO] - XcomUtil_Starting_Improved_Base_TFTD v1.0
[27-07-2024_22-45-42] [INFO] - XcomUtil_Pistol_Auto_Shot_TFTD v1.0
[27-07-2024_22-45-42] [INFO] - XcomUtil_Starting_Defensive_Base_TFTD v1.0
[27-07-2024_22-45-42] [INFO] - XcomUtil_Starting_Defensive_Improved_Base_TFTD v1.0
[27-07-2024_22-45-42] [INFO] - XcomUtil_Triton_Weapon_Slot v1.0
[27-07-2024_22-45-42] [INFO] - XcomUtil_Statstrings_TFTD v1.0
[27-07-2024_22-45-42] [INFO] - UFOextender_Gun_Melee_TFTD v1.0
[27-07-2024_22-45-43] [INFO] Loading begins...
[27-07-2024_22-45-43] [INFO] Pre-loading rulesets...
[27-07-2024_22-45-43] [INFO] Loading vanilla resources...
[27-07-2024_22-45-43] [INFO] Loading rulesets...
[27-07-2024_22-45-44] [INFO] Loading rulesets done.
[27-07-2024_22-45-44] [INFO] Loading fonts... Font.dat
[27-07-2024_22-45-44] [INFO] Lazy loading: 0
[27-07-2024_22-45-44] [INFO] Loading extra resources from ruleset...
[27-07-2024_22-45-44] [INFO] Loading custom palettes from ruleset...
[27-07-2024_22-45-44] [INFO] Making palette backups...
[27-07-2024_22-45-44] [INFO] After load.
[27-07-2024_22-45-44] [INFO] Loading ended.
[27-07-2024_22-45-44] [INFO] Data loaded successfully.
[27-07-2024_22-45-44] [INFO] Loading language...
[27-07-2024_22-45-44] [INFO] Language loaded successfully.
[27-07-2024_22-45-44] [INFO] OpenXcom started successfully!
[27-07-2024_22-45-44] [INFO] Playing flx, 320x200, 200 frames
[27-07-2024_22-45-46] [INFO] SDL_mixer initialized successfully.
[27-07-2024_22-45-46] [INFO] Update check status: 7; newVersion: v7.13;
[27-07-2024_22-45-54] [INFO] Attempting to set display to 3840x2160x8...
[27-07-2024_22-45-54] [INFO] Display set to 3840x2160x8.
[27-07-2024_22-45-54] [INFO] Using software scaling routine. For best results, try an OpenGL filter.
[27-07-2024_22-46-09] [INFO] Attempting to set display to 3840x2160x32...
[27-07-2024_22-46-09] [INFO] Display set to 3840x2160x32.
[27-07-2024_22-46-09] [FATAL] A fatal error has occurred: Segmentation fault.
[27-07-2024_22-46-09] [FATAL] 0x7ff60c0ff660 OpenXcom::CrossPlatform::stackTrace(void*)
[27-07-2024_22-46-09] [FATAL] 0x7ff60c100b20 OpenXcom::CrossPlatform::crashDump(void*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
[27-07-2024_22-46-09] [FATAL] 0x7ff60be9dfc0 signalLogger(int)
[27-07-2024_22-46-09] [FATAL] 0x7ff60c6d99b0 OpenXcom::UfopaediaStartState::think()
[27-07-2024_22-46-09] [FATAL] 0x7ff8ed0bcdc0 _C_specific_handler
[27-07-2024_22-46-09] [FATAL] 0x7ff8ed0d2810 _chkstk
[27-07-2024_22-46-09] [FATAL] 0x7ff8ed0820d0 RtlRaiseException
[27-07-2024_22-46-09] [FATAL] 0x7ff8ed0d1410 KiUserExceptionDispatcher
[27-07-2024_22-46-09] [FATAL] 0x7ff60c6e7c50 SDL_FillRect
[27-07-2024_22-46-09] [FATAL] 0x7ff60c23dc60 OpenXcom::Surface::CleanSdlSurface(SDL_Surface*)
[27-07-2024_22-46-09] [FATAL] 0x7ff60c11f8e0 OpenXcom::Game::run()
[27-07-2024_22-46-09] [FATAL] 0x7ff60be9e060 SDL_main
[27-07-2024_22-46-09] [FATAL] 0x7ff60c6daff0 console_main
[27-07-2024_22-46-09] [FATAL] 0x7ff60c6db130 WinMain
[27-07-2024_22-46-09] [FATAL] ??
[27-07-2024_22-46-10] [FATAL] ??
[27-07-2024_22-46-10] [FATAL] 0x7ff8eba97360 BaseThreadInitThunk
[27-07-2024_22-46-10] [FATAL] 0x7ff8ed07cc70 RtlUserThreadStart
[27-07-2024_22-46-12] [FATAL] OpenXcom has crashed: Segmentation fault.
Log file: C:/Users/Bouwhuis/Documents/OpenXcom/openxcom.log
If this error was unexpected, please report it on the OpenXcom forum (OXCE board).
The following can help us solve the problem:
1. a saved game from just before the crash (helps 98%)
2. a detailed description how to reproduce the crash (helps 80%)
3. a log file (helps 10%)
4. a screenshot of this error message (helps 5%)

So, as long as you use text editing to change the setting to useOpenGL: false, the game doesn't crash (and works in 'disabled' mode).
« Last Edit: July 27, 2024, 11:52:20 pm by Sander Bouwhuis »

Online Delian

  • Colonel
  • ****
  • Posts: 492
    • View Profile
Re: [Crash] Pressing 'Ok' in options screen crashes OpenXComEx
« Reply #13 on: July 28, 2024, 01:05:55 am »
Why's there a 15 second delay in there? After you change to Disabled, do you perhaps wait 15 seconds (where it counts down if you want to keep the settings), and then it crashes?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9077
    • View Profile
Re: [Crash] Pressing 'Ok' in options screen crashes OpenXComEx
« Reply #14 on: July 28, 2024, 08:36:12 am »
Finally, I found that this single setting crashes the game when I change from 'raw' to 'disabled'.

WORKS
useOpenGL: false

#CRASH#
useOpenGL: true

So, as long as you use text editing to change the setting to useOpenGL: false, the game doesn't crash (and works in 'disabled' mode).

When you change the display filter, `useOpenGL` is also automatically changed to the required value.
("Disabled" requires value `false`)

You are not supposed to edit this value manually.