Open bobekos opened 5 years ago
Workaround for this if you want to render multiple gltf files:
The RenderableSource builder has a call() method. The docu says about: Generates the binary data for an SFB from the source and conversion parameters provided to this RenderableSource via its builder, and returns an InputStream providing the raw contents of the SFB.
So just write you sfb files on a "working" background thread and then load them just normal over the RenderableBuilder.
In my case this solution works without any problems.
Describe the bug When convert multiple gltf models at runtime. This happens on every device. Sometimes all models are convert without any problems, but ins most cases the app crash with following stracktrace (when same sfb files are loading the crash never occur):
To Reproduce Load multiple gltf models at runtime (in my case about 12).
Expected behavior No crash or make sure sfb files are backward compatible
OS Android 9.x Android 8.x Android 7.x
Thanks !