diablodale / dp.kinect

Kinect v1 (XBox 360) plugin for Cycling74 Max
17 stars 3 forks source link

Kinect driver error - incompatible with Windows 10 memory integrity #54

Closed diablodale closed 3 years ago

diablodale commented 3 years ago

Problem Description

You use Windows 10 and encounter these problems

Cause

The official Microsoft device drivers for Kinect for Windows are incompatible with Windows 10 memory integrity feature. More info from Microsoft

This is not a bug in dp.kinect and there is no code fix possible. It is an issue with Microsoft's drivers.

Workaround

Microsoft does not intend to update the drivers. Therefore, if you want to use your Kinect, you will need to disable Windows memory integrity. This is a choice you must make yourself and you assume responsbility for your choice.

  1. Press the Windows key
  2. Search for memory integrity
  3. Turn the feature off
  4. Reboot
diablodale commented 2 years ago

Four Needed Devices

After you plug your Kinect for Windows (1st generation) into your computer, Windows 10 should show four devices in Device Manager. The XBox 360 Kinect is not the same hardware. It may behave differently or have slightly different device names https://github.com/diablodale/dp.kinect/issues/37#issuecomment-264890253

If you do not see all four devices, then there is some incompatibility with your computer, Windows, and the Kinect hardware. These four devices are red circled in the picture below.

devmgr

Uninstalling

If you later want to uninstall the Kinect drivers and enable Windows memory integrity, you may encounter another Microsoft bug. Microsoft's uninstaller for their Kinect drivers does not fully remove the drivers. Therefore, when you attempt to enable memory integrity, you may get an error "Incompatible drivers" and it lists kinectcamera.sys.

The following is a procedure you can attempt. I provide no warranty and this is at your own risk. This is a choice you must make yourself and you assume responsbility for your choice.

  1. Disconnect your Kinect from your computer.
  2. Use the standard Windows settings tools to uninstall all Kinect v1.8 tools and drivers.
  3. Run Device Manager
  4. Choose menu view/show hidden devices
  5. Right click on each of the four devices in the picture above , choose "Uninstall device", and when possible click the checkbox to delete the drivers.
  6. Reboot your computer
  7. Repeat steps 3-6 until these four devices do not appear.
  8. Run a command prompt that is elevated to administrator (Run as Administrator)
  9. cd c:\windows\system32\drivers
  10. Verify kinectcamera.sys is in that directory.
  11. del kinectcamera.sys
  12. Reboot your computer
  13. Enable Windows memory integrity