RI.Hid Failed to Create Device File

Does anyone know what might be causing the following error <RI.Hid> Failed to create device file: 2 The system cannot find the file specified.

or perhaps how to fix Unity so this error doesn’t continue to pop up. I am finding that leaving Unity run in the background for half a day while I am working on an asset in another program will cause Unity to crash. Even if the other software I’m working on is not a 3D Application and wouldn’t be putting that much strain on unity. The only errors I seem to be getting with Unity are the one above and another related to cache expiring for a file titled 10.json

I’m not sure if this is related to the problem but figure I should mention it incase it is of some relevance.

3 Likes

+1
I am having the same issue with Unity Pro. Anyone?

me too, having the same error here with unity pro 4.3.4

I had the same issue with a Dual Shock 4 plugged in, and ds to xinput mapper running. If you disconnect the controller (or turn xinput mapping off) it goes away.

2 Likes

RI is RawInput. It’s an error being generated by Unity’s input system which is based on Raw Input. You can’t do anything to stop it except unplug the controller that is causing the issue. Logitech’s F710 wireless gamepad always gives this error when the switch is set to D mode. The controller still works sometimes even when this error shows up.

3 Likes

so, I posted in the wrong thread about a similar <RI.Hid> error, but this has been ongoing problem for me since 4.6.3f1 was released

anyone else getting spammed in Unity console with this one?

Yes, I see this periodically depending on what’s plugged in. Seems to happen more with Bluetooth devices as you connect or disconnect them when the Unity window isn’t active. I haven’t figured out what steps are involved in getting it, but it doesn’t seem to affect anything.

I have 3 USB devices and get a half-dozen spammed messages every so often… nearly every time there’s a recompile it seems.

Well, I guess file a bug report and hope they fix it. There isn’t anything you can do to fix a Unity bug like this. Do your controllers still work after the error is displayed?

I get the same error after installing Unity3D 4.6.3 and/or 4.6.3p1
This is from the editor log file…

<RI.Hid> Failed to create device file:
1 Unzulässige Funktion.

(Filename: C:/buildslave/unity/build/PlatformDependent/Win/RawInput.cpp Line: 54)

The Path of the Filename doesn’t exists on my hard drive.
There is no input device connected and the error shows up 15 times every few minutes.
Only a mouse and a LAN adaptor are connected over USB.

I’m getting the same problem it happened after a crash when I was working on the first part of a Unity Tutorial. I’m not sure whether I should get rid of the project or just start a new scene or what.

There’s no need. It’s essentially just cosmetic and doesn’t affect anything as far as I can tell. Starting a new project won’t fix it either.

while it may be cosmetic, it is really annoying when debugging and needing to get some logs…

things do seem to continue working… but, I did file a report: Case 673862

Just FYI, I get this sometimes in Unity 4.3 so it’s not a new issue. Thanks for submitting the report.

1 Like

Confirmed for 4.6.31f Pro. Still there.

Still present in 4.6.3p3 as well

Also happening for me on 4.6.31f Pro. Was not happening with the previous version. I do not have a controller plugged in.

I’m having the same problem, but i can’t disconect the input device… it’s the notebook’s touch screen that’s giving me this errors… (I’m on a HP Envy notebook)
That’s really annoying, since when I’m in play mode, the editor keeps pausing because of this error… someone have tips on how to avoid this?

you can’t… Unity needs to fix it in their code. there’s nothing we can do about it beside disconnecting all our USB devices… which is LOL.