Overlapped I/O operation is in progress

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):

Initializing input.

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

(Filename: Line: 982)

Input initialization failed.

desktop: 1920x1080 60Hz; virtual: 1920x1080 at 0,0
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!

This is definitely coming from our code. Looks like this function is failing:

We call it with these parameters:

        RAWINPUTDEVICE rawInputDevices[] =
        {
            { 0x01, 0x02, RIDEV_INPUTSINK, window },    // mouse
        };

        if (!RegisterRawInputDevices(rawInputDevices, ARRAYSIZE(rawInputDevices), sizeof(RAWINPUTDEVICE)))
        {
            ErrorString(Format("<RI> Failed to register devices:\r\n%s", WIN_LAST_ERROR_TEXT));

Which is just registering to receive mouse input. I’m guessing some software on his machine is interfering with this - I can’t see any other reason on why that would fail… Could you ask him if he’s having issues with any other games and whether he has some kind of weird monitoring/protection program installed on his machine?

Thanks! Will do