- KeldorKatarn
- Posts: 193
- Joined:
StreamGeometry parsing error
I cannot get this streaming geometry to work:
Code: Select all
<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>
Code: Select all
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()
-
sfernandez
Site Admin
- Posts: 2991
- Joined:
Re: StreamGeometry parsing error
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:
You can workaround it by specifying the A code for each arc command contained in the path, in your example this will work:
Code: Select all
<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
- Posts: 193
- Joined:
Re: StreamGeometry parsing error
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
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
- Posts: 193
- Joined:
Re: StreamGeometry parsing error
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
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.I will try the porting again soon with the 2.2 beta and will try to get back to you on these issues then.
- KeldorKatarn
- Posts: 193
- Joined:
Re: StreamGeometry parsing error
I need to check first whether there's any customer stuff in there.
Re: StreamGeometry parsing error
We can sign a NDA if you need it.
- KeldorKatarn
- Posts: 193
- Joined:
Re: StreamGeometry parsing error
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