Gökdeniz Çetin:
Hello, I’m using Unity Ads in my game and I used same code in the Brackeys tutorial video.
But the game itself gives memory leak error . Here’s a log:
A Native Collection has not been disposed, resulting in a memory leak. Allocated from:
Unity.Collections.NativeArray`1:.ctor(Byte[], Allocator)
UnityEngine.Networking.UploadHandlerRaw:.ctor(Byte[])
Unity.RemoteConfig.ConfigManagerImpl:smile:oRequest(String) (at Library\PackageCache\com.unity.remote-config-runtime@1.0.1\Runtime\ConfigManagerImpl.cs:267)
Unity.RemoteConfig.ConfigManagerImpl:PostConfig(Object, Object) (at Library\PackageCache\com.unity.remote-config-runtime@1.0.1\Runtime\ConfigManagerImpl.cs:204)
Unity.RemoteConfig.ConfigManagerImpl:FetchConfigs(userAttributes, appAttributes) (at Library\PackageCache\com.unity.remote-config-runtime@1.0.1\Runtime\ConfigManagerImpl.cs:188)
Unity.RemoteConfig.ConfigManager:FetchConfigs(userAttributes, appAttributes) (at Library\PackageCache\com.unity.remote-config-runtime@1.0.1\Runtime\ConfigManager.cs:96)
AdsRemove:FetchRemoteConfiguration() (at Assets\Scripts\Ads\AdsRemove.cs:33)
AdsRemove:Awake() (at Assets\Scripts\Ads\AdsRemove.cs:20)
Unity Version: 2021.1.11f1
Thanks in advance.
This should only happen when running in the Editor, and not in a build. You should be able to safely ignore the error for now. We are aware of the issue and will address it in a future release Remote Config Native Collection memory leak