Skip to content

Crash during heavy nuke/missile saturation: Infinite loop error in RecordNukeTarget #387

Description

@wafelmolt

Description

The game consistently crashes during intense late-game scenarios involving massive nuclear missile launches. Analysis of the log files reveals an infinite loop error triggered within the RecordNukeTarget function of M28AI.

The AI repeatedly fails to record nuke missile locations, likely due to a failure to parse the specific projectile data in a high-intensity combat situation.

Steps to Reproduce

  1. Run a match with M28AI enabled along with BlackOps FAF: Merged and Total Mayhem mods.
  2. Progress to the late game where high volumes of tactical and strategic missiles are being fired simultaneously.
  3. Observe the logs as they flood with Potential infinite loop, aborted recording nuke missile location warnings.
  4. The game eventually crashes as the Lua stack/log might saturates (?).

Log Snippet

warning: false  M28ERROR Count=1: GameTime 5741: Potential infinite loop, aborted recording nuke missile location
warning: stack traceback:
warning:         [C]: in function `assert'
warning:         [C]: in function `pcall'
warning:         ...r forged alliance\mods\m28ai\lua\ai\m28utilities.lua(285): in function `ErrorHandler'
warning:         ...er forged alliance\mods\m28ai\lua\ai\m28building.lua(5635): in function `RecordNukeTarget'
warning:         ...nder forged alliance\mods\m28ai\lua\ai\m28events.lua(1634): in function `OnWeaponFired'

Environment

  • Game Version: 3836
  • M28AI Version: 305
  • Active Mods: Quantum Resource Generators, Total Mayhem, Patch19Core, BlackOps FAF: Merged, Shields Enhanced

Additional Context

This issue seems triggered by the interaction between RecordNukeTarget and the high volume of projectiles. It appears the logic struggles to handle the sheer number of events during projectile firing, leading to the aborted loop and subsequent crash.

Attachments

You will find the complete log as an attachment.

game_27305705.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions