Skip to content

get_filter index out of range when building perfect-quality space platform #3

@krisztianlukacs

Description

@krisztianlukacs

Hi,

I’m running into a consistent crash with Unipipe 1.0.8.

Environment
• Factorio: 2.0.x (I can provide the exact build if needed)
• Unipipe: 1.0.8
• Mods: Quality is enabled (crash happens while building a perfect-quality Space Platform)

What happens
When I build a perfect-quality Space Platform, the game crashes with:

Error while running event Unipipe::on_nth_tick(1)
Passed index is out of range.
stack traceback:
[C]: in function 'get_filter'
Unipipe/scripts/unipipe.lua:214: in function 'findConnectedUnipipes'
Unipipe/scripts/unipipe.lua:161: in function <Unipipe/scripts/unipipe.lua:160>

Reproduction steps
1. Start/Load a save with Unipipe 1.0.8 enabled (Quality enabled).
2. Attempt to build a perfect-quality Space Platform.
3. Crash occurs immediately (or shortly after) during Unipipe’s on_nth_tick(1) processing.

Expected behavior
No crash; Unipipe should safely handle any entities encountered during scanning/connection checks.

Additional notes
• I tried placing at least one Unipipe entity on the planet before building the Space Platform, but it did not prevent the crash.
• The error suggests get_filter(index) is being called with an index outside 1..filter_slot_count for some entity encountered during findConnectedUnipipes.

Request
Could you add a bounds check around the get_filter(i) usage near scripts/unipipe.lua:214 (or adjust the loop to match filter_slot_count) so Unipipe doesn’t call get_filter with an invalid index?

If you tell me which additional debug info would help (save file, mod list, Factorio version, log excerpt), I can provide it.

Thanks!

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