Open FoneG opened 2 days ago
Thank you for reporting the issue. We are investigating it. We will update the thread when we have more information.
Can you provide the percentage of users that are experiencing this issue?
Hi team,
We’ve also experienced similar memory leaks that resulted in crashes. We observed a significant number of memory leaks related to ALAsyncTaskCacheResource. Additionally, ALAtomicBoolean is responsible for numerous leaked allocations.
We were able to reproduce the issue using AppLovin Demo app
MAX SDK Version
AppLovinSDK, 12.4.1
Device/Platform Info iPhone12,3 iOS 17.6.1
Current Behavior
While reviewing the Firebase crash logs, we observed that a large number of ad-related processes and threads are being generated, with over 20 instances of redundant or duplicate tasks linked to ad loading and caching. These tasks, such as
ALAsyncTaskCacheHTMLResources
, are being repeatedly executed, significantly adding to system overhead and causing performance degradation. These multiple threads, many of which appear to be unnecessary, are running concurrently, putting strain on both the main queue and background threads, and potentially leading to crashes.Expected Behavior
The ad-related processes should be optimized to avoid creating too many concurrent threads, especially in scenarios where they do not contribute to user experience or app functionality. The SDK should reduce redundant task creation and better manage process lifecycles to avoid overwhelming the system.
How to Reproduce
While this issue is not consistently reproducible, it often occurs during extended usage after ads are repeatedly loaded and cached.
Additional Info
This is the code