emgucv / emgutf

Emgu TF is a cross platform .Net wrapper for the Google Tensorflow library. Allows Tensorflow functions to be called from .NET compatible languages such as C#, VB, VC++, IronPython.

Home Page:https://www.emgu.com/wiki/index.php/Emgu_TF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

commented

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

Screen Shot 2020-12-09 at 3 31 52 pm

Are you aware of this issue? Or have any suggestions to resolve? Further to this, Release | iPhone build breaks throwing ~50 other errors.

commented

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.

commented

@emgucv Awesome, thank you. Those commits have resolved it locally for the time being.

I've emailed but happy to wait for the new stable 2.4 release before upgrading.

Thanks again for the prompt resolution.