-
Notifications
You must be signed in to change notification settings - Fork 156
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
Raycast exception: Cannot read property 'count' of undefined #59
Comments
I can reproduce it pretty reliably if
|
@derwaldgeist I've tried your steps but am unable to replicate the issue unfortunately. Could you make a simple reduced example on https://codesandbox.io/ that reliably replicates the issue so it can be debugged? |
I have the same issue in https://github.com/vasturiano/globe.gl/ this version. |
@maker2002 thanks for contributing. I'm still unable to replicate this issue. Are you able to do an example on https://codesandbox.io that produces this error, even if just occasionally? |
Yep, I agree, if seems to happen at random. I just felt it was more reproducible if I hovered above a label created at 0,0. But also here not always. |
While I was tinkering with react-globe.gl (the official example) I also encountered this error three times. It indeed was very random and I also couldn't reproduce it reliably. |
Same here! |
FYI: I managed to fix this by wrapping this else block of code in an I did it in my I just need to remember to do this again if I ever reinstall three via npm or something. Maybe it needs to be fixed in the three.js repo.
|
Hi, I have the same problem, any news about a fix? |
its the draw range...... |
its because we were calling intersectObject on a mesh like Points.....at least for me and the count was messed up |
Maybe this merge request will help? |
This is a cursory observation from someone new to both Three and this library, so YMMV. But I've found that I only hit this issue when passing bad data to the globe--i.e., making sure all keys used by accessors were defined before passing data to the globe fixed this error for me. |
I got my globe working now, it's looking amazing.
However, quite often if I hover over it or try to drag it, it throws an exception:
After that, the globe won't allow the user to rotate it anymore. It's stuck to its current position and rotation.
What might cause this?
The text was updated successfully, but these errors were encountered: