Unknown bug breaking game (reoccurring bug, breaks "trains")

Summary
An old bug that was being experienced mid-late 2023 has resurfaced. This bug affects several games using the same system to simulate subway trains. The bug causes train cars to randomly disappear, breaking the train (because it obviously should not happen!). See the link below for my bug report on this bug when it first appeared:

  • This issue was first reported again yesterday (2/15/2024).
  • The original suspicion was that the bug was related to part streaming or constraints, but this is not certain.

Reproduction Steps

  • The wheels/trucks/bogies of the train are attached to the floor/base/body of the train using a HingeConstraint.
  • Operating a train in the games affected will have the bug appear randomly.

Expected Results
All train cars should exist as normal and nothing that is out of expectations should happen to them.

Actual Results
A random train car disappears.

Screenshots











https://cdn.discordapp.com/attachments/794636708946771979/1208142718094811227/Roblox_2024-02-16_15-06-38.mp4
^ Bug is not seen in this video, but it shows the results (it breaks the train)

Games Affected

6 Likes

We’ve filed a ticket into our internal database for this issue, and will come back as soon as we have updates!

Thanks for flagging!

6 Likes


Getting the same issue with my trains again.

5 Likes

Here is the bug that is happening in action in question, of which it can happen at the same time with someone else:

Additionally, the bug (while not confirmed) can be associated with lag spikes:

2 Likes

Thanks for the recording! Yes, that is exactly what happened when the bug appeared previously.

2 Likes


Any updates on this? I’ve personally experienced the same issue. The issue also seemed to occur much more often as player count increases.

1 Like

I couldn’t get any of the video links to work, says content is gone. :expressionless:

Do trains break even in the server only view when no clients are connected?

2 Likes

I would send the video file itself, but it’s too big to upload!

I am not sure what you mean by that. Do you mean server side test in Roblox Studio? I am not sure if it occurs in Roblox Studio. As mentioned by G4m1ng, player count could have an impact.

1 Like

All the trains are server owned network ownership? Is this set immediately upon game start? The reason I ask is that if you don’t do it before players arrive, they can “take” over the network ownership just by being near for some reason. :worried:

1 Like

I believe they’re set to the driver, then set back to server when they leave the vehicle seat. Regardless, this means that every time it happens, the train already has a driver (trains without drivers are deleted) and its network ownership has been set to the driver.

Do you know how much bandwidth is needed to drive the whole train? Is it over the replication limit of 50 k/bps?

I keep on forgetting that Discord file links have an internal timer built on them when I uploaded them

Screenshot 2024-04-11 at 08.17.36

I have no idea how to determine that. Sorry!

While in game, just one player, turn on performance stats in settings (doesn’t need to be studio mode either), see what the receive bandwidth is while no train is moving. Then start driving a train and see what it will max out at.

Courtesy of one of our developers:

Train at rest:
image

Train in motion (occasional spike):
image
image

But the thing is that I believe the train car disappears when the train is stopped, and/or possibly the moment after it stops. I’m not sure if it has happened in motion.

Out of everything we have seen about this bug, we have barely experienced or seen this bug whilst in motion. It’s always when the train is idle.

1 Like

I had a lot of fun testing this with a friend. I was on PC, max details, max frames, no issues running trains around with them on board. They were playing on mobile, so I had them spawn a train so I could ride with them. The first thing that happened was the train fell apart. :rofl: So, I had them spawn another one. This time it worked, so I got on board, took a seat and just watched as they drive it. They told me that had to reduce their detail settings to 1 to be about to drive. That was perfect actually, I wanted to see what happens when the client struggles to network own and drive the train. So they drove around for a little while, it was very slow, but it was working. We got above ground and told them to start maxing out detail settings to see what happens. After a few seconds the train came to a glitch stop and started to fall to pieces again and they eventual crashed their game, haha.

I think your issue is probably more to do with the clients and bandwidth limitations causing issues. While I was zooming around on my PC, I was easily hitting +68 KB/s the entire time. When I had my friend drive a train, I could tell they were struggling as the bandwidth would drop to 20 KB/s and then spike to +55 KB/s and the train would either move smoothly or stall or shot forward real fast. Good thing I was attached to the seat that time. :face_with_raised_eyebrow:

So, every-time seems to be fine when the client running the train has a fast connection and fast computer, but through in a slow device or limited bandwidth and funny things happen. Might really be beyond your control unless you switch the network ownership to the server and make the clients use drive controls instead. :thinking:

Myself driving with the entire map loaded into memory, max distance, etc.

1 Like

I think something changing on Roblox’s end is ultimately causing it as this bug originally did not happen. It first appeared, then it stopped appearing (it was somehow fixed, though likely unintentionally), but now it has returned.

If it really is dependent on client, then that sucks because it just adds on to the list of potential issues that can be caused by a client’s connection or performance. But I’m hoping that this can actually be fixed, seeing that it did not happen originally and was even fixed once.

I agree, it is Roblox, but I was about to reproduce this myself again today by ramming my train into the back of someone else and it caused my train to start to fall apart and the parts continued to float out in space and move along with me when I was driving my train. In this case, it was the doors on the side and my train was still moving until it finally flipped off the track because the doors got “caught” in something out in space. :joy:

A few questions to help with understanding this:

  • When this bug happens, does the missing part of the train look missing for everyone or just a single player? (Trying to rule out “Local Simulation vs Authoritative Simulation” desync)
  • Is there a freeze/long frame when the train car disappears?