Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XmlImporter had unexpected failure #6998

Open
Cybertwip opened this issue Jan 23, 2020 · 1 comment
Open

XmlImporter had unexpected failure #6998

Cybertwip opened this issue Jan 23, 2020 · 1 comment

Comments

@Cybertwip
Copy link

I'm trying to build xml mappings for our animations but I get the error XmlImporter had unexpected failure. I'm not sure why it is failing, it fails only with XML files as the custom processed TMX Tiled map files are running and building fine. Below is the log of the build.

The troubling xml is also attached as annMap.txt, just rename it to xml and try it.

Build started 1/22/2020 11:54:04 PM

/Users/greentwip/Documents/Source/harvestmoon/Data/Content/animations/annMap.xml
Warning: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
/Users/greentwip/Documents/Source/harvestmoon/Data/Content/animations/annMap.xml: error: Importer 'XmlImporter' had unexpected failure!
System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <2722d81e5b26475cb5f475fea055f291>:0 
  at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate.IntermediateSerializer+<>c.<FindType>b__15_0 (System.Reflection.Assembly assembly) [0x00000] in <31874325f092437ca6e29782e6a4c35c>:0 
  at System.Linq.Enumerable+<SelectManyIterator>d__167`3[TSource,TCollection,TResult].MoveNext () [0x0004e] in <f84aa906ee264c4a932d8627b3559eb9>:0 
  at System.Linq.Enumerable+WhereSelectEnumerableIterator`2[TSource,TResult].MoveNext () [0x00059] in <f84aa906ee264c4a932d8627b3559eb9>:0 
  at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Boolean& found) [0x00045] in <f84aa906ee264c4a932d8627b3559eb9>:0 
  at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00000] in <f84aa906ee264c4a932d8627b3559eb9>:0 
  at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate.IntermediateSerializer.FindType (System.String typeName) [0x00202] in <31874325f092437ca6e29782e6a4c35c>:0 
  at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <f84aa906ee264c4a932d8627b3559eb9>:0 
  at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <f84aa906ee264c4a932d8627b3559eb9>:0 
  at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate.IntermediateSerializer.FindType (System.String typeName) [0x00149] in <31874325f092437ca6e29782e6a4c35c>:0 
  at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate.IntermediateReader.ReadTypeName () [0x00012] in <31874325f092437ca6e29782e6a4c35c>:0 
  at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate.IntermediateReader.ReadObject[T] (Microsoft.Xna.Framework.Content.ContentSerializerAttribute format, Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate.ContentTypeSerializer typeSerializer, T existingInstance) [0x0009f] in <31874325f092437ca6e29782e6a4c35c>:0 
  at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate.IntermediateReader.ReadObject[T] (Microsoft.Xna.Framework.Content.ContentSerializerAttribute format) [0x00017] in <31874325f092437ca6e29782e6a4c35c>:0 
  at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate.IntermediateSerializer.Deserialize[T] (System.Xml.XmlReader input, System.String referenceRelocationPath) [0x00053] in <31874325f092437ca6e29782e6a4c35c>:0 
  at Microsoft.Xna.Framework.Content.Pipeline.XmlImporter.Import (System.String filename, Microsoft.Xna.Framework.Content.Pipeline.ContentImporterContext context) [0x00007] in <31874325f092437ca6e29782e6a4c35c>:0 
  at Microsoft.Xna.Framework.Content.Pipeline.ContentImporter`1[T].Microsoft.Xna.Framework.Content.Pipeline.IContentImporter.Import (System.String filename, Microsoft.Xna.Framework.Content.Pipeline.ContentImporterContext context) [0x0001c] in <31874325f092437ca6e29782e6a4c35c>:0 
  at MonoGame.Framework.Content.Pipeline.Builder.PipelineManager.ProcessContent (MonoGame.Framework.Content.Pipeline.Builder.PipelineBuildEvent pipelineEvent) [0x00079] in <31874325f092437ca6e29782e6a4c35c>:0 

Build 0 succeeded, 1 failed.

Time elapsed 00:00:00.60.

annMap.txt

What version of MonoGame does the bug occur on:

  • MonoGame 3.8.0.1018

What operating system are you using:

  • MacOS

What MonoGame platform are you using:

  • DesktopGL
@QuinnBast
Copy link

Duplicate of #6942

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants