Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python] Memory leak for repeated StructArray creation #41172

Closed
rjzamora opened this issue Apr 12, 2024 · 3 comments
Closed

[Python] Memory leak for repeated StructArray creation #41172

rjzamora opened this issue Apr 12, 2024 · 3 comments

Comments

@rjzamora
Copy link
Contributor

Describe the bug, including details regarding any error messages, version, and platform.

Memory grows continuously when a simple StructArray is overwritten repeatedly:

import pyarrow as pa

while True:
    arr = pa.array([{"test": {str(i): "test" * 100000 for i in range(50)}}])

Component(s)

Python

@rjzamora rjzamora changed the title Memory leak for repeated StructArray creation [Python] Memory leak for repeated StructArray creation Apr 12, 2024
@galipremsagar
Copy link
Contributor

I noticed pa.StructArray.from_arrays doesn't seem to be having this leak.

@wence-
Copy link

wence- commented Apr 15, 2024

Duplicate of #37989, fixed in #40412

@rjzamora
Copy link
Contributor Author

Excellent - Thanks for the link @wence- !

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

No branches or pull requests

3 participants