-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
firefox: uncaught TypeError: this.attributes.position is undefined / chrome: Uncaught TypeError: Cannot read property 'array' of undefined #4742
Comments
Isolated to the text attribute .. in v 1.0.4 |
Hard to tell. The link provided is a pretty complex application and hard to isolate the issue. If you can provide a simple example to reproduce it will be easier to help. I recommend glitch |
Yeah used the aframe basic bootstrap cant replicate the error weird. |
From the error message. It looks the problem comes from the raycaster and or cursor / laser controls. You'll need a simple test case that uses those to reproduce. |
Thanks will set that up. |
(glitch.com console / debugger never loads / works for me ) see screenshot of chrome .. ** error not occurring every time / 50/50** if you reload / run error occurs |
What are the steps to reproduce? What OS? What browser version? I can't reproduce neither on Chrome 87 nor Firefox 83 on Windows 10 I tried to reload the page multiple times and click around and never got the error to appear. |
getting it on .. Chromium 81.0.4044.92 (Developer Build) built on Debian 10.4, running on Debian 10.6 (64-bit) linux Firefox 81 linux only sometimes |
well by remove all except login / psw stuff / re-install firefox and chrome on my devel machine (linux Debian) |
Well done! Not sure what could be causing |
Is this still an issue? Can we close? |
It looks like I'm running into exactly this issue. I have (basically) this snippet in my code (I set some attributes on
where the HTML has this element in the
and I run into this error when the The full code is at https://github.com/KaiRo-at/vrmap with the offending line at https://github.com/KaiRo-at/vrmap/blob/master/map.js#L83 (the error does not happen when this line is commented out, but of course the menu items have no text), the running example is at https://vrmap.kairo.at/ which is broken with this issue right now (at least for me in Firefox Nightly). |
FWIW, your HTML should be |
Thanks, that's a good point (interesting that it never caused an issue), but fixing that unfortunately doesn't change experiencing this bug. The code repo and website are updated for this fix now, the bug still occurs, and commenting out that one |
@KaiRo-at Happy to look at it if you can reproduce with a simpler example. A bit tight on time to debug the whole app. Best of luck |
I found a simple test case. The issue only is seen in connection with the raycaster I have so that it's seen which menu item is being clicked in that menu. Drop this into a
When either the |
I have the same problem. When I use my Web2VR libary with aframe 1.1.0. I use community aframe-keyboard compenent when i add it to a entity that is on the scene i get the error on chrome. If i dont add it to the scene it wont crush. On firefox it only works sometimes after refreshing. |
Thanks for reporting and the test case. The problem was that the font is loaded asynchronously and there might be cases where the raycaster tries to intersect on the text before it's completely initialized. It should be now fixed. If you can try the master-build and confirm the fix it will be greatly appreciated. |
A local copy of my full VR Map demo works with this build, thanks for the fix! 👍 |
Hi. I just ran into this issue. the |
@ELI7VH No ETA at the moment. The master build I linked above is safe to use. |
It worked for me too. Thanks for posting it. |
Description:
https://artboxvr.com/brooklyn/
** Works NO ERRORs on A-Frame Version: 1.0.4
firefox:
Uncaught TypeError: this.attributes.position is undefined
Aframe 13
computeBoundingSphere
raycast
ki
intersectObjects
checkIntersections
tock
value
onAfterRender
render
value
exports
u
t
index.js:96:18
Aframe 13
computeBoundingSphere
raycast
ki
intersectObjects
checkIntersections
tock
value
onAfterRender
render
value
exports
u
t
chrome:
Uncaught TypeError: Cannot read property 'array' of undefined
at TextGeometry.computeBoundingSphere (index.js:96)
at P.raycast (three.js:8649)
at ki (three.js:34685)
at Ui.intersectObjects (three.js:34733)
at i.checkIntersections (raycaster.js:227)
at i.tock (raycaster.js:199)
at HTMLElement.tock (a-scene.js:764)
at e.object3D.onAfterRender (a-scene.js:53)
at We.render (three.js:18659)
at HTMLElement.render (a-scene.js:798)
RE: /issues/4618
I made all the suggested fixes but same error..
Thanks!
The text was updated successfully, but these errors were encountered: