Repository navigation
Conversation
…nal ran With deferred signals, CollectionService's added signal can run after the tagged instance was destroyed or removed, so the binder constructed its class on an instance with no parent and no children, then unbound it at once. On a client this happens whenever the server adds and destroys a tagged model within one replication batch, and a constructor that reads the model's children errors. Bug: attempt to index nil with 'DisplayDistanceType'
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Binder now skips an instance whose deferred added signal runs after the instance was destroyed or removed. With deferred signals, a client can receive a tagged model that the server added and destroyed within one replication batch, and the binder constructed its class on the already-destroyed instance, so a constructor that reads the model's children errored; the new spec covers it.
Checked in a Studio Play run: a server that tags a Humanoid model and destroys it two frames later made the client construct on an instance with no parent and no children six times out of six, and with this change it constructed nothing and logged no error, while models that outlive that window still bind as before.
Bug: attempt to index nil with 'DisplayDistanceType'