On the crash, can you tell what Vision.framework is doing?
On my iOS 18.5 (I don't have iPad, but I suppose it's similar, if not same.), the crash point (-[VNCoreMLModel predictWithCVPixelBuffer:options:error:] + 148) is attempting to access .model property of VNCoreMLModel object.
(lldb) dis -s 0x00000001bc61626c -e 0x00000001bc61626c+148
Vision`-[VNCoreMLModel predictWithCVPixelBuffer:options:error:]:
:
;; x0 is self, which is `VNCoreMLModel` object.
0x1bc616290 <+36>: mov x23, x0
:
;; Accessing `.model` property of the `VNCoreMLModel` object.
0x1bc6162f8 <+140>: mov x0, x23
0x1bc6162fc <+144>: bl 0x1bc857f60 ; objc_msgSend$model
;; Return address
0x1bc616300 <+148>: bl 0x1bdf7d200
If you see the same, I might suspect the MLModel object stored in CoreMLModelContainer is somehow broken, perhaps overreleased. (It's hard to tell whether it's a framework bug or application's bug. )
Topic:
Machine Learning & AI
SubTopic:
Core ML
Tags: