asusralis
Topic Author
Posts: 68
Joined: 30 Jul 2018, 05:03

Exception continuously being throw in Unity.

11 Apr 2019, 19:51

I'm trying to debug my code, but Noesis exceptions keep getting in the way. In Visual Studio I enabled all CLR exceptions (Exception Settings -> CLR Exceptions) so it's easier to debug my code, but Noesis exceptions are thrown every frame.

They're all in NoesisView's UpdateVirtualKeys().

An example: System.ArgumentException: Input Axis Noesis_Vertical is not setup.
To change the input settings use: Edit -> Settings -> Input
at (wrapper managed-to-native) UnityEngine.Input.GetAxis(string)
at NoesisView.UpdateVirtualKeys ()

Why are they stopping the program despite being caught? How do I stop these from throwing?

Thanks for the help.
 
User avatar
jsantos
Site Admin
Posts: 2839
Joined: 20 Jan 2012, 17:18
Contact:

Re: Exception continuously being throw in Unity.

11 Apr 2019, 20:53

We discovered that even if being caught, the exception is generating GC.Allocs so we added a new check in NoesisView to disable input from gamepad. Gamepad is disabled by default. I recommend disabling that check if you have not configured Unity input system for a gamepad.

By they way, all our samples on GitHub were updated to support the Xbox controller.

Who is online

Users browsing this forum: jsantos, sfernandez and 8 guests