Skip to content

Hang in flax/nnx/variablelib.py #948

@marcelroed

Description

@marcelroed

Summary

Image

Hi! I just updated to the latest ty version and updated my VSCode plugin, resulting in a huge memory leak and my home server going down. Minimal repro (thanks @dcreager).

The memory keeps ticking up until it takes 100% of system memory and the OS tries to kill it. This kill also failed, however, so maybe there should be a safety check to limit ty's memory usage to something reasonable.

I'm on Ubuntu 24.04 and running Python 3.13. The issue can also be reproduced on macOS.

Version

ty 0.0.1-alpha.17 (1712284 2025-08-06)

Metadata

Metadata

Assignees

No one assigned

    Labels

    fatala fatal error (panic or crash)memoryrelated to memory usageneeds-infoMore information is needed from the issue author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions