Attempting to JIT compile method '(wrapper native-to-managed) int Emgu.TF.Lite.TfLiteInvoke:TfliteErrorHandler (int,intptr)' while running in aot-only mode.
ralphcode opened this issue · comments
We've purchased the commercial version of Emgu.TF but are receiving errors whilst running the unmodified Lite iOS example solution on real iOS devices. This works in the simulator, but not on real iOS devices.
Library: libemgutflite-pro-2.4.0.1059
Solution: Emgu.TF.Lite.Example.iOS.sln (unmodified, Xamarin Forms)
IDE: Visual Studio for Mac 8.8.3 (build 16) with Mono 6.12.0.107
Configuration: Debug | iPhone (iPhone 11 Max on iOS 14.3)
Error: Attempting to JIT compile method '(wrapper native-to-managed) int Emgu.TF.Lite.TfLiteInvoke:TfliteErrorHandler (int,intptr)' while running in aot-only mode. See https://docs.microsoft.com/xamarin/ios/internals/limitations for more information.
StackTrace: _at (wrapper managed-to-native) System.Object._icall_wrapper_mono_delegate_to_ftnptr(object)
at (wrapper managed-to-native) Emgu.TF.Lite.TfLiteInvoke.RedirectError(Emgu.TF.Lite.TfLiteInvoke/TfliteErrorCallback)
at Emgu.TF.Lite.TfLiteInvoke..cctor () [0x00088] in /libemgutflite-pro/Emgu.TF.Lite/TFLiteInvoke.cs:294
Are you aware of this issue? Or have any suggestions to resolve? Further to this, Release | iPhone build breaks throwing ~50 other errors.
Hi Ralpharoo,
The issue has been fixed in the following 3 commits:
a38695e
eee233d
dfcc4b7
Please send an email to support@emgu.com and we can upload a development build for you.
Or, as a quick fix, you can also comment out the specific line that is causing the issue. Our proper fixed listed above will call the RedirectError method in TfLiteInvokeIOS constructor instead.
We will have another 2.4 release once the final tensorflow 2.4 stable release is out.