Anyone else also seeing this error on Sentry? It d...
# compose-ios
m
Anyone else also seeing this error on Sentry? It doesn't look like a false alarm, and we've had issues report that the app freezes. Impact is around 3% of our userbase. We don't have ANR on Android.
Copy code
WatchdogTermination
Level: Fatal
The OS watchdog terminated your app, possibly because it overused RAM.
I haven't been able to pinpoint it to a single reason. It may happen shortly after launch, or after an hour of usage. There are three screens where it most commonly happens (58%, 27%, 18% or 3% others). Happens for many iOS versions & models (even top-end like iPhone 16 Pro). It completely crashes our app, so it's pretty important. Where should I look next? Thank you 🙏
h
Looking at the message i would check for memory leaks on iOS. I once had one where I used a third party KMP library, that used traditional callback style event listeners, and it leaked because I had to manually null out the listeners.
m
@Hylke Bron what's your preferred way of checking for memory leaks? With the iOS built in tools? I found it hard to tell when using KMM due to all the native code
h
I used xcode and a simulator for it, and then the option debug memory graph, you can filter on leaked objects. It wont pinpoint exactly to why something leaks, but it gives some insights. You can also use the memory profiler, that sometimes helps as well.