Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

OpenNI USB thread priority warning

📅 2015-Aug-05 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ libusb, primesense, priority, thread, usb, warning ⬩ 📚 Archive


I have a Primesense camera plugged into USB port. Running any program linked with the OpenNI library throws this warning:

Warning: USB events thread - failed to set priority. This might cause loss of data


OpenNI tries to set the USB async thread priority to critical. This works on Linux only with root privileges. For a normal user, the program will throw this warning. To get rid of this warning, run the program as root.

For more details see ThirdParty/PSCommon/XnLib/Source/Linux/XnLinuxUSB.cpp in OpenNI source code here.

Tried with: Primesense RD1.09, OpenNI 2.2 and Ubuntu 14.04