I am making a webpack app, I got everything setup properly (the gltfs that I import, the webpack config was working great and all that), I had a xr scene with some gltfs and a couple mes but nothing too crazy. I ran the code around a week ago and everything was working as intented but today I npm run start and the loader tells me RuntimeError : Unexpected Magic 5388970747
Unfortunately I can’t really provide a playground since the meshes are generated through an api call with credentials and all that but I’d hope someone knows what could be happening.
Do you know which version of Babylon causes this error and what is the Babylon version number which works fine with your code?
Are you sure that Babylon and Babylon loaders are of the same version?
What happened between a week ago and current time? Did you update something and what did you update and how?
Hi, thanks for your questions, The version of babylon is 7.12.0 and the version of the loader is 7.10.0 I removed and reinstalled node_modules just in case
I also thought about the path being wrong but it was working a week ago with the same path and I did not modify the architecture. I am loading the data synchronously but I will try asynchronously.
I’ve used ImportMesh with .stl and .obj files. With those loaders, it is fine to put the entire url in the “file” parameter with the “root” parameter an empty string. I agree the name parameter also needs to be an empty string if you’re expecting to load all meshes in the file. I’m guessing the root parameter is there to give a sort of base url so that filename and filepath references within the loaded file (e.g. material or texture files) are relative to that base url.