Forum Xamarin.Forms

An alternative to BTProgressHUD.ShowToast? Currently results in JIT error (debug mode)

DevologyDevology GBMember ✭✭✭
edited April 14 in Xamarin.Forms

The full error is the following, which was not particularly helpful in helping to track down that it was the invocation of BTProgressHud.ShowToast as the root cause.

Assertion at interp.c condition is_ok (error) not met function:do_jit_call, Attempting to JIT compile method wrapper other void object gsharedvt_out_sig while running in aot-only mode

See https://docs.microsoft.com/xamarin/ios/internals/limitations for more information.  assembly:<unknown assembly> type:<unknown type> member:(null)

I've seen similar reports online with JIT and iOS saying that this can be caused by running in debug mode, so for now I've got a #if DEBUG to display a normal dialog in debug mode, but attempt to call BTProgressHud.ShowToast in release mode, but I'd like to understand why this is suddenly happening all of a sudden.

I had the issue with XF 4.5.0.530 so I updated to the latest Xamarin.Forms 4.6.0.616-pre4, I also update all the .NET / App Center libraries etc, but the problem persists.

Q1 - What changed that causes this library that has been stable to no longer work?

Q2 - Is there a good library for toast / popup messages that fade away after x seconds?

Screenshot of iOS build settings...

Screenshot of iOS build settings

Best Answer

Answers

  • ColeXColeX Member, Xamarin Team Xamurai
    Accepted Answer

    Try the famous plugin MBProgressHUD ,and this is the library used in Xamarin.iOS .

    Is there a good library for toast / popup messages that fade away after x seconds?

    You could use Task , NSTimer , Timer , etc. Check https://stackoverflow.com/questions/28168694/code-should-be-executed-one-time-after-short-delay .

  • DevologyDevology GBMember ✭✭✭

    @ColeX said:
    Try the famous plugin MBProgressHUD ,and this is the library used in Xamarin.iOS .

    Many thanks - this is certainly good to know.

    I'll stick with BTProgressHud.ShowToast as I have now proved it doesn't crash in release kits (TestFlight) - it only crashed in debug mode due to JIT.

Sign In or Register to comment.