Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

RI.Hid Failed to Create Device File

Discussion in 'Editor & General Support' started by Jax_Cavalera, Sep 30, 2013.

  1. emsiu

    emsiu

    Joined:
    Oct 2, 2016
    Posts:
    1
    I tried replugging in the controller and relaunching Unity, but the error persisted.

    I ended up restarting my computer and the error went away.
     
  2. buscommando

    buscommando

    Joined:
    Oct 24, 2012
    Posts:
    6
    In 2017.1, 2017.2, 2017.3, and 2018. No amount of rebooting prevents this error from occuring, and recurring. I've tried removing my bluetooth adapter but it had no effect. Only other USB peripheral besides keyboard and mouse is the Dell Visor HMD, but I kind of need that to develop Windows Mixed Reality. Recurring

    "RI.Hid Failed to Create..."

    I do not know if the behavior is related but with all 2017 and 2018 versions my editor freezes completely for a half second in half second intervals, indefinitely. The editor is unusable. 5.x and 4.x versions work fine but AFAIK don't support Windows Mixed Reality development.

    Thank you
     
  3. artician

    artician

    Joined:
    Nov 27, 2009
    Posts:
    345
    I'm currently experiencing this error in Unity 2017.4.1f1.
    I'm building on a brand-new, out of the box Dell system with Win10x64.
    Building to UWP.
    Fresh install of Unity.
    Fresh install of UWP SDK, vcc, etc.
    The monitor I'm using is an Acer touchscreen, model UT220HQL.
    Otherwise there are *no devices attached*

    EDIT: Turns out this was due to Win10 putting the machine to sleep before the build was finished.
     
    Last edited: Apr 27, 2018
  4. unity_300510

    unity_300510

    Joined:
    May 8, 2018
    Posts:
    1
    I'm getting a similar error, but it says this:
    <RI.Hid> Failed to create device file:
    20 The process cannot access the file because it is being used by another process.
     
  5. Gaspedal

    Gaspedal

    Joined:
    Mar 29, 2009
    Posts:
    376
    I get still the same error "<RI.Hid> Failed to create device file:" after loading my scene file with the latest Unity version.
     
  6. e6586808

    e6586808

    Joined:
    Jun 3, 2015
    Posts:
    4
    I get this:
    <RI.Hid> Failed to create device file: 2 The system could not find the specified file.
    When Joystick disconnected ("Controller (Xbox One For Windows)").
     
  7. e6586808

    e6586808

    Joined:
    Jun 3, 2015
    Posts:
    4
    In Unity 5.6.6f2 (64-bit)
     
  8. Pnvanol

    Pnvanol

    Joined:
    Jan 11, 2016
    Posts:
    125
    getting the same error in 2018.3
     
  9. Robdon

    Robdon

    Joined:
    Jan 10, 2014
    Posts:
    141
    Just started getting this also in 2018.3.0f2 Win, if you remove a USB Wacom tablet it throws this error.
     
  10. jwvanderbeck

    jwvanderbeck

    Joined:
    Dec 4, 2014
    Posts:
    825
    Honestly I've just accepted this as a benign (but annoying) error that Unity will never fix.
     
  11. MattT5

    MattT5

    Joined:
    Dec 7, 2017
    Posts:
    54
    I have it in 2018.3.7f1. Like an old friend you have not seen for years...
     
    a436t4ataf, Yaromil and nx-sm like this.
  12. Democide

    Democide

    Joined:
    Jan 29, 2013
    Posts:
    315
    2018.4 makes it pop up too.
     
  13. taynaTinoco

    taynaTinoco

    Joined:
    Jul 31, 2018
    Posts:
    6
    Hey there, its 2019 and I'm receiving this error too before the app crash. On my log file the last thing before the crash is :

    Code (CSharp):
    1. <RI.Hid> Failed to create device file:
    2. 20 The process cannot access the file because it is being used by another process.
    The app is very simple, 2d games running on a windows 10 pc. But in my case, I'm using input touch from a touch screen
     
  14. Romano

    Romano

    Joined:
    Nov 27, 2013
    Posts:
    76
    2020 :eek:
     
    Twyker_gp, stickylab and mr-gmg like this.
  15. stickylab

    stickylab

    Joined:
    Mar 16, 2016
    Posts:
    92


    i can not contorll my pentab in unity editor when that error happen ,please help

    <RI.Hid> Failed to create device file:
    20 The process cannot access the file because it is being used by another process.
     
  16. Twyker_gp

    Twyker_gp

    Joined:
    Dec 4, 2018
    Posts:
    29
    2020.1 release version as well
     
  17. Roman_Keivan

    Roman_Keivan

    Joined:
    May 31, 2019
    Posts:
    22
    Thanks a lot buddy, I'm solved the error for me, unfortunately I forgot to turn off the driver of Scarlet SCP task monitor, but my controller is was not connected, and unity always call to Input function I think...
     

    Attached Files:

  18. GoldenretriverYT

    GoldenretriverYT

    Joined:
    May 8, 2019
    Posts:
    14
    2020 and the bug is still not fixed
     
    cmdexecutor likes this.
  19. charlesbrant

    charlesbrant

    Joined:
    Jul 17, 2020
    Posts:
    7
    i have this error poping up few times per 24h even when idle
     
    ninetellstudio likes this.
  20. Frieza

    Frieza

    Joined:
    Aug 29, 2008
    Posts:
    68
    I've had players report this bug in a live shipped build and their controllers are NOT functioning. Built with Unity 2019.3.13f1 (64-bit)
     
    glitchers likes this.
  21. Student01223106

    Student01223106

    Joined:
    Dec 15, 2020
    Posts:
    1
    I encountered the error
    Unity 2020.1.17f1
     
  22. DragonTein

    DragonTein

    Joined:
    Jul 1, 2018
    Posts:
    15
    same in 2020.2.6
     
  23. JustTesting

    JustTesting

    Joined:
    Aug 11, 2019
    Posts:
    1
    Same, the error older than time itself - is on my screen.
    I'm gonna just assume that it will never be fixed or we'll never know what exactly causes it.
     
    sp-LeventeLajtai likes this.
  24. ZSX01

    ZSX01

    Joined:
    May 31, 2018
    Posts:
    8
    Thats help me:
    Disconnect gamepad
    Delete all Unity folders in "Registry Editor" (Start>Run>Regedit)
    Logout or restart
     
  25. Avrex

    Avrex

    Joined:
    Jan 8, 2021
    Posts:
    3
    I'm I have two projects open with 2020.3.3f1. I also have a Visual Studio 2019 Preview window, with two files called board and piece open. I only have one instance of them open, but both the open projects have scripts with the same name - is that what's causing the error?
     
  26. Erfo77

    Erfo77

    Joined:
    Nov 3, 2020
    Posts:
    1
    It's nice to see this error has remained unaddressed by the devs since 2013...
    Anyway, I'm also getting this error even though I'm experiencing no issues.

    The only thing connected to my computer (bluetooth or usb) is a usb logitech mouse....
     
  27. catafest

    catafest

    Joined:
    May 3, 2014
    Posts:
    78
    I have the same problem with an old Huion tablet! The driver is old. If I install another driver then the tablet does not work well. Yes, Unity needs to fix this or Windows O.S. I used the 2020.3.141f version.
     
  28. CGDever

    CGDever

    Joined:
    Dec 17, 2014
    Posts:
    156
    9 years after the first mention.
    Unity 2021.2.15f1, unity guys, I have the same problem
     
  29. huh12

    huh12

    Joined:
    Mar 19, 2022
    Posts:
    3
    I am not even using a controller. I am just using a mouse and keyboard
     
  30. RasmusMolckNilsson

    RasmusMolckNilsson

    Joined:
    May 14, 2021
    Posts:
    6
    logitech mouse. Unity 2021.1.21f1
     
  31. Extrastout

    Extrastout

    Joined:
    Apr 13, 2022
    Posts:
    1
    I would be interested to hear how many of these issues are with Tablet Users (e.g. Wacom)? I am seeing it as well. in 2021.3.0f1. I have not identified the trigger, but it eventually happens in every session.
     
  32. koularmusic

    koularmusic

    Joined:
    May 5, 2022
    Posts:
    1
    It was happening with me as well , i had a laptop cooler plugged in , removing it fixed the issue for me.
    So in my opinion try removing some USB devices and check which one is causing the issue.
     
  33. ImpossibleRobert

    ImpossibleRobert

    Joined:
    Oct 10, 2013
    Posts:
    543
    I also get this regularly, in 2021.1.28 :-(
     
  34. Khash-Firestorm

    Khash-Firestorm

    Joined:
    Jun 30, 2013
    Posts:
    87
    I handle this issue for years now, and just searched to see if there is cleaner way to handle this. Seeing people struggling with the issue I will recommend to write your own system handling logs using:

    Application.logMessageReceivedThreaded += MethodToHandleLog;

    I show message to the players when they receive error only if the error passes my internal filters and allow players to send log file that is custom build to ensure important data is included.
     
  35. codexin

    codexin

    Joined:
    Apr 4, 2018
    Posts:
    4
    I have the same error, and I think is because I use a wacom tablet connected

    <RI.Hid> Failed to create device file:
    20 The process cannot access the file because it is being used by another process.
     
  36. KaveeM2007

    KaveeM2007

    Joined:
    Jan 18, 2022
    Posts:
    21
    I think this happens when some kind of a input device is plugged in. In my case, it was a drawing-pad.
     
  37. ImpossibleRobert

    ImpossibleRobert

    Joined:
    Oct 10, 2013
    Posts:
    543
    For me it is definitely like that. I do have a bluetooth keyboard and mouse and everytime the connection is flaky or shortly interrupted Unity shows the error above.
     
    Kst001 likes this.
  38. xCyborg

    xCyborg

    Joined:
    Oct 4, 2010
    Posts:
    633
    I still get this error on v 2022.1
    I use a touch enabled laptop.
     
  39. JaniVR

    JaniVR

    Joined:
    Sep 8, 2018
    Posts:
    5
    For me this stopped when I unplugged the usb from wacom cintiq pro16 which I use as secondary monitor
     
  40. hippogames

    hippogames

    Joined:
    Feb 5, 2015
    Posts:
    237
    Happens in 2021.3.16
     
  41. marcrem

    marcrem

    Joined:
    Oct 13, 2016
    Posts:
    340
    2021 too ayyyyy
     
  42. AuriMoogle

    AuriMoogle

    Joined:
    Jun 4, 2018
    Posts:
    15
    And in 2022.2.3f1
     
  43. EliotPotts

    EliotPotts

    Joined:
    Apr 8, 2023
    Posts:
    4
    BTW, if you have this error without a controller plugged in, check you have no other things plugged in, ie in my case an ssd which it could not recognise
     
  44. abdullahNA

    abdullahNA

    Joined:
    Mar 13, 2022
    Posts:
    4
    I am using unity version 2021.3.12. In my case I just restart the unity editor and problem solved
     
  45. marcrem

    marcrem

    Joined:
    Oct 13, 2016
    Posts:
    340
    Wait until this happens in your builds and you cannot "restart the editor" :p
     
  46. rogodoy

    rogodoy

    Joined:
    Jan 24, 2013
    Posts:
    21
    I instaled the new input system and the errors gone. Maybe you are using old input system and get the errors if you are using mobile
     
  47. xCyborg

    xCyborg

    Joined:
    Oct 4, 2010
    Posts:
    633
    Did you use a touch enabled computer by any chance?
     
  48. Hexalted

    Hexalted

    Joined:
    Nov 16, 2017
    Posts:
    23
  49. xCyborg

    xCyborg

    Joined:
    Oct 4, 2010
    Posts:
    633