Description
Description
It appears as though Skia has a memory leak which is particularly noticeable when navigating back and forth between a screen with a canvas rendering a Skia image. As you can see in the below screen recording the RAM usage continuously grows and this is also apparent when running the Allocations instrument from XCode (happy to send the trace file if you can't repro it on your end).
I've been able to repro this on a physical iPhone 13 Pro and on an iPhone 14 emulator
Simulator.Screen.Recording.-.iPhone.14.-.2023-03-04.at.16.07.31.mp4
Version
0.1.176 (but I've tested as far back as 0.1.172 and can repro it there too)
Steps to reproduce
- Build the iOS Example app
- Repeatedly navigation onto the "Filter Example" and back to the home screen
- See the total RAM usage on the perf monitor continuously increase
- Can also run the "Allocations" instrument from XCode and profile to see RNSkia items are not deallocated
Snack, code example, screenshot, or link to a repository
- Use the "Filter Example" in the example app on v0.1.176 to reproduce