google-ar / sceneform-android-sdk

Sceneform SDK for Android
https://developers.google.com/sceneform/develop/
Apache License 2.0
1.23k stars 604 forks source link

cant load a valid gltf file #890

Closed PerspectivesLab closed 4 years ago

PerspectivesLab commented 4 years ago

While trying to load a valid gltf file generated in threejs i got the following error : ( the model loads perfectly in a gltf viewer, microsoft 3d viewer or other.. )

reproduce: go to: https://threejs.org/editor/ create a cube, export it in gltf load it in modelviewer / sceneform => face error

java.util.concurrent.CompletionException: java.lang.RuntimeException: Mesh face is not a triangle at com.google.ar.sceneform.rendering.ak.run(SourceFile:39) at com.google.ar.sceneform.c.h.a(SourceFile:3) at com.google.common.s.a.br.run(SourceFile:7) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) Caused by: java.lang.RuntimeException: Mesh face is not a triangle at com.google.ar.sceneform.assets.Loader.nTryLoad(Native Method) at com.google.ar.sceneform.rendering.ak.run(SourceFile:4) at com.google.ar.sceneform.c.h.a(SourceFile:3)  at com.google.common.s.a.br.run(SourceFile:7)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)  at java.lang.Thread.run(Thread.java:764)  2019-10-10 15:31:06.765 20971-20971/? E/ViewerActivity: Failed to load model. java.util.concurrent.CompletionException: java.lang.RuntimeException: Mesh face is not a triangle at com.google.ar.sceneform.rendering.ak.run(SourceFile:39) at com.google.ar.sceneform.c.h.a(SourceFile:3) at com.google.common.s.a.br.run(SourceFile:7) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) Caused by: java.lang.RuntimeException: Mesh face is not a triangle at com.google.ar.sceneform.assets.Loader.nTryLoad(Native Method)

PerspectivesLab commented 4 years ago

Actually it was working it was a cache issue browser side