Author Topic: [Solved] Amiga fonts mod seems to crash OXCE on Linux  (Read 2232 times)

Offline Kzer-Za

  • Colonel
  • ****
  • Posts: 140
    • View Profile
[Solved] Amiga fonts mod seems to crash OXCE on Linux
« on: August 02, 2019, 10:36:08 am »
I decided to post it here instead of the mod topic because no one seems to be having trouble with the mod, probably because most people using it are on Windows.

The game crashes when I try to start it after setting "active: true" for this mod in options.cfg. If I set it to "false", start the game, and enable the mod from the menu, then the game crashes as soon as I click OK. If I do not enable the mod, the game can be played without any error messages in openxcom.log.

Here's the content of the log after the game crashes with the mod enabled:

Code: [Select]
[02-08-2019_10-19-21] [INFO] OpenXcom Version: Extended 5.5.2 (v2019-06-18)
[02-08-2019_10-19-21] [INFO] Platform: Linux
[02-08-2019_10-19-21] [INFO] Data folder is: /usr/share/openxcom/
[02-08-2019_10-19-21] [INFO] Data search is:
[02-08-2019_10-19-21] [INFO] - /mnt/Data/Games/XCOM/
[02-08-2019_10-19-21] [INFO] - /home/denis/.local/share/openxcom/
[02-08-2019_10-19-21] [INFO] - /usr/local/share/openxcom/
[02-08-2019_10-19-21] [INFO] - /usr/share/openxcom/
[02-08-2019_10-19-21] [INFO] - /usr/local/share/openxcom/
[02-08-2019_10-19-21] [INFO] - /usr/share/openxcom/
[02-08-2019_10-19-21] [INFO] - ./
[02-08-2019_10-19-21] [INFO] User folder is: /mnt/Data/Games/XCOM/
[02-08-2019_10-19-21] [INFO] Config folder is: /mnt/Data/Games/XCOM/
[02-08-2019_10-19-21] [INFO] Options loaded successfully.
[02-08-2019_10-19-21] [INFO] SDL initialized successfully.
[02-08-2019_10-19-21] [INFO] SDL_mixer initialized successfully.
[02-08-2019_10-19-21] [INFO] Attempted locale: en_DK.utf8
[02-08-2019_10-19-21] [INFO] Detected locale: en_DK.utf8
[02-08-2019_10-19-21] [INFO] Attempting to set display to 1920x1080x8...
[02-08-2019_10-19-21] [INFO] Display set to 1920x1080x8.
[02-08-2019_10-19-21] [INFO] Loading data...
[02-08-2019_10-19-21] [INFO] Scanning standard mods in '/usr/share/openxcom/'...
[02-08-2019_10-19-21] [INFO] Scanning user mods in '/mnt/Data/Games/XCOM/'...
[02-08-2019_10-19-21] [ERROR] FileMap::mapExtResources(xcom2, TFTD): external resources not found.
[02-08-2019_10-19-21] [INFO] Loading rulesets...
[02-08-2019_10-19-22] [INFO] Loading fonts... AmigaFont.dat
[02-08-2019_10-19-22] [INFO] Lazy loading: 1
[02-08-2019_10-19-22] [INFO] Loading custom palettes from ruleset...
[02-08-2019_10-19-22] [INFO] Making palette backups...
[02-08-2019_10-19-22] [INFO] Data loaded successfully.
[02-08-2019_10-19-22] [INFO] Loading language...
[02-08-2019_10-19-22] [INFO] Language loaded successfully.
[02-08-2019_10-19-22] [INFO] OpenXcom started successfully!
[02-08-2019_10-19-22] [FATAL] A fatal error has occurred: Segmentation fault.
[02-08-2019_10-19-22] [FATAL] openxcom(OpenXcom::CrossPlatform::crashDump(void*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x4e5) [0x84a275]
[02-08-2019_10-19-22] [FATAL] openxcom(signalLogger(int)+0x3e) [0x680ede]
[02-08-2019_10-19-22] [FATAL] linux-gate.so.1(__kernel_sigreturn+0x0) [0xb7f97d5c]
[02-08-2019_10-19-22] [FATAL] openxcom(OpenXcom::Font::getCharSize(unsigned int)+0x1a6) [0x865776]
[02-08-2019_10-19-22] [FATAL] openxcom(+0x584162) [0x9e9162]
[02-08-2019_10-19-22] [FATAL] openxcom(OpenXcom::TextButton::initText(OpenXcom::Font*, OpenXcom::Font*, OpenXcom::Language*)+0x20) [0x9ea530]
[02-08-2019_10-19-22] [FATAL] openxcom(OpenXcom::State::add(OpenXcom::Surface*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, OpenXcom::Surface*)+0x2e2) [0x95b532]
[02-08-2019_10-19-22] [FATAL] openxcom(OpenXcom::MainMenuState::MainMenuState()+0x348) [0xa0eb78]
[02-08-2019_10-19-22] [FATAL] openxcom(OpenXcom::GoToMainMenuState::init()+0x66) [0xa0f7b6]
[02-08-2019_10-19-22] [FATAL] openxcom(OpenXcom::Game::run()+0xe5) [0x86e2c5]
[02-08-2019_10-19-22] [FATAL] openxcom(main+0x192) [0x6544b2]
[02-08-2019_10-19-22] [FATAL] /usr/lib/libc.so.6(__libc_start_main+0xf9) [0xb78447b9]
[02-08-2019_10-19-22] [FATAL] openxcom(_start+0x35) [0x659d45]
[02-08-2019_10-19-23] [FATAL] OpenXcom has crashed: Segmentation fault.
Log file: /mnt/Data/Games/XCOM/openxcom.log

The link to the mod: https://openxcom.org/forum/index.php?topic=1713.0
« Last Edit: February 11, 2023, 06:10:59 pm by Meridian »

Offline R1dO

  • Colonel
  • ****
  • Posts: 436
    • View Profile
Re: Amiga fonts mod seems to crash OXCE on Linux
« Reply #1 on: August 02, 2019, 02:16:05 pm »
Since you linked to the starting post i assume you are using the download from that one.

Does the error still occur when using the fix provided by Meridian (https://openxcom.org/forum/index.php/topic,1713.msg76884.html#msg76884)?

Offline Kzer-Za

  • Colonel
  • ****
  • Posts: 140
    • View Profile
Re: Amiga fonts mod seems to crash OXCE on Linux
« Reply #2 on: August 02, 2019, 06:26:46 pm »
Thanks! I didn't think to read the thread to the end, and when the game started crashing and my search of the forum by "amiga fonts fatal error" didn't find anything related, I turned here. Feeling embarrassed now :)

Offline R1dO

  • Colonel
  • ****
  • Posts: 436
    • View Profile
Re: Amiga fonts mod seems to crash OXCE on Linux
« Reply #3 on: August 02, 2019, 07:50:58 pm »
No need to feel embarrassed, it is easy to overlook.

Enjoy your amiga fonts