Skip to content

SVG to Farseer Physics sample crash #23

Description

@spaaaaam

Other samples work just fine.

Running Ubuntu 18.04 with Mono 5.18.0.225.

The stacktrace :

  at System.Number.ParseSingle (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) [0x00071] in <7b0d87324cab49bf96eac679025e77d1>:0
  at System.Single.Parse (System.String s) [0x0001a] in <7b0d87324cab49bf96eac679025e77d1>:0
  at Nez.Svg.SvgPolygon.parsePoints (System.String str) [0x0003a] in /home/code/git_repos/Nez-Samples/Nez/Nez.Portable/Graphics/SVG/Shapes/SvgPolygon.cs:36
  at Nez.Svg.SvgPolygon.set_pointsAttribute (System.String value) [0x00000] in /home/code/git_repos/Nez-Samples/Nez/Nez.Portable/Graphics/SVG/Shapes/SvgPolygon.cs:22
  at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSvgDocument.Read11_SvgPolygon (System.Boolean isNullable, System.Boolean checkType) [0x003a9] in <df114bbdfd99449891aeae0e2c3cb59a>:0
  at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSvgDocument.Read14_SvgGroup (System.Boolean isNullable, System.Boolean checkType) [0x00854] in <df114bbdfd99449891aeae0e2c3cb59a>:0
  at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSvgDocument.Read15_SvgDocument (System.Boolean isNullable, System.Boolean checkType) [0x00684] in <df114bbdfd99449891aeae0e2c3cb59a>:0
  at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSvgDocument.Read16_svg () [0x00050] in <df114bbdfd99449891aeae0e2c3cb59a>:0
  at at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0003b] in <7b0d87324cab49bf96eac679025e77d1>:0
  --- End of inner exception stack trace ---
  at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.XmlReader xmlReader, System.String encodingStyle, System.Xml.Serialization.XmlDeserializationEvents events) [0x0011b] in <2388e378a5cd4e65bc514c9bf93520a5>:0
  at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.XmlReader xmlReader, System.String encodingStyle) [0x00000] in <2388e378a5cd4e65bc514c9bf93520a5>:0
  at System.Xml.Serialization.XmlSerializer.Deserialize (System.IO.Stream stream) [0x0001c] in <2388e378a5cd4e65bc514c9bf93520a5>:0
  at Nez.Svg.SvgDocument.open (System.IO.Stream stream) [0x0000f] in /home/code/git_repos/Nez-Samples/Nez/Nez.Portable/Graphics/SVG/SvgDocument.cs:36
  at Nez.Samples.FarseerSVGScene.initialize () [0x0009d] in <2ebf495a000a4fcead86a991d8b55384>:0
  at Nez.Scene..ctor () [0x000d3] in /home/code/git_repos/Nez-Samples/Nez/Nez.Portable/ECS/Scene.cs:317
  at Nez.Samples.SampleScene..ctor (System.Boolean addExcludeRenderer, System.Boolean needsFullRenderSizeForUI) [0x0000b] in <2ebf495a000a4fcead86a991d8b55384>:0
  at Nez.Samples.FarseerSVGScene..ctor () [0x00000] in <2ebf495a000a4fcead86a991d8b55384>:0
  at at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <7b0d87324cab49bf96eac679025e77d1>:0
  --- End of inner exception stack trace ---
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00017] in <7b0d87324cab49bf96eac679025e77d1>:0
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x000a8] in <7b0d87324cab49bf96eac679025e77d1>:0
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in <7b0d87324cab49bf96eac679025e77d1>:0
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in <7b0d87324cab49bf96eac679025e77d1>:0
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x0002c] in <7b0d87324cab49bf96eac679025e77d1>:0
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <7b0d87324cab49bf96eac679025e77d1>:0
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <7b0d87324cab49bf96eac679025e77d1>:0
  at Nez.Samples.SampleScene+<>c__DisplayClass7_0.<setupSceneSelector>b__2 () [0x00000] in <2ebf495a000a4fcead86a991d8b55384>:0
  at Nez.SceneTransition+<loadNextScene>d__13.MoveNext () [0x00077] in /home/code/git_repos/Nez-Samples/Nez/Nez.Portable/Graphics/Transitions/SceneTransition.cs:136
  at Nez.Systems.CoroutineManager.tickCoroutine (Nez.Systems.CoroutineManager+CoroutineImpl coroutine) [0x00000] in /home/code/git_repos/Nez-Samples/Nez/Nez.Portable/Utils/Coroutines/CoroutineManager.cs:157
  at Nez.Systems.CoroutineManager.startCoroutine (System.Collections.IEnumerator enumerator) [0x00013] in /home/code/git_repos/Nez-Samples/Nez/Nez.Portable/Utils/Coroutines/CoroutineManager.cs:84
  at Nez.Core.startCoroutine (System.Collections.IEnumerator enumerator) [0x00000] in /home/code/git_repos/Nez-Samples/Nez/Nez.Portable/Core.cs:399
  at Nez.FadeTransition+<onBeginTransition>d__12.MoveNext () [0x000b1] in /home/code/git_repos/Nez-Samples/Nez/Nez.Portable/Graphics/Transitions/FadeTransition.cs:73
  at Nez.Systems.CoroutineManager.tickCoroutine (Nez.Systems.CoroutineManager+CoroutineImpl coroutine) [0x00000] in /home/code/git_repos/Nez-Samples/Nez/Nez.Portable/Utils/Coroutines/CoroutineManager.cs:157
  at Nez.Systems.CoroutineManager.Nez.IUpdatableManager.update () [0x00093] in /home/code/git_repos/Nez-Samples/Nez/Nez.Portable/Utils/Coroutines/CoroutineManager.cs:136
  at Nez.Core.Update (Microsoft.Xna.Framework.GameTime gameTime) [0x0003f] in /home/code/git_repos/Nez-Samples/Nez/Nez.Portable/Core.cs:215
  at Microsoft.Xna.Framework.Game.DoUpdate (Microsoft.Xna.Framework.GameTime gameTime) [0x00019] in <bdb3723ca0994eb68ac257fed9cb7a92>:0
  at Microsoft.Xna.Framework.Game.Tick () [0x001d6] in <bdb3723ca0994eb68ac257fed9cb7a92>:0
  at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop () [0x00021] in <bdb3723ca0994eb68ac257fed9cb7a92>:0
  at Microsoft.Xna.Framework.Game.Run (Microsoft.Xna.Framework.GameRunBehavior runBehavior) [0x00082] in <bdb3723ca0994eb68ac257fed9cb7a92>:0
  at Microsoft.Xna.Framework.Game.Run () [0x0000c] in <bdb3723ca0994eb68ac257fed9cb7a92>:0
  at Nez.Samples.Program.RunGame () [0x0000a] in <2ebf495a000a4fcead86a991d8b55384>:0
  at Nez.Samples.Program.Main (System.String[] args) [0x00000] in <2ebf495a000a4fcead86a991d8b55384>:0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions