Grial-UI-Kit-Support icon indicating copy to clipboard operation
Grial-UI-Kit-Support copied to clipboard

Exception when debug on iOS

Open pcdus opened this issue 7 years ago • 2 comments

Hello,

I get an exception when I debug on iOS, in "Main.cs":

Exception: System.Exception: Could not initialize an instance of the type 'UIKit.NSDataAsset': the native 'initWithName:' method returned nil. It is possible to ignore this condition by setting MonoTouch.ObjCRuntime.Class.ThrowOnInitFailure to false.

This exception occurs when I navigate from a List page to the Detail's page, through this:

public async void OnCardTapped(object sender, EventArgs args)
{
	var selectedAgendaEvent = (AgendaEvent)((VisualElement)sender).BindingContext;
	var agendaEventView = new AgendaEventDetailsPage(selectedAgendaEvent);
	await Navigation.PushAsync(agendaEventView);
}

If I relauch the app after the deployment, this works fine: I can navigate to the Detail's page.

Is this normal?

pcdus avatar Aug 11 '17 12:08 pcdus

@Goldstrike we never experience that error so far. Are you experiencing that issue in the emulator? a device? Which version of iOS are you using?

Can you share a solution where we can reproduce the issue? The smaller the better. If you can, send it to l r o d r i g u e z at uxdivers.com

LeoHere avatar Aug 11 '17 21:08 LeoHere

System.ArgumentNullException: Value cannot be null. Parameter name: image occurred in Main.cs for iOS project

sadranyi avatar Mar 15 '18 19:03 sadranyi