Skip to content

Memory Leak for repeated set() parameter calls #132

Description

@jacksonross1024

Repeatedly calling .set() for a Parameter and VectorParameter, when set is non-uniform, overrides the StaticField previously there. Since this is a common occurance in the python script (set constant/static/uniform values for EQ, then have non-uniform for driving simulations or grid searches/loops) with the same world and/or ferromagnet, this can build up considerable memory loss (many GB in only a few iterations).

Activity

  1. self-assigned this
    on Mar 23, 2026
  2. added theissue type on Mar 23, 2026
  3. lamoreel commented on Mar 26, 2026

    @lamoreel
    Contributor

    Hi

    Thanks for this report! Unfortunately, I'm unable to reproduce this issue. Both CPU and GPU memory seem contained. Could you give a minimal working example?

    Thanks!
    Lars

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions