Closed diablodale closed 11 years ago
This is a known issue in OpenNI. However, OpenNI has abandoned the v1.x API set where this bug in their code exists. Therefore,, this issue will never be directly fixed by OpenNI.
The workaround is simple. Do not declare a SCENE generator in the XML file. The bug will automatically create one for you.when you declare a USER node.
I am seeing that OpenNI or NITE is creating a Scene Generator even though I do not request one. This behavior started sometime between OpenNI 1.3.2.3 / NITE 1.4.1.2 ---> OpenNI 1.5.2.23 / NITE 1.5.2.21 on the Win32 platform
The errant behavior can be seen by creating an XML config file with the following nodes: IMAGE, DEPTH, USER Then xnContextRunXmlScriptFromFileEx() on the file
When you iterate through the running nodes, you will find a XN_NODE_TYPE_SCENE
Additionally, if you wanted a Scene generator and put a SCENE node in the XML files, then the xnContextRunXmlScriptFromFileEx() will fail with the error: This operation is invalid!
and, of course, nothing will work.
The only known workaround is to just deal with fact that you will always have a Scene Generator and to not declare one in the XML file.