Skip to content

[Bug] Entity "leak" #80

@minghuaw

Description

@minghuaw

Description of the bug

The oven would "leak" entity if its max_theta is larger than zero.

Cause

An empty entity is created on line 212, which is before the line where whether the atom should be created is checked (line 216). If a non-zero max_theta is found, the omitted atoms will leave empty entities that are never deleted and thus causing entities to "leak".

let new_atom = entities.create();

if theta > oven.max_theta {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions