Page 1 of 1

StreamGeometry parsing error

Posted: 20 Nov 2018, 12:21
by KeldorKatarn
I cannot get this streaming geometry to work:
      <Grid.Resources>
          <StreamGeometry x:Key="Icon.Maintenance">F1M0,0z M22.36,16.86A9.4,9.4,0,0,0,20.19,6.78,9.55,9.55,0,0,0,9.44,4.88l6.24,6.28-4.35,4.38L4.94,9.26A9.45,9.45,0,0,0,6.82,20.07a9.27,9.27,0,0,0,10,2.19l13.21,13.3a1.4,1.4,0,0,0,2,0l3.34-3.36a1.32,1.32,0,0,0,.14-2Z M40,40z</StreamGeometry>
      </Grid.Resources>
NoesisException: Assets/NoesisGUI/HelloWorld/Views/TestVIew.xaml(15): Can't convert 'F1M0,0z M22.36,16.86A9.4,9.4,0,0,0,20.19,6.78,9.55,9.55,0,0,0,9.44,4.88l6.24,6.28-4.35,4.38L4.94,9.26A9.45,9.45,0,0,0,6.82,20.07a9.27,9.27,0,0,0,10,2.19l13.21,13.3a1.4,1.4,0,0,0,2,0l3.34-3.36a1.32,1.32,0,0,0,.14-2Z M40,40z' into a 'StreamGeometry' object.
Rethrow as NoesisException
Noesis.Error.Check () (at Assets/NoesisGUI/Plugins/API/Core/NoesisError.cs:17)
Noesis.GUI.Noesis_LoadComponent_ (System.Runtime.InteropServices.HandleRef component, System.String xaml) (at Assets/NoesisGUI/Plugins/API/Core/NoesisGUI.cs:282)
Noesis.GUI.LoadComponent (System.Object component, System.String xaml) (at Assets/NoesisGUI/Plugins/API/Core/NoesisGUI.cs:135)
HelloWorld.Views.PowerUpView.InitializeComponent () (at Assets/NoesisGUI/HelloWorld/Views/PowerUpView.xaml.cs:29)
HelloWorld.Views.PowerUpView..ctor () (at Assets/NoesisGUI/HelloWorld/Views/PowerUpView.xaml.cs:22)
(wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure)
Noesis.Extend.CreateInstance (System.IntPtr nativeType, System.IntPtr cPtr) (at Assets/NoesisGUI/Plugins/API/Core/NoesisExtend.cs:3933)
Rethrow as NoesisException
Noesis.Error.Check () (at Assets/NoesisGUI/Plugins/API/Core/NoesisError.cs:17)
Noesis.GUI.Noesis_LoadXaml_ (System.String xaml) (at Assets/NoesisGUI/Plugins/API/Core/NoesisGUI.cs:275)
Noesis.GUI.LoadXaml (System.String xaml) (at Assets/NoesisGUI/Plugins/API/Core/NoesisGUI.cs:125)
NoesisXaml.Load () (at Assets/NoesisGUI/Plugins/NoesisXaml.cs:31)
NoesisPostprocessor+<ImportXaml>c__AnonStorey0.<>m__0 () (at Assets/NoesisGUI/Plugins/Editor/NoesisPostprocessor.cs:353)
UnityEngine.Debug:LogException(Exception, Object)
<ImportXaml>c__AnonStorey0:<>m__0() (at Assets/NoesisGUI/Plugins/Editor/NoesisPostprocessor.cs:359)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

Re: StreamGeometry parsing error

Posted: 22 Nov 2018, 18:24
by sfernandez
As said in your other post this was due to the SVG parser. We have a ticket for that: https://www.noesisengine.com/bugs/view.php?id=1359
You can workaround it by specifying the A code for each arc command contained in the path, in your example this will work:
<Grid.Resources>
    <StreamGeometry x:Key="Icon.Maintenance">F1M0,0z M22.36,16.86A9.4,9.4,0,0,0,20.19,6.78A9.55,9.55,0,0,0,9.44,4.88l6.24,6.28-4.35,4.38L4.94,9.26A9.45,9.45,0,0,0,6.82,20.07a9.27,9.27,0,0,0,10,2.19l13.21,13.3a1.4,1.4,0,0,0,2,0l3.34-3.36a1.32,1.32,0,0,0,.14-2Z M40,40z</StreamGeometry>
</Grid.Resources>

Re: StreamGeometry parsing error

Posted: 23 Nov 2018, 14:16
by KeldorKatarn
That is not a workaround for us. We get icon data in batches from our designers. Modifying each of them by hand is a prohibitive amount of work.

Re: StreamGeometry parsing error

Posted: 23 Nov 2018, 14:38
by jsantos
I will fix this in the upcoming days. You will have the fix in the first 2.2 Unity beta. Thanks for your patience.

Re: StreamGeometry parsing error

Posted: 12 Dec 2018, 12:32
by KeldorKatarn
I will try the porting again soon with the 2.2 beta and will try to get back to you on these issues then.

Re: StreamGeometry parsing error

Posted: 12 Dec 2018, 14:44
by jsantos
I will try the porting again soon with the 2.2 beta and will try to get back to you on these issues then.
Thanks! Could you please upload your project privately to the tracker? We want to analyze those random crashes you are having when reimporting everything or when changing XAML.

Re: StreamGeometry parsing error

Posted: 14 Dec 2018, 17:54
by KeldorKatarn
I need to check first whether there's any customer stuff in there.

Re: StreamGeometry parsing error

Posted: 14 Dec 2018, 18:01
by jsantos
We can sign a NDA if you need it.

Re: StreamGeometry parsing error

Posted: 17 Dec 2018, 11:47
by KeldorKatarn
That wouldn't help. Our contract doesn't allow uploading anything anywhere, NDA or not. So I need to clean it up first.