-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model cache bug introduced in 1.36 #5720
Comments
CC @pjcozzi Since this is breaking Composer, I took a quick look and tracked it down to The crux of the issue is that there are 2 caches, the The bug manifests when the The fix here is to not allow the caches to get out of sync and update the count on I think the best solution may be to delay any and all Either way, this should definitely get fixed ASAP. |
Thanks for researching this. It probably does require delaying things to @lilleyse can you please make this change since it has potential subtle impact? Let's try to get it into master soon. |
This code works in 1.35 but not in 1.36
As far as I can tell,
model2
gets it's glTF from cache, thencontext.cache.modelRendererResourceCache
is cleared whenmodel1
is removed, and that causesmodel2
to lose track of it's buffer and this error message shows up because eventuallymodel.gltf.buffers[id].extras._pipeline.source = buffer;
gets set to an arraybuffer of 0 length.The text was updated successfully, but these errors were encountered: