Skip to content

Memory Leak: GeoAR internal objects persist after GARSession deallocation #119

Description

@lodstar

I am reporting a suspected memory leak in the ARCore SDK for iOS (v1.52). It appears that internal objects, specifically those related to the GeoAR namespace, are not being properly released when a GARSession is deallocated.

I have tested a scenario where the GARSession is created and destroyed 4 times. According to the memory graph debugger, there are 4 surviving instances of various GeoAR classes (e.g., GeoARConfiguration, GeoAREarthAnchorTracker, GeoARSessionManager), matching the number of sessions created.

This accumulation suggests that resources are not being cleaned up correctly, leading to increased memory usage over time.

Environment
ARCore SDK for iOS version: 1.52
Device: [e.g., iPhone 15 Pro Max]
OS Version: [e.g., iOS 26.0.1]
Xcode Version: [e.g., Xcode 26.2]

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions