I changed my application which evolved through all ancient iOS versions up to iOS 11 now to finally use Autolayout. When i switch this on the memory consumption explodes and iOS reserves memory in 8.91 MB chunks until all available memory is consumed. This happens in the phases, where the application waits for URLSession Requests to complele, not while just being in the main loop and waiting for touches. Scrolling in the view also does not lead to any additional consumption, nor does any other interaction with it. The view in question has a toolbar and a scrollbar above it, which contains other simple views. So it is not too complex, and there were no memory issued up to now. The stack trace of the memory allocation in question always looks like this:
0 libsystem_kernel.dylib mach_vm_allocate
1 libsystem_kernel.dylib vm_allocate
2 QuartzCore CA::Render::Shmem::new_shmem(unsigned long)
3 QuartzCore CA::Render::Shmem::new_bitmap(unsigned int, unsigned int, unsigned int, unsigned int)
4 QuartzCore CABackingStorePrepareUpdates_(CABackingStore*, unsigned long, unsigned long, unsigned int, unsigned int, unsigned int, CA::GenericContext*, UpdateState*)
5 QuartzCore CABackingStoreUpdate_
6 QuartzCore invocation function for block in CA::Layer::display_()
7 QuartzCore x_blame_allocations
8 QuartzCore -[CALayer _display]
9 QuartzCore CA::Context::commit_transaction(CA::Transaction*)
10 QuartzCore CA::Transaction::commit()
11 QuartzCore CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*)
12 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
13 CoreFoundation __CFRunLoopDoObservers
14 CoreFoundation __CFRunLoopRun
15 CoreFoundation CFRunLoopRunSpecific
16 GraphicsServices GSEventRunModal
17 UIKit UIApplicationMain
18 MyApp main /Users/Me/Documents/Dokumente - main.m:14
19 libdyld.dylib start
When i turn off autolayout for this view memory leaking stops, and everything works well again (but without a porper layout of the screen of course :-/). Did you have similar experiences when migrating to autolayout how can i pin down the main cause of this issue?