question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Networked A-Frame new connections force exokit to close

See original GitHub issue

Describe the bug What happened, and what did you expect to happen?

When using an a-frame project with networked aframe component, and when a new user joins the scene, exokit closes, usually without an error message.

Instead I would expect exokit to stay running and that both users can interact in the scene together.

To Reproduce Steps or commands ran to reproduce the behavior:

Install and build exokit 1462531950b59511fca5d7c6c21853b2a27f4fd2 git clone from https://github.com/MozillaReality/networked-aframe (NAF 27d9765bef5f0e10617a4f7dd8dc33572219db05) npm install npm run dev

in exokit dir: node . -x webvr localhost:8080/tracked-controllers.html

then open in another browser localhost:8080/tracked-controllers.html

exokit will crash within a few seconds but usually with no error. sometimes a console error is displayed:

uncaught exception: TypeError: Cannot read property 'owner' of undefined
    at i.networkUpdate (/build.js:1895:19)
    at NetworkEntities.updateEntity (/build.js:663:53)
    at NetworkConnection.receivedData (/build.js:570:37)
    at Easyrtc.receivePeerDistribute (/easyrtc/easyrtc.js:5103:25)
    at Socket.onChannelMsg (/easyrtc/easyrtc.js:7389:18)
    at Socket.Emitter.emit (https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js:3:10860)
    at Socket.onevent (https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js:3:5790)
    at Socket.onpacket (https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js:3:5306)
    at Manager.<anonymous> (https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js:3:9520)
    at Manager.Emitter.emit (https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js:3:10860)

Additional context Add any other context about the problem here.

workaround - load exokit last after other naf users have joined

System information:

  • OS: [e.g. Windows 10]

  • Exokit Version [e.g. v0.0.512] 1462531950b59511fca5d7c6c21853b2a27f4fd2

  • Node version

  • Npm version/build log if applicable

  • Is your Exokit downloaded or built?

Screenshots If applicable, add screenshots to help explain your problem.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kfarrcommented, Jun 18, 2019

For me I see issue with both and it’s my understanding that websockets is default https://github.com/MozillaReality/networked-aframe#adapters

I do not see issue tab on that repo so I have not filed w/NAF.

0reactions
avaercommented, Jun 18, 2019

Thanks, does that mean the repro requires setting websockets as the protocol (as opposed to RTC)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

networked-aframe - npm
A web framework for building multi-user virtual reality experiences.. Latest version: 0.10.1, last published: 2 months ago.
Read more >
RFC 1122 - Requirements for Internet Hosts - IETF Datatracker
Network Working Group Internet Engineering Task Force Request for Comments: ... All connection control information is thus co-located with the end points of ......
Read more >
RFC 5905: Network Time Protocol Version 4
NTPv4 introduces new functionality to NTPv3, as described in [RFC1305], and functionality expanded from Simple NTP version 4 (SNTPv4) as described in ...
Read more >
Glossary of Security Terms - SANS Institute
One network or series of networks that are all under one administrative control. ... at the other end and can be used to...
Read more >
The triple handshake attack - miTLS
Moreover, our attacks do not require an active network adversary but can be ... Session resumption on a new connection uses an abbreviated...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found