heuermh / leap-motion-processing

Leap Motion library for Processing
GNU General Public License v3.0
122 stars 31 forks source link

Trouble Installing Library / JRE Crashing #2

Closed ghost closed 11 years ago

ghost commented 11 years ago

Two main problems: First, when I tried to use the version of the library cloned from Github, I could not get it to correctly install and show up in Processing.

When I used the version available from Google Docs, the library installed correctly and was recognized, but after getting about a half-second's worth of frames, the JRE crashed.

crash

heuermh commented 11 years ago

Thanks for submitting this issue.

For 1) it appears that you are using Windows, do you have cygwin or are you using the command shell? I can add additional build scripts if that might help.

For 2) there appears to be a problem with the native code to Java interface. My device is supposed to arrive this week, so I'll be able to look further into that soon.

heuermh commented 11 years ago

See issue #3 for Windows build scripts.

ghost commented 11 years ago

I was using the command shell. What would I need to use in order to properly run the build script using the github versioin as per 1)?

heuermh commented 11 years ago

I have added an ant build script that should work across all platforms, and works for me in Windows command shell.

tingham commented 11 years ago

Just got my dev kit, I'm seeing the same issue in Mac OSX.

heuermh commented 11 years ago

FedEx says tomorrow for me, hopefully I'll be able to replicate then.

tingham commented 11 years ago

Any idea where I'd look?

heuermh commented 11 years ago

Google "null upcall object" leads me to believe the error is coming from LeapJava.lib, possibly from SWIG (http://www.swig.org) generated code.

If this error doesn't show up in java examples, then perhaps it is a problem with Processing finding or linking to the native libraries.

tingham commented 11 years ago

Processing 1.5.1 works - sorting out controller -> data model access now. Awesome, thanks!

ghost commented 11 years ago

I can confirm that the ant build works successfully and allowed the library to be imported into Processing on Windows. Running the sample sketch still crashes the JRE after some frames though. Thanks!

schwittlick commented 11 years ago

I wrote the outlines of a processing library that is working on windows, which is based on your library here. It's not using reflection, which made it to work. Check it out here: https://github.com/mrzl/LeapMotionP5

Can you make a suggestion on how to continue on this- i dont really like the idea of having two libraries for the same issue.

heuermh commented 11 years ago

@mrzl very cool. I don't have a Windows box so I can't test on one very often.

I like the pattern of using reflection in Processing libraries -- here it means that the user's sketch implements com.leapmotion.leap.Listener without having to say so. Odd that using it would cause trouble on only one platform.

As for how to proceed, email me @gmail to discuss.

heuermh commented 11 years ago

All,

According to Leap support, Windows XP is not supported, only Windows 7 and Windows 8. I only have access to XP. Can anyone reproduce this issue on Windows 7 or Windows 8?

heuermh commented 11 years ago

Fixed in commit a3be21ed84a930a176a252cf6a8457faae2f3b0d and released in version 1.4, tagged at https://github.com/heuermh/leap-motion-processing/tree/1.4