Phew, I already feel bad asking you again 😅
It turns out that MTE and Malloc Stack Logging cannot be enabled at the same time. But I've tried to enabled Malloc Stack Logging, and then get delayed crash somewhere else.
Unfortunately, I didn't really understand where/what to look for in Xcode. I tried to hit the 'Memory Graph Debug' but then the crash context seemed to get lost... most likely I am doing it wrong...
A little context of our app:
An UIPageViewController where you can swipe left/right to see the next/previous image.
An UIViewController that has a TileImageView subview
TileImageView that shows an image. This view is using CATileLayer.
When draw(rect:) is called for a specific tile, we either show a cached tile or send a network request to a local server for the tile data.
When the network response is received (callback in draw(rect:) we call the view's draw(rect:) to update with tile.
Now if I scroll through the pages the crash may occur.
As stated before this code was working fine before iOS 26. But of course I am unsure if the callback in draw(rect:) could somehow screw-up if e.g., the TileImageView was deallocated. But we should check for weak-self, etc.
By trying to disable code I've found that if I pull out the code in the callback we still crash, i.e., we don't update the draw(rect:). But if I pull out the actual call we don't crash... wondering why the async network call seems to have this side-effect on this...
Topic:
App & System Services
SubTopic:
Networking
Tags: