This project is read-only.
1

Closed

FBX importer exceptions

description

Most of my models won't load, Content.Load<Model>() will give exception "index out of range exception", and larger model gives compile error "out of memory exception".
Building content threw OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.IO.MemoryStream.set_Capacity(Int32 value)
   at System.IO.MemoryStream.EnsureCapacity(Int32 value)
   at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.BinaryWriter.Write(Byte[] buffer)
   at JBBRXG11ContentFBXModel.JBBRXG11FBXModelContentWriter.Write(ContentWriter output, ModelInfoStuff value) in C:\Users\Bill\Desktop\TryComputeShader\JBBRXG11\JBBRXG11-V0.9.50.02-Library\JBBRXG11ContentPipeline\JBBRXG11FBXModelContentWriter.cs:line 85
   at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentTypeWriter`1.Write(ContentWriter output, Object value)
   at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentWriter.InvokeWriter[T](T value, ContentTypeWriter writer)
   at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentWriter.WriteObject[T](T value)
   at Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentCompiler.Compile(Stream output, Object value, TargetPlatform targetPlatform, GraphicsProfile targetProfile, Boolean compressContent, String rootDirectory, String referenceRelocationPath)
   at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.SerializeOutputAsset(BuildItem item, Object assetData, String outputFilename)
   at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.SerializeAsset(BuildItem item, Object assetData)
   at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAssetWorker(BuildItem item)
   at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAsset(BuildItem item)
   at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.RunTheBuild()
   at Microsoft.Xna.Framework.Content.Pipeline.Tasks.BuildContent.RemoteProxy.RunTheBuild(BuildCoordinatorSettings settings, TimestampCache timestampCache, ITaskItem[] sourceAssets, String[]& outputContent, String[]& rebuiltContent, String[]& intermediates, Dictionary`2& dependencyTimestamps, KeyValuePair`2[]& warnings)
The only model I was able to load so far was simple low poly sphere.
Closed Mar 18, 2013 at 10:32 AM by coms0108
Thanks for the issue. Problem was to do with 16 / 32 bit index and adjacency index buffers. Have fixed that and made adjacency index buffer calculation optional (using a flag on the FBX model importer). The fix is in the current source code - not done a new release yet

comments

coms0108 wrote Mar 18, 2013 at 10:31 AM

Thanks for the issue. Problem was to do with 16 / 32 bit index and adjacency index buffers. Have fixed that and made adjacency index buffer calculation optional (using a flag on the FBX model importer). The fix is in the current source code - not done a new release yet.

wrote Mar 18, 2013 at 10:32 AM

wrote May 15, 2013 at 4:13 AM