KeldorKatarn
Topic Author
Posts: 193
Joined: 30 May 2014, 10:26

StreamGeometry parsing error

20 Nov 2018, 12:21

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()
 
User avatar
sfernandez
Site Admin
Posts: 2991
Joined: 22 Dec 2011, 19:20

Re: StreamGeometry parsing error

22 Nov 2018, 18:24

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>
 
KeldorKatarn
Topic Author
Posts: 193
Joined: 30 May 2014, 10:26

Re: StreamGeometry parsing error

23 Nov 2018, 14:16

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.
 
User avatar
jsantos
Site Admin
Posts: 3918
Joined: 20 Jan 2012, 17:18
Contact:

Re: StreamGeometry parsing error

23 Nov 2018, 14:38

I will fix this in the upcoming days. You will have the fix in the first 2.2 Unity beta. Thanks for your patience.
 
KeldorKatarn
Topic Author
Posts: 193
Joined: 30 May 2014, 10:26

Re: StreamGeometry parsing error

12 Dec 2018, 12:32

I will try the porting again soon with the 2.2 beta and will try to get back to you on these issues then.
 
User avatar
jsantos
Site Admin
Posts: 3918
Joined: 20 Jan 2012, 17:18
Contact:

Re: StreamGeometry parsing error

12 Dec 2018, 14:44

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.
 
KeldorKatarn
Topic Author
Posts: 193
Joined: 30 May 2014, 10:26

Re: StreamGeometry parsing error

14 Dec 2018, 17:54

I need to check first whether there's any customer stuff in there.
 
User avatar
jsantos
Site Admin
Posts: 3918
Joined: 20 Jan 2012, 17:18
Contact:

Re: StreamGeometry parsing error

14 Dec 2018, 18:01

We can sign a NDA if you need it.
 
KeldorKatarn
Topic Author
Posts: 193
Joined: 30 May 2014, 10:26

Re: StreamGeometry parsing error

17 Dec 2018, 11:47

That wouldn't help. Our contract doesn't allow uploading anything anywhere, NDA or not. So I need to clean it up first.

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 68 guests