-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
AndroidNativeBufferAllocator memory leak #1990
Copy link
Copy link
Closed
Labels
AndroidbugSomething that is supposed to work, but doesn't. More severe than a "defect".Something that is supposed to work, but doesn't. More severe than a "defect".
Milestone
Metadata
Metadata
Assignees
Labels
AndroidbugSomething that is supposed to work, but doesn't. More severe than a "defect".Something that is supposed to work, but doesn't. More severe than a "defect".
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
tracked
For regular Java-managed direct buffers, JME does not need to clean them up as the GC will clean them up.
For any memory that Java is not allocating, special support (like PhantomReference) will have to be used to make sure to free the native memory.
I think until we switch to using
jme3-alloc(in JME 3.7), for JME 3.6.1 we should either switch to using PrimitiveAllocator on Android or use PhantomReference in AndroidNativeBufferAllocator to free memory. (similar to thejme3-lwjgl3buffer allocator)