aliens

Author Topic: OXCE (OpenXcom Extended) main thread  (Read 593938 times)

Offline zxalexis

  • Squaddie
  • *
  • Posts: 2
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #570 on: July 01, 2020, 07:50:12 pm »
I have trouble with latest builds on linux (6.5.5 including latest daily) with Area51 mod
The error I see: error processing 'ZOMBIE_ARMOR' in armors: Item STR_ZOMBIE_CORPSE not found

Logfile:
Spoiler:
[01-07-2020_19-42-39]   [INFO]   OpenXcom Version: Extended 6.5.5 (v2020-06-21)
[01-07-2020_19-42-39]   [INFO]   Platform: Linux
[01-07-2020_19-42-39]   [INFO]   Data folder is:
[01-07-2020_19-42-39]   [INFO]   Data search is:
[01-07-2020_19-42-39]   [INFO]   - /home/zx/.local/share/openxcom/
[01-07-2020_19-42-39]   [INFO]   - /usr/local/share/openxcom/
[01-07-2020_19-42-39]   [INFO]   - /usr/share/openxcom/
[01-07-2020_19-42-39]   [INFO]   - /usr/local/share/openxcom/
[01-07-2020_19-42-39]   [INFO]   - /usr/share/openxcom/
[01-07-2020_19-42-39]   [INFO]   - ./
[01-07-2020_19-42-39]   [INFO]   User folder is: /home/zx/.local/share/openxcom/
[01-07-2020_19-42-39]   [INFO]   Config folder is: /home/zx/.config/openxcom/
[01-07-2020_19-42-39]   [INFO]   Options loaded successfully.
[01-07-2020_19-42-39]   [INFO]   SDL initialized successfully.
[01-07-2020_19-42-39]   [INFO]   SDL_mixer initialized successfully.
[01-07-2020_19-42-39]   [INFO]   Attempted locale: en_US.utf8
[01-07-2020_19-42-39]   [INFO]   Detected locale: en_US.utf8
[01-07-2020_19-42-39]   [INFO]   Attempting to set display to 1280x800x32...
[01-07-2020_19-42-40]   [INFO]   Display set to 1280x800x32.
[01-07-2020_19-42-40]   [INFO]   Loading data...
[01-07-2020_19-42-40]   [INFO]   Scanning standard mods in '/usr/share/openxcom/'...
[01-07-2020_19-42-40]   [ERROR]   Invalid standard mod 'Area51', skipping.
[01-07-2020_19-42-40]   [INFO]   Scanning user mods in '/home/zx/.local/share/openxcom/'...
[01-07-2020_19-42-40]   [INFO]   Active mods:
[01-07-2020_19-42-40]   [INFO]   - xcom1 v1.0
[01-07-2020_19-42-40]   [INFO]   - area51 v0.972
[01-07-2020_19-42-40]   [INFO]   Loading rulesets...
[01-07-2020_19-42-41]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_XENOPHOBIA_A. Please review the ruleset.
[01-07-2020_19-42-41]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_XENOPHOBIA_B. Please review the ruleset.
[01-07-2020_19-42-41]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_XENOPHOBIA_C. Please review the ruleset.
[01-07-2020_19-42-41]   [ERROR]   Crossing the prime meridian in mission zones requires a different syntax, region: STR_SOUTH_ATLANTIC, zone: 1, area: 6, lonMin: 359.82, lonMax: 0.95
[01-07-2020_19-42-41]   [ERROR]     Wrong example: [350,   8, 20, 30]
[01-07-2020_19-42-41]   [ERROR]   Correct example: [350, 368, 20, 30]
[01-07-2020_19-42-41]   [ERROR]   Error processing 'ZOMBIE_ARMOR' in armors: Item STR_ZOMBIE_CORPSE not found

Online Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 9089
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #571 on: July 01, 2020, 09:43:08 pm »
Find this:

Code: [Select]
  - type: ZOMBIE_ARMOR
    spriteInv: INV_ZOMBIE
    spriteSheet: ZOMBIE.PCK
    corpseBattle:
      - STR_ZOMBIE_CORPSE

in armors_Area_51.rul, and delete the last two lines to get this:

Code: [Select]
  - type: ZOMBIE_ARMOR
    spriteInv: INV_ZOMBIE
    spriteSheet: ZOMBIE.PCK

Offline zxalexis

  • Squaddie
  • *
  • Posts: 2
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #572 on: July 01, 2020, 10:23:36 pm »
delete the last two lines to get this:

Thanks, that helped. :)

Offline krautbernd

  • Commander
  • *****
  • Posts: 1108
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #573 on: July 05, 2020, 10:57:53 pm »
I'm getting random tab-outs/minimize to desktop during gameplay and i'm not sure if this is related to me upgrading to 6.5.3 - anybody having similar issues?

Offline krautbernd

  • Commander
  • *****
  • Posts: 1108
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #574 on: July 08, 2020, 01:55:39 pm »
I am currently encountering segfaults on 6.5.3 when the game tries to recover panicking/surrendering units that can transform and have a valid

Code: [Select]
corpseBattle:
entry. Case in point would be a panicking Space Technomad in XCF, see here and follow-up here. An invalid/non-existing item doesn't lead to a crash.

Is this a known problem?

Online Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 9089
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #575 on: July 08, 2020, 02:01:37 pm »
Is this a known problem?

Can you provide the log file?
There is a known issue, but it should be super rare.

Offline krautbernd

  • Commander
  • *****
  • Posts: 1108
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #576 on: July 08, 2020, 02:15:18 pm »
Code: [Select]
[08-07-2020_12-41-08] [INFO] SDL_mixer initialized successfully.
[08-07-2020_12-41-20] [FATAL] A fatal error has occurred: Segmentation fault.
[08-07-2020_12-41-20] [FATAL] 0x5a1100 OpenXcom::CrossPlatform::stackTrace(void*)
[08-07-2020_12-41-20] [FATAL] 0x5a1f70 OpenXcom::CrossPlatform::crashDump(void*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
[08-07-2020_12-41-20] [FATAL] 0x41c7f0 signalLogger(int)
[08-07-2020_12-41-20] [FATAL] 0x97ffe0 OpenXcom::UfopaediaStartState::think()
[08-07-2020_12-41-20] [FATAL] 0x76e471cc _C_specific_handler
[08-07-2020_12-41-20] [FATAL] 0x76e5be00 _chkstk
[08-07-2020_12-41-20] [FATAL] 0x76e2fed0 RtlInitializeResource
[08-07-2020_12-41-20] [FATAL] 0x76e5b510 KiUserExceptionDispatcher
[08-07-2020_12-41-20] [FATAL] 0x5265d0 OpenXcom::DebriefingState::recoverAlien(OpenXcom::BattleUnit*, OpenXcom::Base*)
[08-07-2020_12-41-20] [FATAL] 0x527920 OpenXcom::DebriefingState::prepareDebriefing()
[08-07-2020_12-41-20] [FATAL] 0x52ca20 OpenXcom::DebriefingState::DebriefingState()
[08-07-2020_12-41-20] [FATAL] 0x510a50 OpenXcom::BattlescapeState::finishBattle(bool, int)
[08-07-2020_12-41-20] [FATAL] 0x5b9360 OpenXcom::Game::run()
[08-07-2020_12-41-20] [FATAL] 0x41c950 SDL_main
[08-07-2020_12-41-20] [FATAL] 0x981b10 console_main
[08-07-2020_12-41-20] [FATAL] 0x981c30 WinMain
[08-07-2020_12-41-20] [FATAL] ??
[08-07-2020_12-41-20] [FATAL] ??
[08-07-2020_12-41-20] [FATAL] 0x76ce5560 BaseThreadInitThunk
[08-07-2020_12-41-20] [FATAL] 0x76e43710 RtlUserThreadStart
[08-07-2020_12-41-23] [FATAL] OpenXcom has crashed: Segmentation fault.

That should be the relevant part, let me know if you need the rest of the log or the save file.
« Last Edit: July 08, 2020, 02:17:14 pm by krautbernd »

Online Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 9089
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #577 on: July 08, 2020, 07:59:30 pm »
That should be the relevant part, let me know if you need the rest of the log or the save file.

Save would be nice.

Offline krautbernd

  • Commander
  • *****
  • Posts: 1108
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #578 on: July 08, 2020, 08:22:38 pm »
This should work without any mods beside XCF (at least it does for me).

Segfault happens in XCF 1.4 if you destroy the bot, leading to the other enemy units surrendering.

A workaround - whether intended or not - has been introduced in XCF 1.4a, where the corpseitem for CYBERWEB_SPACE_TECHNOMAD has been changed from STR_CYBERWEB_TECHNOMAD_CORPSE to STR_CYBERWEB_SPACE_TECHNOMAD_CORPSE (which is not defined). Replacing STR_CYBERWEB_SPACE_TECHNOMAD_CORPSE with any valid item definition leads to a segfault upon enemy units surrendering.

Online Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 9089
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #579 on: July 08, 2020, 08:45:32 pm »
doesn't crash for me
which oxce build are you using exactly? (exact package download name pls)
« Last Edit: July 08, 2020, 08:47:56 pm by Meridian »

Offline krautbernd

  • Commander
  • *****
  • Posts: 1108
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #580 on: July 08, 2020, 09:02:41 pm »
Extended-6.5.3-01283d3a0-2020-05-28-win64.7z

If you're using 1.4a, can you replace armors_XCOMFILES.rul with the one attached to this post?

For some reason in 1.4a the mission also doesn't automatically end upon destroying the bot, but the game crashed upon ending the turn (which leads to the units surrendering).

EDIT:
Just double-checking, this is the bot that needs to be destroyed:
« Last Edit: July 08, 2020, 09:15:30 pm by krautbernd »

Offline Yankes

  • Global Moderator
  • Commander
  • ***
  • Posts: 3350
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #581 on: July 08, 2020, 09:14:29 pm »
New OXCE and XCF do not crash for me.

Online Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 9089
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #582 on: July 08, 2020, 09:14:53 pm »
Extended-6.5.3-01283d3a0-2020-05-28-win64.7z

I'm using the same one, with XCF openxcom_xfiles_1.4.zip from mod.io, but no crash.

It's quite likely that rare known bug I mentioned earlier.
« Last Edit: July 08, 2020, 09:43:10 pm by Meridian »

Online Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 9089
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #583 on: July 08, 2020, 09:36:53 pm »
If you're using 1.4a, can you replace armors_XCOMFILES.rul with the one attached to this post?

For some reason in 1.4a the mission also doesn't automatically end upon destroying the bot, but the game crashed upon ending the turn (which leads to the units surrendering).

With XCF openxcom_xfiles_1.4a.zip + your custom armors_XCOMFILES.rul it does crash.
And it's not the rare known bug.

It's simply that item "STR_CYBERWEB_SPACE_TECHNOMAD" does not exist, so the game cannot check if the alien should be transformed into items or not.... this feature here highlighted in yellow: https://openxcom.org/forum/index.php/topic,6868.msg127441.html#msg127441

Offline krautbernd

  • Commander
  • *****
  • Posts: 1108
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #584 on: July 08, 2020, 09:46:45 pm »
But that's the case for 1.4 as well as 1.4a - the only difference is that the corpseitem exists in 1.4 (and crashes the game) and doesn't in 1.4a.

The only thing I did was change the corpseitem.

Why does the corpseitem make any difference if the unit in question is surrendering? And why does a valid corpseitem crash the game, while using an invalid one doesn't?


EDIT:

This is the armordefinition in question (from 1.4a):
Code: [Select]
  - type: STR_CYBERWEB_SPACE_TECHNOMAD_ARMOR
    spriteSheet: CYBERWEB_SPACE_TECHNOMAD.PCK
    spriteInv: inventory_SPACE_TECHNOMAD
    corpseBattle:
      - STR_CYBERWEB_SPACE_TECHNOMAD_CORPSE

STR_CYBERWEB_SPACE_TECHNOMAD_CORPSE does not exist. This doesn't crash the game.

Code: [Select]
  - type: STR_CYBERWEB_SPACE_TECHNOMAD_ARMOR
    spriteSheet: CYBERWEB_SPACE_TECHNOMAD.PCK
    spriteInv: inventory_SPACE_TECHNOMAD
    corpseBattle:
      - STR_CYBERWEB_SPACE_TECHNOMAD_CORPSE

This is the "old" (1.4) armor definition. STR_CYBERWEB_SPACE_TECHNOMAD_CORPSE exists. This crashes the game.

Note that the unit is surrendering and is not killed.
« Last Edit: July 08, 2020, 09:55:45 pm by krautbernd »