Skip to content

Filter operator runs forver if given an inifnite list #1583

@kirjorjos

Description

@kirjorjos

Issue type:

  • 🐛 Bug

Short description:

Using filter on an infinite list causes world hang, similar to #1582

Steps to reproduce the problem:

  1. Make a lazy built infinite list, lazyBuilt(1, apply(addition, int 1)) for example
  2. make a predicate that the list can be filtered by, pipe(apply(flip(modulo), int 2), apply(relationalEquals, int 0) for example
  3. filter the infinite list
  4. world hangs

Expected behaviour:

Some sort of time out or max index


Versions:

Common Capabilities: 2.9.7
Cyclops Core: 1.20.1
Integrated Dynamics: 1.29.1
Minecraft: 1.19.2
Mod loader version: Forge 43.4.6

Log file:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions