Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Overlapped I/O operation is in progress

Discussion in 'Editor & General Support' started by Lortimus14, Jun 15, 2017.

  1. Lortimus14

    Lortimus14

    Joined:
    Jan 12, 2017
    Posts:
    7
    Hi,
    I'm a game dev and have a user getting the following in his logs, which is leading to no input working (keyboard or joystick):

    <RI> Initializing input.

    <RI> Failed to register devices:
    Overlapped I/O operation is in progress.


    (Filename: Line: 982)

    <RI> Input initialization failed.

    desktop: 1920x1080 60Hz; virtual: 1920x1080 at 0,0
    <RI> Initialized touch support.

    Any thoughts on how to troubleshoot this? I've searched all over and don't see a standard solution for this, and "Overlapped I/O operation is in progress." seems like a generic Windows error.

    He's on Windows 7, I'm using Unity 5.6.1.f1 and using Rewired for input management, although those calls come after the lines I pasted. I've made sure everything is disabled in device manager except keyboard and still we get this error.

    Thanks!
     
  2. guavaman

    guavaman

    Joined:
    Nov 20, 2009
    Posts:
    5,508
    I did a Google search on "<RI> Input initialization failed" and found this page which is for a game that uses Unity and the source of the problem turned out to be Comodo Firewall:
    http://steamcommunity.com/app/305620/discussions/0/613937306578182069/?l=polish
     
  3. Lortimus14

    Lortimus14

    Joined:
    Jan 12, 2017
    Posts:
    7
    Thanks for looking, but unfortunately it failed for them for a different reason:

    <RI> Failed to register devices:

    The operation completed successfully.
     
  4. guavaman

    guavaman

    Joined:
    Nov 20, 2009
    Posts:
    5,508
    I know it's not the exact same error message, but the resulting failure of the entire input system is the same.

    The error Unity is returning is Windows error code 997:
    https://msdn.microsoft.com/en-us/library/windows/desktop/ms681388(v=vs.85).aspx

    And is probably set as the last error message by ReadFile. It means that an asynchronous read operation hasn't finished yet and is not considered an error. It would probably be best to repost this question in the Windows forum. The Unity devs there are pretty quick to respond.
     
  5. Lortimus14

    Lortimus14

    Joined:
    Jan 12, 2017
    Posts:
    7
    Thanks! Will do