One of our three team members is getting strange errors during Content building, specifically with texture importing. The other two of us are able to build the same content just fine. If it helps, he is using Windows 7 and VS2012 Express.
The error is occurring on around 1/8 of the textures being imported. I’m not familiar with png encoding, so it’s just a guess, but I was wondering if different encoding/formats would explain why some fail and not others. I plan to explore this as a possible workaround in case it just requires saving the images in a different format. However, I’m still really curious as to why it would fail on his computer and not ours, and whether any of you have seen this before.
Below is a sample of one of the errors from the stack trace, and the .png in question is below that… I’ve also included an example of a .png that is importing successfully. Thanks in advance for any help!
C:/DEV/gbjam3/Bazaar/Content/textures/game/menu/titlescreen.png: error: Importer 'TextureImporter' had unexpected failure!
System.TypeInitializationException: The type initializer for 'FreeImageAPI.MemoryArray`1' threw an exception. ---> System.MissingMethodException: Method not found: 'IntPtr System.Runtime.InteropServices.Marshal.UnsafeAddrOfPinnedArrayElement(!!0[], Int32)'.
at FreeImageAPI.MemoryArray`1..cctor()
--- End of inner exception stack trace ---
at FreeImageAPI.MemoryArray`1..ctor(IntPtr baseAddress, Int32 length)
at FreeImageAPI.Palette..ctor(FIBITMAP dib)
at FreeImageAPI.FreeImage.GetBitmap(FIBITMAP dib, Boolean copyMetadata)
at Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.Import(String filename, ContentImporterContext context)
at Microsoft.Xna.Framework.Content.Pipeline.ContentImporter`1.Microsoft.Xna.Framework.Content.Pipeline.IContentImporter.Import(String filename, ContentImporterContext context)
at MonoGame.Framework.Content.Pipeline.Builder.PipelineManager.ProcessContent(PipelineBuildEvent pipelineEvent)
titlescreen.png:
A .png that is working fine:
EDIT: Removed a red herring