Unwanted Communication Reporting extension crash

I'm trying to implement Unwanted SMS and Calls reporting in an app I'm doing in my idle time.

If I place a UITextField or UITextView inside a ILClassificationUIExtensionViewController, every time I select on such control the extension crashes without any logs.

The closet idea I have on why it crashes it has something to do with iOS requesting the dictation feature.

I'm using the latest (beta 8 at the time) iOS 16.0 beta on my iPhone 13 pro.

Attaching my code here if you want to try for yourself: github

Post not yet marked as solved Up vote post of monggolean Down vote post of monggolean
1.7k views

Replies

I have the same problem

Same problem, anyone have s solution yet ?

Same here. I use SwiftUI TextField and TextEditor.

When the keyboard appears, CPU and memory usage suddenly increase. The extension will crash when memory usage of the extension exceeds its limit 50MB.

EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=50 MB, unused=0x0)

This issue doesn't happen in iOS 15 and early version of iOS 16. But now I see it in iOS 16.0.3 and 16.3.1 at my end.

Update from me: This issue seems not happen in the iOS 16.4 beta (20E5239b).

Update from me:

This issue seems not happen in the iOS 16.4 beta (20E5239b)

I tested on iPhone SE 2020.

An interesting thing is that the memory leak issue doesn’t happen on iPhone SE 2020 though official iOS 16.3.1 (20D67) or iOS 16.4 beta (20E5239b).

Update: still happen on my iPhone 12 Pro iOS 16.4 (20E247)

Same issue 16.4.1

Still having this issue on iOS 17