View Issue Details

IDProjectCategoryView StatusLast Update
0001817NoesisGUIUnitypublic2020-11-03 16:39
ReporterArmitage1982 Assigned Tosfernandez  
PrioritynormalSeveritytweak 
Status resolvedResolutionfixed 
Product Version3.0.6 
Target Version3.0.8Fixed in Version3.0.8 
Summary0001817: RadioButton Gallery example throw ArgumentException in Unity Editor Mode & Builds
Description

Using the Gallery Example in a Unity 2020.1.10f1 in Editor Mode OR Windows / WebGL Build
the Basic input => RadioButton => GroupName example throw this Unity ArgumentException when selecting any radio button :

<code>

ArgumentException: Object of type 'System.String' cannot be converted to type 'Noesis.Brush'.
System.RuntimeType.CheckValue (System.Object value, System.Reflection.Binder binder, System.Globalization.CultureInfo culture, System.Reflection.BindingFlags invokeAttr) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Reflection.MonoMethod.ConvertValues (System.Reflection.Binder binder, System.Object[] args, System.Reflection.ParameterInfo[] pinfo, System.Globalization.CultureInfo culture, System.Reflection.BindingFlags invokeAttr) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Reflection.MonoProperty.SetValue (System.Object obj, System.Object value, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] index, System.Globalization.CultureInfo culture) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Reflection.PropertyInfo.SetValue (System.Object obj, System.Object value, System.Object[] index) (at <9577ac7a62ef43179789031239ba8798>:0)
NoesisApp.ChangePropertyAction.SetPropertyValue () (at Assets/NoesisGUI/Plugins/API/Interactivity/ChangePropertyAction.cs:173)
NoesisApp.ChangePropertyAction.Invoke (System.Object parameter) (at Assets/NoesisGUI/Plugins/API/Interactivity/ChangePropertyAction.cs:111)
NoesisApp.TriggerAction.CallInvoke (System.Object parameter) (at Assets/NoesisGUI/Plugins/API/Interactivity/TriggerAction.cs:44)
NoesisApp.TriggerBase.InvokeActions (System.Object parameter) (at Assets/NoesisGUI/Plugins/API/Interactivity/TriggerBase.cs:82)
NoesisApp.EventTriggerBase.OnEvent (System.Object parameter) (at Assets/NoesisGUI/Plugins/API/Interactivity/EventTriggerBase.cs:94)
NoesisApp.EventTriggerBase.OnEventImpl (System.Object sender, Noesis.EventArgs eventArgs) (at Assets/NoesisGUI/Plugins/API/Interactivity/EventTriggerBase.cs:207)
NoesisApp.EventTriggerBase+EventWrapper.Invoke (System.Object sender, Noesis.EventArgs e) (at Assets/NoesisGUI/Plugins/API/Interactivity/EventTriggerBase.cs:156)
(wrapper unbox) NoesisApp.EventTriggerBase+EventWrapper.Invoke(object,Noesis.EventArgs)
Noesis.RoutedEventArgs.InvokeHandler (System.Delegate handler, System.IntPtr sender, System.IntPtr args) (at Assets/NoesisGUI/Plugins/API/Proxies/RoutedEventArgs.cs:50)
Noesis.EventManager.InvokeHandler (System.IntPtr routedEvent, System.Delegate handler, System.IntPtr sender, System.IntPtr args) (at Assets/NoesisGUI/Plugins/API/Core/Events.cs:586)
Noesis.EventHandlerStore.RaiseRoutedEvent (System.IntPtr cPtrType, System.IntPtr cPtr, System.IntPtr routedEvent, System.IntPtr sender, System.IntPtr e) (at Assets/NoesisGUI/Plugins/API/Core/Events.cs:275)
UnityEngine.Debug:LogException(Exception)
NoesisUnity:OnUnhandledException(Exception) (at Assets/NoesisGUI/Plugins/NoesisUnity.cs:167)
Noesis.Error:UnhandledException(Exception) (at Assets/NoesisGUI/Plugins/API/Core/Error.cs:18)
Noesis.EventHandlerStore:RaiseRoutedEvent(IntPtr, IntPtr, IntPtr, IntPtr, IntPtr) (at Assets/NoesisGUI/Plugins/API/Core/Events.cs:280)
Noesis.View:Noesis_View_MouseButtonUp(HandleRef, Int32, Int32, Int32)
Noesis.View:MouseButtonUp(Int32, Int32, MouseButton) (at Assets/NoesisGUI/Plugins/API/Core/View.cs:154)
NoesisView:ProcessEvent(Event, Boolean, Boolean, Boolean) (at Assets/NoesisGUI/Plugins/NoesisView.cs:1133)
NoesisView:OnGUI() (at Assets/NoesisGUI/Plugins/NoesisView.cs:1227)

</code>

Steps To Reproduce

Simply try the Gallery Example from https://github.com/Noesis/Tutorials/tree/master/Samples/Gallery/Unity
in Edit mode or inside a unity 2020.1.10f1 Build

PlatformWindows

Relationships

related to 0001454 assignedsfernandez custom TypeConverters are not supported in NoesisGUI C# API 

Activities

sfernandez

sfernandez

2020-10-26 10:55

manager   ~0006704

Thanks for the report, this is related to the lack of TypeConverters for some types in C# API.
It turns out that TypeDescriptor.GetConverter() can't find a valid converter for Brush type.

Issue History

Date Modified Username Field Change
2020-10-24 20:36 Armitage1982 New Issue
2020-10-26 10:55 sfernandez Assigned To => sfernandez
2020-10-26 10:55 sfernandez Status new => assigned
2020-10-26 10:55 sfernandez Target Version => 3.1
2020-10-26 10:55 sfernandez Note Added: 0006704
2020-10-26 11:19 sfernandez Relationship added related to 0001454
2020-10-28 11:07 jsantos Target Version 3.1 => 3.0.8
2020-11-03 16:39 sfernandez Status assigned => resolved
2020-11-03 16:39 sfernandez Resolution open => fixed
2020-11-03 16:39 sfernandez Fixed in Version => 3.0.8
2025-10-10 13:29 jsantos Category Unity3D => Unity