Skip to content

Viewport exceptions after reconnect #1657

@willeastcott

Description

@willeastcott

After the Editor disconnects and reconnects, I see this in the JS console:

webxr-polyfill.js:34048 [Immersive Web Emulator] native WebXR API successfully overridden
editor.ts:136 PlayCanvas Editor API v0.0.0 revision unknown
2379439?use_local_frontend:1 Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
realtime.ts:16 realtime connected
relay-server.ts:112 relay server connected
messenger.ts:104 messenger connected
2379439?use_local_frontend:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
2379439?use_local_frontend:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
2379439?use_local_frontend:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
2379439?use_local_frontend:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
messenger.ts:88 messenger reconnecting
relay-server.ts:90 relay server reconnecting
realtime.ts:38 realtime disconnected CloseEvent {isTrusted: true, wasClean: false, code: 1006, reason: '', type: 'close', …}
assets-sync.ts:30 Browser was idle for about 32667.146 seconds...
realtime.ts:16 realtime connected
messenger.ts:104 messenger connected
relay-server.ts:112 relay server connected
viewport-application.ts:78 viewport:postUpdate (event error)
viewport-application.ts:78 TypeError: Cannot read properties of undefined (reading 'type')
    at ViewportIcon.update (entities-icons.ts:192:64)
    at entities-icons.ts:319:36
    at Array.forEach (<anonymous>)
    at MainEditor.<anonymous> (entities-icons.ts:319:15)
    at MainEditor.emit (index.mjs:201:31)
    at viewport-application.ts:78:24
    at sentryWrapped (helpers.ts:87:17)
viewport-application.ts:80 viewport:gizmoUpdate (event error)
viewport-application.ts:80 TypeError: Cannot set properties of undefined (setting 'cull')
    at MainEditor.<anonymous> (gizmo-screen.ts:127:35)
    at MainEditor.emit (index.mjs:201:31)
    at viewport-application.ts:80:24
    at sentryWrapped (helpers.ts:87:17)

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions