Roblox hings when processing module with high data volumes after 666 update (Windows and macOS only)

Ok. I guide a project related to a bus simulator of Bogotá, where the game offers the player the option to choose numbers and plates of real life to your liking, for which it works with a ModuleScript that serves as a database.

What the user must do: enters the place, by means of proximityprompt activates the ui spawner of vehicles, and once he selects the car, another script will be in charge of obtaining the plates that appear for a given key with what is in that module. Creating for each result, a different frame that shows the data to the player, and can be selected to complete the spawn as such.

The thing is that, everything was going well, in spite of the fact that that module has a little more than 12.000 lines, there was never any problem. And it has been working for more than 3 months, although it is true that sometimes it could freeze for a maximum of 5 seconds while processing the information. The related scripts were not altered either, until after the update was received, when the writed in cursive process is finished, the app crashes. This has been tested in several PCs between Windows and Mac with different -and good- specifications and users and in all of them it happens, however in mobile devices nothing happens.

The logs indicate that there is a hing at line “85”, which contains no more than a for loop. It seems to involve just trying the loop, as in Studio it freezes temporarily but it does indicate that the script exhausted execution time, although it is evident that it is not able to create frames either. It also talks about a “Histogram (ReactRootPeriodTask) value not valid (nan or non-existent)”.

Expected behavior

Video of successful process on mobile (iPhone 13 - iOS 18.3.2)

https://cdn.discordapp.com/attachments/1255619800676175996/1360396737239453727/ScreenRecording_04-10-2025_16-32-56_1.mov?ex=67faf7b1&is=67f9a631&hm=11acdc521f4c4fd34b97df39009bf8240ec22ff1446c47244217dad2e1bb5302&

Video of hing on Windows 11

https://cdn.discordapp.com/attachments/1255619800676175996/1360397113921638450/Roblox_2025-04-10_17-43-56.mp4?ex=67faf80a&is=67f9a68a&hm=7b411f545430568839bc6b6e6a40b811e4c3517e1330b427fda264421da94268&

Video of hing on macOS

https://cdn.discordapp.com/attachments/1255619800676175996/1360397518713917662/Grabacion_de_pantalla_2025-04-10_a_las_5.22.16_p.m..mov?ex=67faf86b&is=67f9a6eb&hm=56bdf7d6dc1c46badc0d34130cd7eef5a593ce4c74b7af0d8979590184dc1c46&

NOTE: The game freezes but the only thing you can do is to move the cursor. If the database has relatively little data, it works correctly, however I suspect that it is a engine memory problem because I repeat, despite being so much information stored in tables with three values: plate, numbering and id of Image Asset containing the numbering, it always worked fine.

I appreciate a timely management, as this is part of a major renovation of the current game open to the public, which we have to launch this month due to contract issues, and this hurts us quite a bit. I will be willing to do whatever is required.

Without being more, I wish you a nice rest of day (:

A private message is associated with this bug report

2 Likes

Hi IJustDavi! Sounds like a weird bug… usually with memory it’s the other way around and mobile is the one that crashes. Could you grant me access to your test place so I can reproduce this easier? My username is ZombiekinGaming

1 Like

Hey! I see you’ve been trying to log in. You already have the permissions, this is a restricted place for certain users.

1 Like

Awesome, thanks. Could you also reupload the success/hang videos? Looks like discord discarded them.

1 Like

macOS testing

External Media

Windows 11 testing

External Media

iOS, expected behavior

External Media
1 Like

Wow, I see 8M+ allocations/frees in a single frame, so you are right that it’s memory related. However I think that is just a symptom of the real problem, which is too much work being done in a single frame. There appears to be lots of things being reparented, which triggers some expensive logic for localization + layout + other.

If the hang started happening with the release of a new Roblox version (v668?) then there is an issue on our side, but it will take time for the fix to be released (min 1 week, decent chance of 2+ weeks) and I understand you are on a tight schedule. Do you mind sharing the place file (.rbxl) in a private message? There probably exists a more efficient way for your game to obtain plates, which is also something we can help with.

1 Like

Oh. And that the only thing that the script does is to assign data to 4 StringValues, a single TextLabel and another single ImageLabel to a newly cloned frame, and to put it in visible mode.

The version since it happened was the 666, ending March (and yes, it came demonic HAHAHAHA), however if we would be interested in the collaboration to optimize the system, is there a possibility through Team Create, or must be strictly the local file? If not, don’t worry, I provide you the rblx

1 Like

Yes Team Create would be great.

I suspect the slow part is making the clones. It might be faster to create the clones earlier and make them invisible until they are needed. Especially if they have lots of properties or children.

Though did you find a fix already? Just now I joined and I saw no lag at all when selecting plates.

2 Likes

I sent you a friend request so I could invite you, however it is happening randomly.

I just tried it and nothing happened to me, but another guy keeps getting the same thing (with the recent version that changed the app icon).

1 Like

Very well, I granted you access to the place, however the new version of the place is not being published due to a server UploadStatusPolling max polling retry reached error, so I am not sure if you have been granted access.

And if you wish, we can continue in direct message to explain how the systems work in detail.

1 Like