Memory Leakage Chapter 9-Scene-Graph Final

I would like to thank you and congratulate ou on this excellent book. I found a memory leakage in the scene graph by looking at the memory pane you would see the memory consumption is always increasing.Screen Shot 2020-09-14 at 12.14.56 AM Dropbox - Screen Shot 2020-09-14 at 12.14.56 AM.png - Simplify your life

I have been trying to find the leakage but so far without luck.
Thank you for your support

I had a look in Instruments, and it appears to be from an Apple framework, so there’s nothing we can do about it.
Searching on the internet, it may be that it’s a debug leak, and will go away in release :crossed_fingers:. I ran the project for about an hour, and it seemed to top out at 158mb and stay there.

This time I used Xcode 11.7 (11E801a) and changed the scheme to release but I kept the checkbox on to debug and the leakage is still there. Chapter 8 USD animation the Skeleton waving there was also a leakage.
Screen Shot 2020-09-14 at 7.06.03 PM
I will keep trying to find the leakage. Hoping for the best.

Cheers :slight_smile:

After running Leaks profile from Instruments it looks like the leakage is from ModelIO

Screen Shot 2020-09-14 at 8.37.56 PM

When running Chapter 8 Skeleton waving on an iOS device there is no memory leakage.
Screen Shot 2020-09-14 at 9.38.58 PM

Running through instruments on macOS, my leak was minimal and from QuartzCore.

I had a ModelIO leak of 48 bytes in chapter 8.

Could be something to do with textures, as ch 9 has textures and ch 8 doesn’t.