Noticeably Slower Studio & FFlag calls in CoreScript's causes exhausted allowed execution time error

Playing a game in-studio will cause scripts within CoreScripts(getCamMicPermissions, SettingsHub, FacialAnimationStreaming, etc) to timeout

  • The issue started appearing around a few hours ago.
  • The issue only happens in the Studio and not in the main game.
  • The issue happens with all beta flags disabled.
  • Studio is noticeably slower than before

What I have tried to troubleshoot the issue:

  • Reinstalled Studio several times,
  • Cleared the Roblox folder at AppData
  • Testd it with different account and different games
  • Made sure that no other programs are interfering with Roblox Studio.

All of the tracebacks for the CoreScript’s timeout are calling FFlags in some way, for example:

  • FacialAnimationStreaming is stuck at line 297, which is trying to get an FFlag state: game:GetFastFlag("FacialAnimationStreamingCheckPauseStateWhenCreatingTrack") (Note: running the exact GetFastFlag code in the command bar after timeout work fines)

Studio’s playtest log:

  19:39:26.067  CorePackages.Packages._Index.Promise340.Promise340:302: Script timeout: exhausted allowed execution time  -  Client - Promise340:175
  19:39:26.067  Stack Begin  -  Studio
  19:39:26.068  Script 'CorePackages.Packages._Index.Promise340.Promise340', Line 175 - function runExecutor  -  Studio - Promise340:175
  19:39:26.068  Script 'CorePackages.Packages._Index.Promise340.Promise340', Line 302  -  Studio - Promise340:302
  19:39:26.068  Stack End  -  Studio
  19:39:26.068  CorePackages.Packages._Index.Promise340.Promise340:1228: Script timeout: exhausted allowed execution time  -  Client - Promise340:311
  19:39:26.068  Stack Begin  -  Studio
  19:39:26.068  Script 'CorePackages.Packages._Index.Promise340.Promise340', Line 311 - function _new  -  Studio - Promise340:311
  19:39:26.068  Script 'CorePackages.Packages._Index.Promise340.Promise340', Line 1228 - function _andThen  -  Studio - Promise340:1228
  19:39:26.068  Script 'CorePackages.Packages._Index.Promise340.Promise340', Line 1289 - function andThen  -  Studio - Promise340:1289
  19:39:26.068  Script 'CoreGui.RobloxGui.Modules.Settings.getCamMicPermissions', Line 352 - function getCamMicPermissions  -  CoreScript - getCamMicPermissions:352
  19:39:26.069  Script 'CoreGui.RobloxGui.Modules.Settings.Pages.GameSettings', Line 3173 - function Initialize  -  CoreScript - GameSettings:3173
  19:39:26.069  Script 'CoreGui.RobloxGui.Modules.Settings.Pages.GameSettings', Line 3475  -  CoreScript - GameSettings:3475
  19:39:26.069  Stack End  -  Studio
  19:39:26.069  Requested module experienced an error while loading  -  Client - SettingsHub:3316
  19:39:26.069  Stack Begin  -  Studio
  19:39:26.069  Script 'CoreGui.RobloxGui.Modules.Settings.SettingsHub', Line 3316 - function CreateSettingsHub  -  CoreScript - SettingsHub:3316
  19:39:26.069  Script 'CoreGui.RobloxGui.Modules.Settings.SettingsHub', Line 3555  -  CoreScript - SettingsHub:3555
  19:39:26.069  Stack End  -  Studio
  19:39:26.069  Requested module experienced an error while loading  -  Client - CoreScripts/InviteToGamePrompt:12
  19:39:26.070  Stack Begin  -  Studio
  19:39:26.070  Script 'CoreGui.RobloxGui.CoreScripts/InviteToGamePrompt', Line 12  -  CoreScript - CoreScripts/InviteToGamePrompt:12
  19:39:26.070  Stack End  -  Studio
  19:39:26.089  Error: Requested module experienced an error while loading  -  Client - makeConsoleImpl:79
  19:39:26.089  CorePackages.Packages._Index.Scheduler.Scheduler.forks.SchedulerHostConfig.default:117: 
------ Error caught by React ------
Requested module experienced an error while loading
------ Error caught by React ------
CoreGui.RobloxGui.Modules.TopBar.Components.Connection.MenuConnector:72 function render
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberBeginWork.new:1155 function finishClassComponent
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberBeginWork.new:1066 function updateClassComponent
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberBeginWork.new:3519 function beginWork
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:245
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:1946
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:1834
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:1783
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:1129
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:827
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.SchedulerWithReactIntegration.new:236
CorePackages.Packages._Index.Scheduler.Scheduler.Scheduler:359 function unstable_runWithPriority
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.SchedulerWithReactIntegration.new:164 function runWithPriority
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.SchedulerWithReactIntegration.new:226
CorePackages.Packages._Index.Scheduler.Scheduler.Scheduler:304
CorePackages.Packages._Index.Scheduler.Scheduler.Scheduler:260
CorePackages.Packages._Index.Scheduler.Scheduler.forks.SchedulerHostConfig.default:81 function doWork
CorePackages.Packages._Index.Scheduler.Scheduler.forks.SchedulerHostConfig.default:104 function performWorkUntilDeadline
  -  Client - SchedulerHostConfig.default:117
  19:39:26.089  Stack Begin  -  Studio
  19:39:26.090  Script 'CorePackages.Packages._Index.Scheduler.Scheduler.forks.SchedulerHostConfig.default', Line 117 - function performWorkUntilDeadline  -  Studio - SchedulerHostConfig.default:117
  19:39:26.090  Stack End  -  Studio
  19:39:37.580  Script Context.CoreScripts/FacialAnimationStreaming:312: Script timeout: exhausted allowed execution time  -  Client - CoreScripts/FacialAnimationStreaming:297
  19:39:37.580  Stack Begin  -  Studio
  19:39:37.580  Script 'Script Context.CoreScripts/FacialAnimationStreaming', Line 297  -  Studio - CoreScripts/FacialAnimationStreaming:297
  19:39:37.580  Script 'Script Context.CoreScripts/FacialAnimationStreaming', Line 312 - function onAnimatorAdded  -  Studio - CoreScripts/FacialAnimationStreaming:312
  19:39:37.581  Script 'Script Context.CoreScripts/FacialAnimationStreaming', Line 450 - function onCharacterAdded  -  Studio - CoreScripts/FacialAnimationStreaming:450
  19:39:37.581  Script 'Script Context.CoreScripts/FacialAnimationStreaming', Line 487  -  Studio - CoreScripts/FacialAnimationStreaming:487
  19:39:37.581  Stack End  -  Studio

Studio Log: 0.622.0.6220470_20240501T113701Z_Studio_5A564_last.log (489.6 KB)

4 Likes

Sorry for bumping this, but this is preventing me from doing any works within Studio due to the long load time caused by the error

Hello, thanks for reporting the issue and sorry about the inconvenience.

We have started looking into it and will let you know once we have an update on it.

What makes this issue one of the trickier ones to narrow down is that so far we have been unable to reproduce it while trying to repro on several machines.

(So it looks like it is maybe affected by software/hardware setup combo or some other config difference coming into play which affects it)

Could you (and anyone who has the same issue reading this) post your OS version, hardware setup and Roblox Studio version you have the issue with?

(you can do so via DM if you’d like to not share in public).

Hi! I have managed to solve this issue with a full reboot (shift + reboot), a normal reboot (fast startup I think?) doesn’t fix the issue. I’m still not quite sure what’s the cause of the issue though.

What makes this issue one of the trickier ones to narrow down is that so far we have been unable to reproduce it while trying to repro on several machines.

Yeah, that’s totally understandable, since a full reboot fixes the issue my 2-cent is that it’s something with the low level stuff (that manages to persist across the fast reboot and clean reinstall)

I’ll update this post if I ever manage to stumble across this.

Could you (and anyone who has the same issue reading this) post your OS version, hardware setup and Roblox Studio version you have the issue with?

Studio Version: 0.623.0.6230555

OS Name Microsoft Windows 11 Home
Version 10.0.22631 Build 22631
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name USER-PC
System Manufacturer Micro-Star International Co., Ltd
System Model MS-7B86
System Type x64-based PC
System SKU To be filled by O.E.M.
Processor AMD Ryzen 7 5800X3D 8-Core Processor, 3401 Mhz, 8 Core(s), 16 Logical Processor(s)
BIOS Version/Date American Megatrends International, LLC. H.G0, 7/26/2022
SMBIOS Version 2.8
Embedded Controller Version 255.255
BIOS Mode UEFI
BaseBoard Manufacturer Micro-Star International Co., Ltd
BaseBoard Product B450 GAMING PLUS MAX (MS-7B86)
BaseBoard Version 3.0
Platform Role Desktop
Secure Boot State On
PCR7 Configuration Elevation Required to View
Windows Directory C:\Windows
System Directory C:\Windows\system32
Boot Device \Device\HarddiskVolume2
Locale Hong Kong SAR
Hardware Abstraction Layer Version = 10.0.22621.2506
User Name USER-PC\user
Time Zone China Standard Time
Installed Physical Memory (RAM) 64.0 GB
Total Physical Memory 63.9 GB
Available Physical Memory 45.8 GB
Total Virtual Memory 78.4 GB
Available Virtual Memory 56.9 GB
Page File Space 14.5 GB
Page File C:\pagefile.sys
Kernel DMA Protection Off
Virtualization-based security Running
Virtualization-based security Required Security Properties
Virtualization-based security Available Security Properties Base Virtualization Support, Secure Boot, DMA Protection, UEFI Code Readonly, SMM Security Mitigations 1.0, Mode Based Execution Control
Virtualization-based security Services Configured
Virtualization-based security Services Running
Windows Defender Application Control policy Enforced
Windows Defender Application Control user mode policy Off
Device Encryption Support Elevation Required to View
A hypervisor has been detected. Features required for Hyper-V will not be displayed.

Again, appreciate the efforts on your end, please keep us updated!

Nope, after restarting studio it’s happening again

Hello, thanks for the updates and details. Our initial guess right now is that maybe something causes excessive resource usage/ takes very long on another end which then culminated in these scripts timing out.

When this happens for you again, can you open task manager (ctrl+alt+del) and check cpu, memory, disk and network tabs to see if anything sticks out there as using a lot of ressources? (sort on highest usage by clicking the tab header in each and also post images of those if possible).

Alternatively from resource usage, it could potentially also be a driver issue, in that case if you have a usb camera connected it can sometimes help to unplug it and plug it back in and also update camera and network (card) drivers.

Also please let us know your network setup and camera setup (make, model) in case that could be the culprit.

All resources’ consumption are under 50% at all time.

I think I have figured out the app that’s causing the issue. As soon as I terminate the “Microsoft Cross Device Service” (unlikely to be a virus, the executable is signed by Microsoft), everything in Studio just start running fine again. I’ve tested it twice and can confirm that it’s the cause.

I have managed to solve this issue with a full reboot (shift + reboot), a normal reboot (fast startup I think?) doesn’t fix the issue. I’m still not quite sure what’s the cause of the issue though.

It’s likely that the service didn’t start quickly enough during my attempt with the full reboot, instead of a full reboot being the thing that fixes it. Sorry for the confusion!

Taskmgr_O9wy1yd09u

1 Like

Thanks for looking further into it and i’m glad you figured out the culprit.
That’s a curious one, we’ll look into why that service would cause such an impact in Studio.

If you have a camera connected, please still let us know the camera setup (make, model), in case it only happens with certain devices in conjunction with that service.

1 Like

I have around 20 virtual camera devices (NDI Webcam, DroidCam and Unity Video Capture) and 0 physical camera lol

ah, that’s interesting. Could you open device manager and there under Cameras right click each of those virtual cameras and choose Disable and then try to reproduce the issue again?
Just to see whether that plays a role, too.

Virtual cameras doesn’t seem to show up in the device manager, so I don’t think I could disable them.

The cameras never caused any issues before for Studio (created these virtual cameras around 2 months ago), and the bug only appears around 2 days ago, so doubt it’s the cause

FYI a new “Pixel 8” virtual camera just appeared, but I don’t think I could disable it

Update: I managed to remove the “Pixel 8” virtual camera by resetting the Phone Link app, but I don’t think anything changed.

I see, some virtual cameras show up inside the “Cameras” item in device manager, so i was hoping yours would be such.
And ok, i see, Thanks for the details, we’ll also dig further on our end to try to narrow it down more.

2 Likes