Help with the "Internal buffer is too small!" error

67 views
Skip to first unread message

Jun8

unread,
May 31, 2012, 6:12:34 PM5/31/12
to openn...@googlegroups.com
Hello,

I have installed OpenNI and OpenCV (v2.4.0). Then, I compiled the kinect_maps example program using 

g++ `pkg-config opencv --cflags` kinect_maps.cpp -o kinect_maps `pkg-config opencv --libs`

and built it with no problems. When I run it though, I get the error:

Kinect opening ...
CvCapture_OpenNI::CvCapture_OpenNI : Failed to create production tree: Internal buffer is too small!
done.
Can not open a capture object.

This message is generated by cap_openni.cpp by the following:

    status = context.CreateProductionTree( deviceNode, productionNode );
    if( status != XN_STATUS_OK )
    {
        std::cerr << "CvCapture_OpenNI::CvCapture_OpenNI : Failed to create production tree: "
                  << std::string(xnGetStatusString(status)) << std::endl;
        return;
    }

I don't understand what causes the error. The openni_grabber example that comes with PCL works, so it's not the connection with the Kinect.

Thanks!

Xavier Mendez

unread,
Jun 6, 2012, 8:26:46 AM6/6/12
to openn...@googlegroups.com
Maybe you don't have enough contineous memory available
to allocate this concrete production tree.

2012/6/1 Jun8 <ctas...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "OpenNI" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openni-dev/-/UNVyBozTrJEJ.
To post to this group, send email to openn...@googlegroups.com.
To unsubscribe from this group, send email to openni-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openni-dev?hl=en.

Reply all
Reply to author
Forward
0 new messages