Write Marshalled stutter from deleting Model containing LocalScript

I’ve recently run into this issue that results in a massive stutter when deleting a Model containing a Script with Client RunContext inside of it. This results in a massive Write Marshalled Worker in the Micro Profiler.

This has previously been reported here, however this was closed due to a lack of repro.

I have attached a place file in private messages that recreates the issue. Dragging an apple into the sell bin and pressing sell will result in the stutter as seen below:

I have only tested this in Roblox Studio.

Expected behavior

No stutter to happen, and no Write Marshalled Worker taking up this amount of time.

A private message is associated with this bug report

2 Likes

Hello! Thank you so much for the place file. I’m afraid, though, that once again I have failed to repro on Mac or Windows.

However, I did my testing with a fresh install of version 687 of Studio, which I think is later than when that video was taken. Can you confirm that this still happens for you? Are you able to share your OS/general system spec? Also, kind of a long shot, but are there any Studio Plugins installed?

I’m still able to get this to happen with no plugins enabled. Closing all built-in widgets still results in it happening as well. I had some beta features enabled, but I went ahead and turned them all off and am still able to repro. I have no specific FFlags at the moment either.

Sorry for not giving OS info!

I’m on Windows 11 Pro 23H2, I have a 12th Gen Intel CPU, and a NVIDIA RTX 4060 GPU.
Studio Version 0.687.0.6870815 (64bit)

I’m also able to repro this issue on my travel laptop.

Fresh Installation of Studio, Version 0.687.0.6870815 (64bit)
Windows 11 IoT Enterprise LTSC 24H2
11th Gen Intel CPU, Intel Ires Xe Graphics

Those hardware stats aren’t too far off from the systems I was testing on so I don’t think it’s a simple hardware issue. I’ve experimented with a few other Studio setups and still haven’t had any luck.

If you can, could you collect a microprofiler dump that shows the stutter? Feel free to link it privately if you prefer.

1 Like

Yup! Here’s that:
microprofile-20250827-173845.html (3.7 MB)

1 Like

Thanks for the fresh microprofile post! This gave us several other avenues to investigate along the way, but unfortunately none of them led to even unreliable repros for us.

I’m closing this out as “can’t fix/can’t reproduce” but I do want to underline that your work here was very helpful. Various related aspects of these systems are actively evolving right now, and if and when we run into something like this again we’ll get to be starting a few steps ahead.

1 Like

Understandable! Thankfully I can switch away from using these LocalScripts. I appreciate the help!

Lately myself and others have been experiencing write marshalled within various clan games. With the full expectation of having the issue occur, I kept microprofiler open and got a nice log of it in game. I’ve never had this occur within studio oddly.

I was using the following fflags and was using alt enter fullscreen.

{
    "FFlagHandleAltEnterFullscreenManually":"False", 
    "FFlagStudioDrawIconsOnTopOfSelection":false, 
    "DFFlagReflectionServiceIncludeLayout": true, 
    "DFFlagNewReflectionService":true
}

microprofile-20250903-151219.html (5.6 MB)

The place it occurred at was: UCR | Liberty Factory - Roblox after about 10 minutes of playing the game.

1 Like

One of my accelerators is currently facing the same issue, with similar scenario.

This only happens within Studio.