Hi there. We use coreml for image processing, and we have many models, each one produces a different effect.
However, this error sometimes occurs on some devices. No idea when and how. But once it happens, it keeps failing on the device.
At this point, these will solve the issue:
- Uninstall and reinstall the app. It works fine for a while, but the same error soon occurs again.
- Reboot the device. It work fine for a longer time than reinstall.
I tried repeatedly loading and unloading the model in a loop, but I couldn't reproduce the issue.
If the model loads successfully the first time the application starts up, it will continue to load successfully for the remainder of the application's lifecycle.
If I repeatedly launch the app, load the model, and then force-close the app—after doing this a few hundred times—the problem will eventually occur.
The following are two similar questions:
https://developer.apple.com/forums/thread/678599
https://developer.apple.com/forums/thread/740731
A previous reply stated that "it typically means there is a leak in the system," but since the app has already been terminated, the resources it was using should have been automatically reclaimed by the system.
This issue has been a problem for a long time; it does indeed appear to be a system-level bug. This uncertainty and unreliability can lead to user churn.