-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[iOS - iPhone] Hubs in-world movement breaks when attempting to use the pen #3452
Comments
Happens on Android as well |
@misslivirose @emclaren can you see if you can reproduce this on the latest staging build? I can't on Android or iOS. Maybe there was something else going on in our test? |
This didn't reproduce for me on my iPhone today. |
I encountered this bug in my own testing today when spawning a pen in one client and joining with another: Also, while capturing details I tabbed away and when I came back there was this error repeatedly thrown: So the pen error may be related to: #3383 I think what's happening is the networked entity isn't cloned correctly due to some JSON parse error and so the pen's networked component has an undefined data property. That would cause both the |
I've now traced this back to a network instantiation / DOM lifecycle bug and I have easy reproduction steps. In this PR I added the pen-tools system. Which exists to store a reference to the currently active pen and toggles the The pen-tools system is basically a clone of the camera-tools system. The main difference between the two is where the component that is managed by these systems ( For Inside both register functions we update the active tool and to do that, we check if we are the network owner of the object using
So it looks like the networked component attribute is set, but not parsed yet. What's a little odd is that the pen component's data is parsed: I'm a little stumped here. I know we have network instantiation race conditions, I just don't if that's what this is or how I would fix it yet. |
I think this might fix it. This issue is waiting on us to merge this PR: Hubs-Foundation/networked-aframe#44 |
To reproduce
Enter the Hubs room and confirm that you can move around normally. Open the 'Place' menu and select the pen. The pen does not appear and I cannot write on the screen, which seems to no longer respond to any drag movement with the finger (e.g. movement or looking around)
Expected behavior
I can use the pen with clear instructions on how to drop it.
Hardware
The text was updated successfully, but these errors were encountered: