cheran
cheran

Reputation: 483

App crash issue in Xamarin iOS

We are developing app to list available ebooks using Xamarin Forms. The ebook collections are taken from API and store it in local DB. If we access local database to get stored collections the app getting crashed in device. But it works fine in simulator in iOS and android devices. We are getting below error in output window.

Error Details:

Assertion at /Users/builder/data/lanes/4991/4a279c9a/source/xamarin-macios/external/mono/mono/mini/debugger-agent.c:4714, condition `array->len == 1' not met

Machine Details:

What could be the reason for this issue? Is this issue from Xamarin? If yes, suggest work around to resolve this issue. Please help on this?

Regards,

Cheran T

Upvotes: 3

Views: 1166

Answers (1)

Taier
Taier

Reputation: 2119

That Xamarin related problem, you can read more here: https://forums.xamarin.com/discussion/96564/sigabrt-while-debugging-async-methods#latest

There is no official solution from Xamarin, but some people report that if they add

Task.Delay(*some time*)

after the awaited method inside the async function (the request for collection in your case) the problem goes away. It's not a valid fix in any case, but since there is no actions from Xamarin, it's better than nothing.

Upvotes: 1

Related Questions