long-war-2 / lwotc

Port of Long War 2 to XCOM 2's War of the Chosen expansion
342 stars 89 forks source link

Game crashes when Warlock chosen is killed on retaliation mission #1624

Open kaphula opened 10 months ago

kaphula commented 10 months ago

Game crashes on ironman when chosen is killed. Only LWOTC2 mod from Steam and its dependencies installed. OS: Linux.

On the save file you should be able to double barrel dead the chosen on the same turn:

save_IRONMAN- Campaign 546.zip

Tvrdoglavi commented 10 months ago

I have the same issue on first time killing the chosen in the game. For me it was one of those "Unhindered Operations" missions.

nusendra commented 10 months ago

I have alot of bad experiences on playing ironman. Im pretty sure somehwre said that they don't recommend ironman on LWOTC

richard-melvin commented 10 months ago

on windows and latest beta, the provided save doesn't crash, either when the warlock dies, or the mission completes. nothing really unusual in the log. One soldier is missing a headshot (placeholder img instead).

Tvrdoglavi commented 10 months ago

The timing of the crash is interesting. I assume that the game calculates the result of an attack before animating it. The game crashes the moment I click on the attack that would kill the chosen. The actual animation of the attack does not happen and the game crashes. It is the same with both of the runs where I have this crash. It makes it a game breaking bug since it is not possible to avoid the chosen. The other run has the hunter as the chosen. I'm attaching my two saves. I hope that helps. Save Files.zip

kaphula commented 10 months ago

on windows and latest beta, the provided save doesn't crash, either when the warlock dies, or the mission completes. nothing really unusual in the log. One soldier is missing a headshot (placeholder img instead).

Thanks for the info, maybe there's hope this will be solved. On Linux you also need to disable certain genelab mission type because attempting to launch it crashes the game, does not happen on Windows.

The game crashes the moment I click on the attack that would kill the chosen. The actual animation of the attack does not happen and the game crashes. It is the same with both of the runs where I have this crash.

This is exactly what happens to me too.

Tvrdoglavi commented 10 months ago

Yes, it's there is something about the large genelab map that crashes the game on Linux. That was a relatively easy fix to remove the map from the game. Unfortunately, removing the chosen is not really an option here. I've enjoyed the mod quite a bit until the point where it crashes. I hope to be able to play it at some point.

Tedster59 commented 10 months ago

do you have the log files from these crashes too?

kaphula commented 10 months ago

Could you instruct me where they are located, if you know?

Tvrdoglavi commented 10 months ago

My understanding is that .dmp is the only crash file created on Linux. No crash logs are generated.

mdbowler commented 8 months ago

I have exactly the same issue with the first time killing a chosen on a retaliation mission. As soon as it dies, either by being shot or burning, the game crashes.

Platform: Linux, not Ironman

Dump and save attached.

Save: lwotc_retaliation_crash.zip

Crash dump: lwotc_retaliation_dump.zip

Iridar commented 8 months ago

We can't actually analyze crash dumps, only the game's Launch.log.

Foldi-One commented 2 months ago

I've had this with killing a different Chosen, crash with SIGSEV(11) and a complaint about /lib/private_symbol_hack.so on Linux. I can confirm having experienced this bug myself now that the same save works on windows and will pass the killing of the chosen. (Which isn't a shock given the error, but nice to prove).

Lightsockie commented 2 months ago

Just had this happen to me killing the Assassin on a "retaliation" mission. I'm like fairly certain I've killed plenty of chosen on my last lwotc run (circa start of 2023). Could be a regression, maybe? (Nope, never mind. #1316 from 2021 shows that I must be mistaken, or this crash has some other combination of triggers that I somehow avoided last time)

Seems like the consistent theme here is a crash as soon as any chosen is about to take lethal damage. Do we know if there's a workaround?

I think these errors below are just always there, and nothing useful, but here's the tail of my Launch.log:

[3092.22] Log: ###### OnlineEventMgr waited 0.00 seconds for saves to complete
[3106.69] Log: --- LOADING MOVIE TIME: 15.7 sec ---
[3122.48] XCom_Maps: , Plot_SHN_Retalliation_LgObj_Stream, Temperate, 21.37
[3569.41] Warning: SeqAct_IsUnitAGivenTemplate: No unit or invalid unit passed to kismet action

[3569.41] Warning: SeqAct_IsUnitAGivenTemplate: No unit or invalid unit passed to kismet action

[3569.41] Warning: SeqAct_IsUnitAGivenTemplate: No unit or invalid unit passed to kismet action

[3569.41] Warning: SeqAct_IsUnitAGivenTemplate: No unit or invalid unit passed to kismet action

[3569.41] Warning: X2Action_MarkerInterruptEnd tried to execute out of order! Trace
 Script call stack:
    State XComGame.X2Action_MarkerInterruptEnd:Executing

[3569.41] Warning: Attempting to resume UITimer with no active gamestate

[3569.58] Log: ###### OnlineEventMgr waited 0.00 seconds for saves to complete
[3577.71] XCom_Maps: , Plot_SHN_Retalliation_LgObj_Stream, Temperate, 4.60
[3580.26] Log: --- LOADING MOVIE TIME: 10.4 sec ---
[3821.25] Warning: X2Action_MarkerInterruptEnd tried to execute out of order! Trace
 Script call stack:
    State XComGame.X2Action_MarkerInterruptEnd:Executing

[3821.41] Log: ###### OnlineEventMgr waited 0.00 seconds for saves to complete
[3829.38] XCom_Maps: , Plot_SHN_Retalliation_LgObj_Stream, Temperate, 4.27
[3831.78] Log: --- LOADING MOVIE TIME: 10.1 sec ---
[4311.31] Log: ###### OnlineEventMgr waited 0.00 seconds for saves to complete
[4319.18] XCom_Maps: , Plot_SHN_Retalliation_LgObj_Stream, Temperate, 4.07
[4321.64] Log: --- LOADING MOVIE TIME: 10.1 sec ---

(Worth noting that I'm using more/less that Mod Jam pack of mods, so my environment isn't clean (tho at least OP's seems to have been))


I've had this with killing a different Chosen, crash with SIGSEV(11) and a complaint about /lib/private_symbol_hack.so on Linux. I can confirm having experienced this bug myself now that the same save works on windows and will pass the killing of the chosen. (Which isn't a shock given the error, but nice to prove).

Foldi-One, this is present in basically all crashes we get on Linux. iirc more/less its cuz we don't have the same debug symbols present that feral does/did in their internal builds.

Foldi-One commented 1 month ago

Been playing around with this a little and can so far recommend Linux users use Proton and the Alternate Mod loader (rename its executable to replace the default launcher was the method I went with so steam just loads it) - seems like the game performance suffered a little more than I'd expect for proton but I've not yet seen any real issues.

Looking at the Launch.log seems like the only lines that may be different and perhaps change this issue for some others with LWOC are the official DLC being present or not I have them all - I do have in the bugged save a tiny number of cosmetic mods enabled originally, though loading the save without them as a minimal LWOC list still crashes in the same way.