Messy Documentation of Kinect Failure

After last weeks’s consultation, the fail of skeleton tracking can be conclude as either Processing or SimpleOpenNI library has a bug which make both can’t work together. And then I received an older version of SimpleOpenNI from Anna. I run it in processing 1.5.1, but it still doesn’t work, and so I google for help. Previously, I thought there just the skeleton tracking doesn’t work and it results in that I only search for the solution for skeleton tracking which not much answers showed up. Therefore, I searched with a few related keywords and finally found a blog  which describe a similar situation as mine and have some solution with it.

Here is the link: http://decyborg.wordpress.com/2013/01/19/kinect-on-os-x-10-8-and-processing/

Although I followed the steps carefully, the results still disappointed me.

What I did so far were:

  •  I Upgrade my operation system from OS X 10.6 to OS X10.8.5. It was because the latest Xcode can only work with OSX 10.7 or later version.
  • downloaded Xcode, MacPorts, XQuartz 2.72, and CMake
  • Followed all the installation steps which posted by CY-View

The only progress I made was Processing no longer showing “Cannot find anything named ‘SimpleOpenNI.SKEL.PROFILE_ALL”.

I found there are different error message show up depends on what version of the SimpleOpenNI library i’m using. So I downloaded SimpleOpenNi from version 1.96 to 0.20, tried to find which library will work, and I wrote each of the error messages.

OS X

Version 10.8.5

Processing 1.5.1

==============================================================================================

Display 0 does not exist, using the default display instead.

SimpleOpenNI Version 1.96

Invalid memory access of location 0x0 eip=0x504551ec

=============================================================================================

SimpleOpenNI auto update 27/08/13

Display 0 does not exist, using the default display instead.

Can’t load SimpleOpenNI library (libSimpleOpenNI.jnilib) : java.lang.UnsatisfiedLinkError: /Users/yingxiao/Documents/Processing/libraries/SimpleOpenNI/library/libSimpleOpenNI.jnilib:  Library not loaded: @loader_path/osx/libboost_thread-mt.dylib   Referenced from: /Users/yingxiao/Documents/Processing/libraries/SimpleOpenNI/library/libSimpleOpenNI.jnilib   Reason: image not found

Verify if you installed SimpleOpenNI correctly.

http://code.google.com/p/simple-openni/wiki/Installation

Exception in thread “Animation Thread” java.lang.UnsatisfiedLinkError: SimpleOpenNI.SimpleOpenNIJNI.swig_module_init()V

at SimpleOpenNI.SimpleOpenNIJNI.swig_module_init(Native Method)

at SimpleOpenNI.SimpleOpenNIJNI.<clinit>(SimpleOpenNIJNI.java:290)

at SimpleOpenNI.ContextWrapper.<init>(ContextWrapper.java:54)

at SimpleOpenNI.SimpleOpenNI.<init>(SimpleOpenNI.java:244)

at User.setup(User.java:50)

at processing.core.PApplet.handleDraw(PApplet.java:1608)

at processing.core.PApplet.run(PApplet.java:1530)

at java.lang.Thread.run(Thread.java:680)

java.lang.NullPointerException

at processing.app.Library.getClassPath(Library.java:298)

at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:390)

at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:197)

at processing.mode.java.JavaBuild.build(JavaBuild.java:156)

at processing.mode.java.JavaBuild.build(JavaBuild.java:135)

at processing.mode.java.JavaMode.handleRun(JavaMode.java:176)

at processing.mode.java.JavaEditor$20.run(JavaEditor.java:481)

at java.lang.Thread.run(Thread.java:680)

=============================================================================================

Display 0 does not exist, using the default display instead.

SimpleOpenNI Version 0.27

Can’t open the depthMap, maybe the camera is not connected!

Display 0 does not exist, using the default display instead.

SimpleOpenNI Version 0.27

Exception in thread “Animation Thread” java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0

at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)

at java.awt.image.BufferedImage.<init>(BufferedImage.java:326)

at processing.core.PGraphicsJava2D.allocate(PGraphicsJava2D.java:132)

at processing.core.PGraphicsJava2D.setSize(PGraphicsJava2D.java:118)

at processing.core.PApplet.resizeRenderer(PApplet.java:1060)

at processing.core.PApplet.size(PApplet.java:1140)

at processing.core.PApplet.size(PApplet.java:1098)

at kinect_test.setup(kinect_test.java:30)

at processing.core.PApplet.handleDraw(PApplet.java:1608)

at processing.core.PApplet.run(PApplet.java:1530)

at java.lang.Thread.run(Thread.java:680)

================================================================================================

Display 0 does not exist, using the default display instead.

SimpleOpenNI Version 0.26

Can’t open the depthMap, maybe the camera is not connected!

Display 0 does not exist, using the default display instead.

SimpleOpenNI Version 0.26

Exception in thread “Animation Thread” java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0

at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)

at java.awt.image.BufferedImage.<init>(BufferedImage.java:326)

at processing.core.PGraphicsJava2D.allocate(PGraphicsJava2D.java:132)

at processing.core.PGraphicsJava2D.setSize(PGraphicsJava2D.java:118)

at processing.core.PApplet.resizeRenderer(PApplet.java:1060)

at processing.core.PApplet.size(PApplet.java:1140)

at processing.core.PApplet.size(PApplet.java:1098)

at kinect_test.setup(kinect_test.java:30)

at processing.core.PApplet.handleDraw(PApplet.java:1608)

at processing.core.PApplet.run(PApplet.java:1530)

at java.lang.Thread.run(Thread.java:680)

===============================================================================================

Display 0 does not exist, using the default display instead.

SimpleOpenNI Version 0.24

Can’t open the depthMap, maybe the camera is not connected!

Display 0 does not exist, using the default display instead.

SimpleOpenNI Version 0.24

Exception in thread “Animation Thread” java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0

at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)

at java.awt.image.BufferedImage.<init>(BufferedImage.java:326)

at processing.core.PGraphicsJava2D.allocate(PGraphicsJava2D.java:132)

at processing.core.PGraphicsJava2D.setSize(PGraphicsJava2D.java:118)

at processing.core.PApplet.resizeRenderer(PApplet.java:1060)

at processing.core.PApplet.size(PApplet.java:1140)

at processing.core.PApplet.size(PApplet.java:1098)

at kinect_test.setup(kinect_test.java:30)

at processing.core.PApplet.handleDraw(PApplet.java:1608)

at processing.core.PApplet.run(PApplet.java:1530)

at java.lang.Thread.run(Thread.java:680)

=================================================================================================

Simple OpenNI Version 0.22

Display 0 does not exist, using the default display instead.

Exception in thread “Animation Thread” java.lang.UnsatisfiedLinkError: /Users/yingxiao/Documents/Processing/libraries/SimpleOpenNI/library/libSimpleOpenNI.jnilib:  Library not loaded: ../../Bin/Release/libXnVNite_1_4_2.dylib   Referenced from: /Users/yingxiao/Documents/Processing/libraries/SimpleOpenNI/library/libSimpleOpenNI.jnilib   Reason: image not found

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1827)

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1742)

at java.lang.Runtime.loadLibrary0(Runtime.java:823)

at java.lang.System.loadLibrary(System.java:1045)

at SimpleOpenNI.SimpleOpenNI.<clinit>(SimpleOpenNI.java:33)

at User.setup(User.java:39)

at processing.core.PApplet.handleDraw(PApplet.java:1608)

at processing.core.PApplet.run(PApplet.java:1530)

at java.lang.Thread.run(Thread.java:680)

 

Some Links I’ve visited

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s