You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "liweiyuan (via GitHub)" <gi...@apache.org> on 2025/05/29 03:49:38 UTC

[I] IllegalStateException: Memory leaked when closing RootAllocator [arrow-java]

liweiyuan opened a new issue, #776:
URL: https://github.com/apache/arrow-java/issues/776

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   I am encountering an IllegalStateException with the message "Memory was leaked by query" when closing a RootAllocator. This indicates that some memory allocated from the allocator was not released before the allocator was closed.
   
   [error.log](https://github.com/user-attachments/files/20497923/error.log)
   
   A minimal project that reproduces this issue can be found here:
   [github](https://github.com/liweiyuan/arrow-interop)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] IllegalStateException: Memory leaked when closing RootAllocator [arrow-java]

Posted by "liweiyuan (via GitHub)" <gi...@apache.org>.
liweiyuan commented on issue #776:
URL: https://github.com/apache/arrow-java/issues/776#issuecomment-2933253030

   use try-with-resources manage resources,  The above GitHub has examples that can reproduce this issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] IllegalStateException: Memory leaked when closing RootAllocator [arrow-java]

Posted by "hnwyllmm (via GitHub)" <gi...@apache.org>.
hnwyllmm commented on issue #776:
URL: https://github.com/apache/arrow-java/issues/776#issuecomment-2926283279

   Did you forget to release/close some resources, such as RecordBatch, VectorSchemaRoot?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] IllegalStateException: Memory leaked when closing RootAllocator [arrow-java]

Posted by "ennuite (via GitHub)" <gi...@apache.org>.
ennuite commented on issue #776:
URL: https://github.com/apache/arrow-java/issues/776#issuecomment-3868861037

   @liweiyuan are you willing to provide a reprex that is smaller than a github repo? 
   
   FWIW I found and fixed some issues with the same error message. See these issues (they also provide good examples for repros)
   
   1. https://github.com/apache/arrow-java/issues/990
   2. https://github.com/apache/arrow-java/issues/932
   
   Let me know if your issue was not covered by these 2 PRs.
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org