question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GLTFLoader doesn't load binary buffer on Android

See original GitHub issue

Using a localUri like this: file:///data/user/0/host.exp.exponent/cache/ExperienceData/%2540arttu%252Fsignlab-ar-prototype/ExponentAsset-edefa90125f1739a3f962678f2406a92.bin Android outputs an error from THREE.FileLoader: https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/GLTFLoader.js#L1778

The problem sounded similar as in the below link, being an issue only on Android and relating to localUri. However Expo.FileSystem is not being used and Expo.Asset.downloaded flag is set to true. https://github.com/expo/expo-three/issues/10/

I also noticed that AssimpLoaderExample.js from expo-three outputs a similar error on Android. I guess there are somehow related as both use THREE.FileLoader and are in binary buffer file format.

All of this works perfectly on iOS!

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
igorroman777commented, Aug 4, 2020

@EvanBacon EvanBacon did you find a solution for “{ isTrusted” : false }"? I have the same problem. Thanks

2reactions
p4triccommented, Sep 19, 2020

also got this { isTrusted" : false }.

any fix yet?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trouble loading a gltf file in mobile - Questions - three.js forum
I am using code heavily borrowed from the threejs example tutorial for gltfloader. I can load the scene they use with my code...
Read more >
webpack - Failed to load buffer (.bin) - Three.JS - Stack Overflow
You can't just ask the GLTFLoader to open a .zip file. It says in the documentation: A loader for glTF 2.0 resources.
Read more >
glTF loader for Android Vulkan - Chromatic Coder
We are going to load a gltf ASCII or binary format model from the ... It loads image data no matter from *glb...
Read more >
GLTF is too complicated - Khronos Forums
I'm on the final parts of my GLTF loader, after working on it over a year ... Blender for example will fail to...
Read more >
diligent-engine/Lobby - Gitter
Ok, thanks. We have to use OpenGL because the software has to run on Android, in you opinion would using eglMakeCurrent in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found