Description
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: Your current version is 6.4.0 and the latest available version is 7.0.10.
- Cross-platform modules: tns-core-modules. Your current version is 6.4.2 and the latest available version is 6.5.20.
- iOS Runtime: Your current version is 6.4.2 and the latest available version is 6.5.3.
- XCode Version: Xcode 11.6, Build version 11E708
- Plugin(s): - "nativescript-videoplayer": "^4.2.1", "nativescript-videorecorder": "^3.0.0-beta.6",
Describe the bug
An ongoing memory leak issue. The app takes the user through 12 video shots (each no longer then 15-20 seconds). I have tested and tracked the memory leaks on Xcode and they begin since the start of the app, each time the user navigates from one page to the other the memory just keeps increasing and never drops down. When we get to the pages where the videos are recorded, the memory gets significant increase and the first leak appears.
Its worth noting that the issue mentioned above is happening on the current version 6.4.0. I did update nativescript to the last 7.0.10 version hoping it would fix the problem, but in fact it made it much worse. When the app is in 6.4.0 (we use this version because of tested compatibility with some plugins, other versions were having minor issues) the app loads at some 20-30 mb, but when it was upgraded to 7.0.10 it loaded with more then 200 and the first leak appeared as soon as i navigated from the first page to the second.
I tracked the names of the native class names where the leaks come from and thought that if I put them inside the suggested releaseNativeCounterpart function for clearing leaks as suggested on the docs would heal the issue, but it did not.
The leaks are always coming from these classes.
Things I have tried so far:
- releaseNativeCounterpart(instance of a native class )
- ClearHistory between navigation
- Disabling the video plugins and changing the version of the app to see if it stops the leaks.
Seems like some other users have experienced this before, as I saw few related issues but no solution. Can the admins or someone point to the right direction of fixing this?
