Connecting/Disconnecting USB Devices causes studio to crash

This one is tough to reproduce, but sometimes during game dev when unplugging/plugging in a device via USB to my computer studio crashes with a very particular error message.

I tried to get a repro, but my best guess is that it only occurs after enough time has passed in studio.

RobloxStudioBeta_IK6FPDXvec

Some more information on my setup:

  • I use a USB Hub for most my USB connections that are not directly important.
  • I have an audio interface, typically when the interface begins to bug out, unplugging and plugging it back in causes an error a good portion of the time. However this is not the only source for the problem.
  • My rig is a desktop, it has a lot of USB connections for various bits of hardware I use for game development.

Beta features and DXDiag info in private content…

Expected behavior

To be honest, I’m not entirely sure what causes the issue to begin with. What prompted me to report this issue was another user stating they had the same issue I did.

Ideally unplugging/plugging in USB devices shouldn’t crash studio. I am not 100% sure this issue is specific to just me, so I figured I’d report it.

A private message is associated with this bug report

4 Likes

I am also having issues with USBs and Roblox Studio. Studio freezes up and stop responding when a USB is plugged in, or unplugged - requiring the application to be forcibly closed.

I’ve never had this error message appear however, it just seems to hang indefinitely,

1 Like

I looked up the error code, and I guess your USB is being recognized as a potential GPU?

image

Error lookup

This is a neat thing I learned, if you get an error code, then you can try running the command:

slui 0x2a <The error code>

, in Command Prompt, and click the “See Details” button in the “Windows Activation” error message, and it’ll perform an error lookup in the massive database of error messages Windows uses to spit out error codes to applications.

This lines up with the “Device” terminology. Usually when an application wants to use your GPU, the connection it creates is called a “Device”, so it doesn’t always refer to a physical hardware device.

My guess here is that studio detects the USB as a normal drive and caches some data on it while running, and when you unplug it it loses access to those cached files and crashes?

It could be the renderer throwing an error after losing access to cached files on the USB.

to emphasize on this, it’s far easier to replicate by plugging in and unplugging different controllers.

Thanks for the report! We’ll follow up when we have an update for you.

  1. Is this a new issue or something you’ve been running into for a while?

  2. Can you try to repro this in client? Would be nice to get an idea if it’s Studio specific or a general engine issue.