Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property '0' of undefined #3

Open
jacobischwartz opened this issue Jun 17, 2014 · 1 comment
Open
Labels

Comments

@jacobischwartz
Copy link

Hi,

I'm really excited to try this out. But I'm getting a JS error (Chrome dev tools). Here's the error location according to the console:
leap-threejs-boilerplate-r4.html:137

The relevant line has:
point = frame.pointables[i].positions[j];

I've got the Leap Motion plugged in and the Leap Motion visualizer works.

Do I need to do anything special to give the browser access to the Leap Motion?

I'm on Mac OS X 10.9.3 (latest stable) with Chrome 35.0.1916.153 (latest stable). My Leap Motion settings dialog says it's up to date.

Cheers,

Jacob

@theo-armour
Copy link
Member

Hi Jacob

Um, You have hit upon a serious issue in my dev process. I am testing on Windows and Linux but not MacOS.

The first thing I will do is put a note in the read me and source code to this effect.

Secondly, since I do want to support the Leap device, I will source a Mac for testing purposes.

Third, let's see if this issue is fixable,

Question: what is the error Chrome is reporting?

Also, please try re-loading the page. The boilerplate has no code to deal with change in window size and this could be an issue.

Thank you very much for the feedback.

Theo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants