EvergineTeam / Feedback

Feedback, feature requests, and bug reports for Evergine.
https://evergine.com
14 stars 1 forks source link

[GLTFViewer] Error loading file #23

Closed Smurf-IV closed 3 years ago

Smurf-IV commented 4 years ago

TODO please attach the file used so we can debug it —we will keep it private if you send such by e-mail.

Error

 Warning: 0 : BackgroundTaskScheduler can not be configured for Web platform. Any Task enqueued in BackgroundScheduler will not be exceuted. dotnet.js:2259:16 WebGL warning: uniformBlockBinding: blockIndex (4294967295) must be less than ACTIVE_UNIFORM_BLOCKS (3). 2 dotnet.js:8768:18 emscripten_realloc_buffer: Attempted to grow heap from 245432320 bytes to 610205696 bytes, but got error: RangeError: failed to grow memory 3 dotnet.js:6635:17 Failed to grow the heap from 245432320 bytes to 610205696 bytes, not enough memory! dotnet.js:6680:10 emscripten_realloc_buffer: Attempted to grow heap from 245432320 bytes to 610205696 bytes, but got error: RangeError: failed to grow memory 3 dotnet.js:6635:17 Failed to grow the heap from 245432320 bytes to 610205696 bytes, not enough memory! dotnet.js:6680:10

Error

System.Exception: Exception importing asset '/Content/Temp/FH-NO-stf-v29-para.glb': System.OutOfMemoryException: Out of memory
  at (wrapper managed-to-native) System.String.FastAllocateString(int)
  at System.String.CreateStringFromEncoding (System.Byte* bytes, System.Int32 byteLength, System.Text.Encoding encoding) [0x00013] in /mnt/jenkins/workspace/test-mono-mainline-wasm_2/label/ubuntu-1804-amd64/external/corefx/src/Common/src/CoreLib/System/String.cs:492 
  at System.Text.UTF8Encoding.GetString (System.Byte[] bytes, System.Int32 index, System.Int32 count) [0x0006f] in /mnt/jenkins/workspace/test-mono-mainline-wasm_2/label/ubuntu-1804-amd64/external/corefx/src/Common/src/CoreLib/System/Text/UTF8Encoding.cs:391 
  at System.Text.Encoding.GetString (System.Byte[] bytes) [0x00018] in /mnt/jenkins/workspace/test-mono-mainline-wasm_2/label/ubuntu-1804-amd64/mcs/class/referencesource/mscorlib/system/text/encoding.cs:1547 
  at glTFLoader.Interface.ParseBinary (System.IO.Stream stream) <0x3c150c8 + 0x0003e> in <filename unknown>:0 
  at glTFLoader.Interface.LoadModel (System.IO.Stream stream) <0x3c14c18 + 0x0008e> in <filename unknown>:0 
  at WaveEngine.Assets.Importers.GltfModel.GltfImporterContext.ProcessResource () <0x3c14870 + 0x00024> in <filename unknown>:0 
  at WaveEngine.Assets.Importers.GLTFImporter.ImportHeader (System.IO.Stream stream, WaveEngine.Framework.Assets.ModelSource& resource) <0x3c07c18 + 0x00076> in <filename unknown>:0 
  at WaveEngine.Framework.Assets.Importers.AAssetImporter`1[T].ImportSource (System.IO.Stream stream, System.Boolean importData, System.Boolean rawAsset) <0x3c07948 + 0x0002c> in <filename unknown>:0 
  at WaveEngine.Framework.Assets.Importers.AAssetImporter`1[T].WaveEngine.Framework.Assets.Importers.IAssetImporter.ImportSource (System.IO.Stream stream, System.Boolean preprocess, System.Boolean rawAsset) <0x3c07800 + 0x0000e> in <filename unknown>:0 
  at WaveEngine.Framework.Assets.AssetImportManager.ImportAssetSource (WaveEngine.Common.IO.AssetStream assetStream, System.Boolean importData, System.Boolean rawAsset) <0x2eb9c28 + 0x0006e> in <filename unknown>:0 
  at WaveEngine.Assets.Exporters.AssetExporterManager.ImportAsset (WaveEngine.Assets.Contents.ContentElement assetElement) <0x3c07340 + 0x00042> in <filename unknown>:0 
  at WaveEngine.Assets.Exporters.AssetExporterManager.ImportAsset (WaveEngine.Assets.Contents.ContentElement assetElement) <0x3c07340 + 0x000d2> in <filename unknown>:0 
  at WaveEngine.Assets.Exporters.AssetExporterManager.ImportAssetItem (WaveEngine.Assets.Contents.ContentElement assetElement, WaveEngine.Assets.Exporters.IAssetWithDirectory parentAsset) <0x3c071a8 + 0x00006> in <filename unknown>:0 
  at GLTFViewer.GLTF.ImportToAsync (System.Collections.Generic.IEnumerable`1[T] files, System.String tempContentPath, System.Func`3[T1,T2,TResult] reportProgressAsync) [0x00145] in D:\Repositorios\Wave.GLTFViewer.Web\src\GLTFViewer\Helpers\GLTF.cs:178 
  at GLTFViewer.GLTF.LoadAsync (System.String absoluteDirectoryPath, System.Func`3[T1,T2,TResult] reportProgressAsync) [0x00139] in D:\Repositorios\Wave.GLTFViewer.Web\src\GLTFViewer\Helpers\GLTF.cs:51 
  at GLTFViewer.ViewerScene.AddGLTFAsync (System.String absoluteDirectoryPath) [0x000b4] in D:\Repositorios\Wave.GLTFViewer.Web\src\GLTFViewer\Scenes\ViewerScene.cs:54 
  at GLTFViewer.Web.Program.LoadGLTF (System.String absoluteDirectoryPath) [0x00053] in D:\Repositorios\Wave.GLTFViewer.Web\src\GLTFViewer.Web\Program.cs:96 
vicfergar commented 4 years ago

Hi @Smurf-IV, Looks like the model that you are trying to load is too big and is causing memory allocation issues. Please can you share that model with me by e-mail?

Smurf-IV commented 4 years ago

I already have sent an email with the tag #23

vicfergar commented 4 years ago

Hi @Smurf-IV I cannot see your mail, can you confirm that you sent it to this address?

Smurf-IV commented 4 years ago

It went to

  mcobena @ plainconcepts.com

Have resent to the one you have indicated as per the template set in OP

vicfergar commented 3 years ago

Hi @Smurf-IV,

sorry for the late answer. Did you finally manage to load the model correctly?

Smurf-IV commented 3 years ago

Sorry - Missed this. The project changed direction and is now using "x_t" format files.

vicfergar commented 3 years ago

That sounds interesting @Smurf-IV !

I will close the issue then. Let us know if we can help with something else.