{"action":"opened","issue":{"url":"https://api.github.com/repos/google-ar/sceneform-android-sdk/issues/740","repository_url":"https://api.github.com/repos/google-ar/sceneform-android-sdk","labels_url":"https://api.github.com/repos/google-ar/sceneform-android-sdk/issues/740/labels{/name}","comments_url":"https://api.github.com/repos/google-ar/sceneform-android-sdk/issues/740/comments","events_url":"https://api.github.com/repos/google-ar/sceneform-android-sdk/issues/740/events","html_url":"https://github.com/google-ar/sceneform-android-sdk/issues/740","id":458061324,"node_id":"MDU6SXNzdWU0NTgwNjEzMjQ=","number":740,"title":"Loading .gltf FileNotFound but file is here","user":{"login":"jpsarda","id":517839,"node_id":"MDQ6VXNlcjUxNzgzOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/517839?v=4","gravatar_id":"","url":"https://api.github.com/users/jpsarda","html_url":"https://github.com/jpsarda","followers_url":"https://api.github.com/users/jpsarda/followers","following_url":"https://api.github.com/users/jpsarda/following{/other_user}","gists_url":"https://api.github.com/users/jpsarda/gists{/gist_id}","starred_url":"https://api.github.com/users/jpsarda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpsarda/subscriptions","organizations_url":"https://api.github.com/users/jpsarda/orgs","repos_url":"https://api.github.com/users/jpsarda/repos","events_url":"https://api.github.com/users/jpsarda/events{/privacy}","received_events_url":"https://api.github.com/users/jpsarda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-06-19T14:52:04Z","updated_at":"2019-06-19T14:52:04Z","closed_at":null,"author_association":"NONE","body":"I'm loading dynamically a .gltf file /data/user/0/com.myapp/files/circuit3408/files/mille-bornes/carte2d3d/carte-final.gltf\r\n\r\nIt works on all my devices, except one. It's a Sony Xperia Z5 compact android 7.1.1.\r\nIt's my only android 7 device, so maybe it's related.\r\n\r\nI'm using sceneform 1.8\r\n\r\n```\r\nimplementation \"com.google.ar.sceneform.ux:sceneform-ux:1.8.0\"\r\nimplementation 'com.google.ar.sceneform:assets:1.8.0'\r\n```\r\n\r\nJust before loading the .gltf, I log the file size to be sure the file is there :\r\n\r\n```\r\nFile debugFile=new File(mModelUri.getPath());\r\nLog.d(\"TMP\", \"debugFile \" + debugFile.getPath()+ \" size=\"+debugFile.length());\r\n```\r\n\r\n`2019-06-19 16:27:37.970 23482-23482/com.myapp D/FURETTMP: debugFile /data/user/0/com.myapp/files/circuit3408/files/mille-bornes/carte2d3d/carte-final.gltf size=1794`\r\n\r\nAnd I get this FileNotFoundException. Any idea ? \r\n\r\n```\r\n2019-06-19 16:27:37.983 23482-24741/com.myapp E/ModelRenderable: Unable to load Renderable registryId='BoxTextured'\r\n    java.util.concurrent.CompletionException: java.util.concurrent.CompletionException: java.io.FileNotFoundException: /data/user/0/com.myapp/files/circuit3408/files/mille-bornes/carte2d3d/carte-final.gltf\r\n        at com.google.ar.sceneform.rendering.LoadRenderableFromSfbTask.inputStreamToByteBuffer(LoadRenderableFromSfbTask.java:181)\r\n        at com.google.ar.sceneform.rendering.LoadRenderableFromSfbTask.lambda$downloadAndProcessRenderable$0(LoadRenderableFromSfbTask.java:113)\r\n        at com.google.ar.sceneform.rendering.-$$Lambda$LoadRenderableFromSfbTask$0DkaOpfpmr8DYlbaxWogZtUpKTw.get(lambda)\r\n        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1596)\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)\r\n        at java.lang.Thread.run(Thread.java:761)\r\n     Caused by: java.util.concurrent.CompletionException: java.io.FileNotFoundException: /data/user/0/com.myapp/files/circuit3408/files/mille-bornes/carte2d3d/carte-final.gltf\r\n        at com.google.ar.sceneform.assets.RenderableSource.downloadUri(Unknown Source)\r\n        at com.google.ar.sceneform.assets.RenderableSource.call(Unknown Source)\r\n        at com.google.ar.sceneform.assets.RenderableSource.call(Unknown Source)\r\n        at com.google.ar.sceneform.rendering.LoadRenderableFromSfbTask.inputStreamToByteBuffer(LoadRenderableFromSfbTask.java:178)\r\n        at com.google.ar.sceneform.rendering.LoadRenderableFromSfbTask.lambda$downloadAndProcessRenderable$0(LoadRenderableFromSfbTask.java:113) \r\n        at com.google.ar.sceneform.rendering.-$$Lambda$LoadRenderableFromSfbTask$0DkaOpfpmr8DYlbaxWogZtUpKTw.get(lambda) \r\n        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1596) \r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) \r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) \r\n        at java.lang.Thread.run(Thread.java:761) \r\n     Caused by: java.io.FileNotFoundException: /data/user/0/com.myapp/files/circuit3408/files/mille-bornes/carte2d3d/carte-final.gltf\r\n        at android.content.res.AssetManager.openAsset(Native Method)\r\n        at android.content.res.AssetManager.open(AssetManager.java:351)\r\n        at android.content.res.AssetManager.open(AssetManager.java:325)\r\n        at com.google.ar.sceneform.utilities.LoadHelper.lambda$fileUriToInputStreamCreator$1$LoadHelper(SourceFile:75)\r\n        at com.google.ar.sceneform.utilities.b.call(Unknown Source)\r\n        at com.google.ar.sceneform.assets.RenderableSource.downloadUri(Unknown Source) \r\n        at com.google.ar.sceneform.assets.RenderableSource.call(Unknown Source) \r\n        at com.google.ar.sceneform.assets.RenderableSource.call(Unknown Source) \r\n        at com.google.ar.sceneform.rendering.LoadRenderableFromSfbTask.inputStreamToByteBuffer(LoadRenderableFromSfbTask.java:178) \r\n        at com.google.ar.sceneform.rendering.LoadRenderableFromSfbTask.lambda$downloadAndProcessRenderable$0(LoadRenderableFromSfbTask.java:113) \r\n        at com.google.ar.sceneform.rendering.-$$Lambda$LoadRenderableFromSfbTask$0DkaOpfpmr8DYlbaxWogZtUpKTw.get(lambda) \r\n        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1596) \r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) \r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) \r\n        at java.lang.Thread.run(Thread.java:761) \r\n```"}}
{"actor":{"display_login":"jpsarda"}}