StreamingEnabled - RemoveReplicationFocus error spam for voiding Instances? Re-production Steps included

Description

Apparently, this is similar to "RemoveReplicatedFocusPosition: Focus not found" error spam in server output however, what ever caused that wasn’t specified. And it was marked as Fixed, even though it still happens.

 

I have recently stumbled upon this issue as well, and have made re-production steps.

While I am not really sure about the cause Engine-wise, I’d have assumed that it was because a specific Part voided that had a replication focus on it.

:RemoveReplicationFocus is never used in the re-production steps. The only thing used is :AddReplicationFocus

Re-production Steps

See the Private Message for the re-production steps and a place file. There are also videos in the Private Message where I perform the re-production steps multiple times, so you can see that it actually works.

  • Upload an Empty Baseplate to Roblox
  • Because you will have to launch it on a Roblox Server

While I am not sure if this matters, the streaming mode was Opportunistic, Min: 64 and Max: 256, place file I tested it on is attached in the Private Message, it’s just an empty baseplate used for a different StreamingEnabled thing.

  • Run Script 1 about 3x times
  • Then just wait
  • If nothing happens repeat Script 1 or run Script 2
  • All of the scripts need to be executed in F9 Server-side
  • Follow the video for guidance

Summarized, I am just spawning in a Player Character with :CreateHumanoidModelFromUserId(1) and I am spawning a bunch of them. They’re positioned to fall into the void, along side with .AncestryChanged to :Destroy the rest of the Humanoid Model once it goes to nil ancestry-wise.

After that I am adding a :AddReplicationFocus on all of their PrimaryParts, if they still exist.

Expected Result

I think something is trying to remove something, and I think if it already was removed or similar, it shouldn’t bother doing that again?

Actual Result

After a bit of doing the re-production steps, you should notice the error appear in the console, and I don’t think it ever stops.

Also, while you have the console open the game will become super laggy on the client, just as a heads up.

 

What does the Engine do that this happens? :thinking:


A private message is associated with this bug report

Hello!

Thank you for your report. We have indeed reproduced this behavior. This appears to have the same fix as another devforum post (Link). This should be fixed in around 2 weeks. I will post here once the fix is enabled. Thank you for your patience.

That’s super awesome.

So, basically in short all one had to do is stack replication focus on it, and then destroy the Instance, which would trigger the spam, instead?

I believe so. The issue mainly was a part of stacking replication foci on one part. I don’t believe the various ways of removal changed how this was handled. But I do know with the fix I mentioned I am no longer getting removal spam! There is still warnings about adding multiple foci to one part, but that is intended as the script provided can and most likely will add a focus to the same part more than once

now uhh other than the avatar flickering, the other Streaming Enabled bug I know about is this one HipHeight wrong on the client, and limb size wrong because of StreamingEnabled Opportunistic and NetworkOwnership

now this one doesn’t seem to be related about Replication Focus, but I do have a re-production place file in that report (at the beginning it didn’t have one)

I was worried that internally this wouldn’t get seen anymore because it didn’t have a re-production file at the beginning (until I made one)

Hello!

The fix has been enabled, and this should no longer cause issues. Are you encountering any more difficulties with this? Once again, thank you for your patience.