alexdwagner / simple-openni

Automatically exported from code.google.com/p/simple-openni
1 stars 0 forks source link

0x0 rip=0x122c4a0b4 - SimpleOpenNI Version 1.96 #75

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install SimpleOpenNI Version 1.96 on a Mac OS X 10.6.8 
2. Run any Processing sketch

What is the expected output? What do you see instead?

I can not run any sketch. I get this message :

SimpleOpenNI Version 1.96
Invalid memory access of location 0x0 rip=0x122c4a0b4

Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help ? Troubleshooting.

What version of the product are you using? On what operating system?

SimpleOpenNI Version 1.96 on a Mac OS X 10.6.8 

Please provide any additional information below.

I can run SimpleOpenNI 1.96 on a PC and I used to run SimpleOpenNI 0.27 on the 
same Mac OS X 10.6.8.

What should I try ?

Invalid memory access of location 0x0 rip=0x122c4a0b4

Original issue reported on code.google.com by florent....@gmail.com on 15 Sep 2013 at 2:33

GoogleCodeExporter commented 8 years ago
I have the same exact issue, can someone please help us?

Original comment by ddz...@gmail.com on 18 Sep 2013 at 11:08

GoogleCodeExporter commented 8 years ago
One issue I've found that  has lead to this exact issue is that the newer 
Kinects (not 2.0, but it's got a slightly different plug), don't work with 
Macs. 

Original comment by maverick...@gmail.com on 19 Sep 2013 at 2:37

GoogleCodeExporter commented 8 years ago
I tried the OpenKinect processing library and the example sketches do work, so 
the kinect is working, in my case at least. Try that other library and see if 
it'll work to rule out the kinect being the issue.

Original comment by ddz...@gmail.com on 19 Sep 2013 at 2:56

GoogleCodeExporter commented 8 years ago
I use two different models of kinect (like 1414) that are not new. So the model 
is not the problem.

Original comment by florent....@gmail.com on 19 Sep 2013 at 5:50

GoogleCodeExporter commented 8 years ago
Did OpenKinect work for you? 

Ill try to get openni 1 and an older version of NiTe and simpleopenni to try. I 
use to have it working until the update to openni2

_
Diego Zaks
Visual Communication

+1 (917) 940 1373
diegozaks.com

On Thu, Sep 19, 2013 at 1:50 AM, null <simple-openni@googlecode.com>
wrote:

Original comment by ddz...@gmail.com on 19 Sep 2013 at 11:52

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Same problem here with an old kinect model (1414)
The Simple-openNi library works fine on recent MacBook Pro (2011) but not on an 
older one (2010).
The two Mac have the same processor (i7), the same IOS (10.8), same RAM (8Go).
Can't understand why it doesn't work...
Any solution? 

Original comment by garcinsa...@gmail.com on 24 Sep 2013 at 9:41

GoogleCodeExporter commented 8 years ago
same problem here, I am on a imac

Original comment by mario.ba...@gmail.com on 29 Sep 2013 at 9:09

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
In this thread, there are no technical details about the source of Invalid 
memory access of location 0x0 rip=0x122c4a0b4,
but It  may be the same problem I had with PrimeSense Sensor, and mac osx 10.6.8

 I SOLVED IT THIS WAY ! :
it was due to libusb , I solved that using another binary of libusb, that was 
the one sent with the old SimpleOpenNI 0.27 package !!
* goto your processing folder, then enter the "libraries". Go to
SimpleOpenNI/library/osx/OpenNI2/Drivers
* rename the file libusb-1.0.0.dylib to libusb-1.0.0.dylib-soni2
* download the file 
http://simple-openni.googlecode.com/svn-history/r436/branches/SimpleOpenNI_preOp
enNI2/platform/osx/OpenNI_NITE_Installer-OSX/data/libusb-1.0.0.dylib
 to your current location (SimpleOpenNI/library/osx/OpenNI2/Drivers)

this lib will replace the one sent with SimpleOpenNI_1.96
and the repeated critical error of libusb _hopefully_ will disappear.
It did the trick on OSX 10.6.8 for me.

happy hacking.
s.

Original comment by sebast...@happytobehappywith.com on 5 Oct 2013 at 7:43

GoogleCodeExporter commented 8 years ago
I was really glad this morning to see your comment but unfortunately it doesn't 
work for me on OSX 10.6.8.

I got a similar error : Invalid memory access of location 0x0 rip=0x12306a0b4

How can I give more technical information about the bug ?

Original comment by florent....@gmail.com on 5 Oct 2013 at 7:55

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
For me neither... 
Also, when replacing libfreenect by a link to homebrew libfreenect, I get a 
message that the device cannot be found, same thing when removing libfreenect 
completely. Is the libfreenect provided with SimpleOpenNI somehow different 
from the one provided with homebrew??? 

Original comment by vlorenzo...@gmail.com on 5 Oct 2013 at 6:30

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Same problem for me. I have the following set up:
- kinect model 1414
- mac 10.8.4
- SimpleOpenNI 1.96

my openkinect ex works fine with kinect until I installed SimpleOpenNI. I 
supposed it is a problem with the library.
I tried as well to replace the libusb as suggested but it doesn't work.

Please anybody has the solution for it?
tnx

Original comment by dong.yi....@gmail.com on 10 Oct 2013 at 3:53

GoogleCodeExporter commented 8 years ago
I'm having this same problem. Swapping out the libusb made it so the crash 
stopped happening with libusb, but now the crash is happening with the freenect 
library libfreenect.0.1.2.dylib

Same error message: "Invalid memory access of location"

Original comment by jykal...@gmail.com on 16 Oct 2013 at 4:46

GoogleCodeExporter commented 8 years ago
I've got the same problem and have the following set up:
- kinect model 1473
- mac 10.8.5
- SimpleOpenNI 1.96

i can receive the kinect Signal via terminal and libfreenect etc.
but i can't use the kinect with processing

Original comment by m...@rigbyworld.de on 17 Oct 2013 at 12:11

GoogleCodeExporter commented 8 years ago
Hi, 

same problem here.

OS X 10.9
Processing 2.0.3
Kinect 1414
Simple-openni from Processing library install

>> Examples from Simple-OpenNI work fine.
>> Kinect with TSPS and other sketches work fine.
>> trying http://bit.ly/16xAiEc (adjusted w/ http://bit.ly/1fXphnZ) makes it 
crash.

Complete traceback attached.

Original comment by a...@anerandros.info on 24 Oct 2013 at 1:16

Attachments:

GoogleCodeExporter commented 8 years ago
Hi, again.

I've backed up the libs and replaced them with those from brew (http://brew.sh):

libfreenect.0.1.2.dylib (replaced for the topic bug)
libusb-1.0.0.dylib (replaced because it could not see the Kinect)

Both installed with "brew install openni2"

Now it does't crash anymore but I get the following:

SimpleOpenNI Version 1.96
After initialization:

send_cmd: Bad len 0004 != 000c
freenect_fetch_reg_pad_info: send_cmd read -1 bytes (expected 8)
freenect_camera_init(): Failed to fetch registration pad info for device
libc++abi.dylib: terminating with uncaught exception of type 
std::runtime_error: Cannot open Kinect
Could not run the sketch (Target VM failed to initialize).
Make sure that you haven't set the maximum available memory too high.
For more information, read revisions.txt and Help ? Troubleshooting.

Now,

I couldn't find libc++abi.diylib so I didn't replaced them yet.

I hop this could help moving on with the issue and I look forward for the 
solution.

Cheers

Original comment by a...@anerandros.info on 24 Oct 2013 at 1:55

GoogleCodeExporter commented 8 years ago
I've been having the same problem for weeks now.

Mac OS X 10.6.8
Processing 2.0.3
SimpleOpenNI 1.96
Java 6 Update 17

At first I thought it was a problem with Java.  OS X 10.6.8 can't use java 7 
and Processing 2 runs off of java 7.  I have the sketch working on my PC 
perfectly.  The only difference between the mac and the PC is java 7.  So I 
tried downloading java 7 on the mac and it still didn't work.

Thoughts?

Original comment by tyler.ro...@gmail.com on 30 Oct 2013 at 8:32

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I have installed the OS 10.9 and Java 6 Update 34 and I get the same error...

SimpleOpenNI Version 1.96
Invalid memory access of location 0x0 rip=0x1147850b4

Can't find any solution too.

Original comment by florent....@gmail.com on 3 Nov 2013 at 3:52

GoogleCodeExporter commented 8 years ago
I had the same issue (Invalid Memory Access) using OSX 10.6.8 and Processing 
2.0.3, simpleOpenNI 1.96 and a Kinect 1414.

Using Vlorenzo's response #13, I installed libfreenect using homebrew and then 
placed 
/Users/wemakeporn/Documents/Processing/libraries/SimpleOpenNI/library/osx/OpenNI
2/Drivers/libfreenect.0.1.2.dylib by 
/usr/local/Cellar/libfreenect/0.2.0/lib/libfreenect.0.1.2.dylib and magic 
happened.
Think about running the processing applet in 64 bit mode.

Thanks for all your comments that allowed me to solve the issue! :D

Original comment by iDa...@gmail.com on 5 Nov 2013 at 9:38

GoogleCodeExporter commented 8 years ago
Wait, can you explain what you mean by:
"placed 
/Users/wemakeporn/Documents/Processing/libraries/SimpleOpenNI/library/osx/OpenNI
2/Drivers/libfreenect.0.1.2.dylib by 
/usr/local/Cellar/libfreenect/0.2.0/lib/libfreenect.0.1.2.dylib"

Where did you find those file paths?

Original comment by Sebra...@gmail.com on 6 Nov 2013 at 9:01

GoogleCodeExporter commented 8 years ago
When you install libfreenect using homebrew, you get a version of 
/usr/local/Cellar/libfreenect/0.2.0/lib/libfreenect.0.1.2.dylib compiled (and 
thus compatible) with your own mac without the bug of the original 
libfreenect.0.1.2.dylib file located in the Simple-OpenNI processing library.
I hope this helps.

Original comment by iDa...@gmail.com on 6 Nov 2013 at 9:09

GoogleCodeExporter commented 8 years ago
i had the same issue here using OSX 10.6.8, Processing 2.0.1, Kinect 1414, 
simpleOpenNI 1.96.

got it working by replacing the libfreenect.0.1.2.dylib file by this one:
https://github.com/kronihias/pix_freenect/blob/master/build/libfreenect.0.1.2.dy
lib
now everything works fine.

hope it helps!

Original comment by isto.def...@gmail.com on 15 Nov 2013 at 2:01

GoogleCodeExporter commented 8 years ago
It helps a lot! Problem solved. Thank you!

Original comment by florent....@gmail.com on 15 Nov 2013 at 2:57

GoogleCodeExporter commented 8 years ago
#26 did the trick for me too! Thanks!

Original comment by temi...@hotmail.com on 31 Jan 2014 at 9:14

GoogleCodeExporter commented 8 years ago
#26 FTW!

Original comment by shanepi...@gmail.com on 3 Mar 2014 at 2:58

GoogleCodeExporter commented 8 years ago
#10 worked a charm. Thank you!

Original comment by anyother...@gmail.com on 13 Mar 2014 at 1:23

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
...got it working by replacing the libfreenect.0.1.2.dylib file by this one:
https://github.com/kronihias/pix_freenect/blob/master/build/libfreenect.0.1.2.dy
lib
now everything works fine.

----> the file that is mentioned above is deleted or moved so I've got it 
working by downloading this one:
https://github.com/kronihias/pix_freenect/blob/master/build/libfreenect.0.2.0.dy
lib
and rename it to: libfreenect.0.1.2.dylib

Hope it helps!

Original comment by Yachar...@gmail.com on 24 Jul 2014 at 3:20

GoogleCodeExporter commented 8 years ago
same problem
Mac OS 10.9.5
Processing 2.0.1
SimpleOpenNI 1.96

Original comment by mon...@gmail.com on 11 Oct 2014 at 2:15

GoogleCodeExporter commented 8 years ago
Working but now I'm getting the error: Can't init SimpleOpenNI, maybe the 
camera is not connected!

Original comment by yayap...@gmail.com on 10 Mar 2015 at 11:11