Segmentation fault when running Sample-PointViewer

51 views
Skip to first unread message

Petar Palasek

unread,
Sep 14, 2011, 2:48:26 PM9/14/11
to OpenNI
Hello everyone!

I got my Kinect today and I'm trying to set everything up so I can
start having fun with it but I'm having trouble running some sample
programs which is of course a little bit demotivating.

The NiViewer sample works fine. The OpenNI/NiUserTracker also works
fine and the skeleton is correctly determined. But when I run the NITE/
Sample-PointViewer program I get a segmentation fault as soon as I
wave my hand.

The output I'm getting are always looking something like this:
http://pastebin.com/yHNAL0W7

The segmentation fault happens always after the session start.

I have looked at the source code of PointViewer and I think the
program ends at line 152 in main.ccp:

// Update NITE tree
g_pSessionManager->Update(&g_Context);

This is my first contact with openni and nite so I don't know what
exactly the problem is here.

I'm having the same problem when running the Sample-SingleControl
program. Here's a sample output when running singleControl:
http://pastebin.com/758DB8vY

Does someone have an idea how to fix this?

I'm running ubuntu 10.04, and the steps I used to set up everything
are:

-installed the unstable version of OpenNI (OpenNI-Bin-Linux64-
v1.3.2.3)
-installed Sensor (Sensor-Bin-Linux64-v5.0.3.4)
-installed unstable NITE (NITE-Bin-Linux64-v1.4.0.5)
-installed Sensor by running:
$ git clone https://github.com/avin2/SensorKinect
$ cd SensorKinect/Platform/Linux-x86/CreateRedist/
$ sudo ./RedistMaker
$ cd ../Redist
$ sudo ./install.sh
$ cd ..

(I was following these instructions:
http://openni-discussions.979934.n3.nabble.com/OpenNI-dev-Starting-with-OpenNI-tp3302752p3304098.html
)

I would appreciate any help!

Thank you,

Petar

Petar Palasek

unread,
Sep 16, 2011, 8:21:26 AM9/16/11
to OpenNI
Fixed by upgrading to Ubuntu 10.10 and following these instructions:
http://blog.lagentz.com/python/using-the-kinect-for-public-user-interfaces-on-ubuntu-linux/

Petar
> $ git clonehttps://github.com/avin2/SensorKinect
> $ cd SensorKinect/Platform/Linux-x86/CreateRedist/
> $ sudo ./RedistMaker
> $ cd ../Redist
> $ sudo ./install.sh
> $ cd ..
>
> (I was following these instructions:http://openni-discussions.979934.n3.nabble.com/OpenNI-dev-Starting-wi...
Reply all
Reply to author
Forward
0 new messages