Comments (13)
This looks like it's not Exokit crashing -- Exokit is catching the error.
This might be a bug in Exokit though, if this throw is non-standard behavior. I'll look into this. Thanks for filing!
from exokit.
Indeed, I think this should be a non-throwing case, but it throws in Exokit:
c = new WebSocket('ws://lol.com');
c.close();
from exokit.
@bknill Could you try #1388 to see if it handles this issue?
from exokit.
The error has changed but the crash appears to be more serious
core:a-node:error Failure loading node: TypeError: ctx.setGrContext is not a function
at _onGl2DConstruct (/home/owner/workspace/client/exokit/src/native-bindings.js:435:9)
at new CanvasRenderingContext2D (/home/owner/workspace/client/exokit/src/native-bindings.js:456:5)
at HTMLCanvasElement.getContext (/home/owner/workspace/client/exokit/src/DOM.js:2557:23)
at setup (https://localhost:3000/static/js/7.chunk.js:64257:36)
at NewComponent.init (https://localhost:3000/static/js/7.chunk.js:64229:13)
at NewComponent.initComponent (https://localhost:3000/static/js/7.chunk.js:69876:16)
at NewComponent.updateProperties (https://localhost:3000/static/js/7.chunk.js:69856:18)
at HTMLElement.value (https://localhost:3000/static/js/7.chunk.js:68371:25)
at HTMLElement.value (https://localhost:3000/static/js/7.chunk.js:71553:49)
at HTMLElement.value (https://localhost:3000/static/js/7.chunk.js:68343:20)
at entityLoadCallback (https://localhost:3000/static/js/7.chunk.js:68104:20)
at emitLoaded (https://localhost:3000/static/js/7.chunk.js:69171:19)
at runNextTicks (internal/process/task_queues.js:55:5)
at processTimers (internal/timers.js:472:9)
Error: WebSocket was closed before the connection was established
at WebSocket.close (/home/owner/workspace/client/exokit/node_modules/ws/lib/websocket.js:217:14)
at WebSocket.close (/home/owner/workspace/client/exokit/src/WindowBase.js:184:24)
at WebSocketTransport.push../node_modules/sockjs-client/lib/transport/websocket.js.WebSocketTransport.close (https://localhost:3000/static/js/7.chunk.js:478867:8)
at SockJS.push../node_modules/sockjs-client/lib/main.js.SockJS._transportTimeout (https://localhost:3000/static/js/7.chunk.js:476460:23)
at listOnTimeout (internal/timers.js:533:17)
at processTimers (internal/timers.js:475:7)
from exokit.
Thanks, that looks like progress. I can't tell from this why the Canvas2D would be uninitialized however.
Are you able to console.log(ctx)
on this line?
Line 434 in b352ee0
from exokit.
Do I need to rebuild exokit with this change?
from exokit.
If it's on Linux then no rebuild needed, it should just be a JS file change. 👍
from exokit.
Its not even starting at the moment.
unhandled rejection: TypeError: nativeWindow.hasCurrentWindowContext is not a function
at _waitLocalSyncs (/home/owner/workspace/client/exokit/src/Window.js:1037:24)
at Array._renderLocal (/home/owner/workspace/client/exokit/src/Window.js:1156:13)
at _recurse (/home/owner/workspace/client/exokit/src/Window.js:1171:19)
at /home/owner/workspace/client/exokit/src/Window.js:1185:5
at new Promise (<anonymous>)
at _render (/home/owner/workspace/client/exokit/src/Window.js:1167:39)
at window.tickAnimationFrame (/home/owner/workspace/client/exokit/src/Window.js:1191:12)
at global.onrunasync (/home/owner/workspace/client/exokit/src/Window.js:1351:21)
at MessagePort.<anonymous> (/home/owner/workspace/client/exokit/src/WindowBase.js:320:45)
at MessagePort.emit (events.js:196:13)
from exokit.
Took that console log out and get this far:
ore:a-node:error Failure loading node: TypeError: ctx.setGrContext is not a function
at _onGl2DConstruct (/home/owner/workspace/client/exokit/src/native-bindings.js:436:9)
at new CanvasRenderingContext2D (/home/owner/workspace/client/exokit/src/native-bindings.js:457:5)
at HTMLCanvasElement.getContext (/home/owner/workspace/client/exokit/src/DOM.js:2557:23)
at NewShader.init (https://localhost:3000/static/js/4.chunk.js:883:31)
at NewComponent.updateShader (https://localhost:3000/static/js/4.chunk.js:62334:26)
at NewComponent.update (https://localhost:3000/static/js/4.chunk.js:62258:18)
at NewComponent.initComponent (https://localhost:3000/static/js/4.chunk.js:69884:16)
at NewComponent.updateProperties (https://localhost:3000/static/js/4.chunk.js:69856:18)
at HTMLElement.value (https://localhost:3000/static/js/4.chunk.js:68371:25)
at HTMLElement.value (https://localhost:3000/static/js/4.chunk.js:68343:20)
at entityLoadCallback (https://localhost:3000/static/js/4.chunk.js:68104:20)
at emitLoaded (https://localhost:3000/static/js/4.chunk.js:69171:19)
at processTicksAndRejections (internal/process/task_queues.js:89:5)
core:a-node:error Failure loading node: TypeError: ctx.setGrContext is not a function
at _onGl2DConstruct (/home/owner/workspace/client/exokit/src/native-bindings.js:436:9)
at new CanvasRenderingContext2D (/home/owner/workspace/client/exokit/src/native-bindings.js:457:5)
at HTMLCanvasElement.getContext (/home/owner/workspace/client/exokit/src/DOM.js:2557:23)
at NewShader.init (https://localhost:3000/static/js/4.chunk.js:883:31)
at NewComponent.updateShader (https://localhost:3000/static/js/4.chunk.js:62334:26)
at NewComponent.update (https://localhost:3000/static/js/4.chunk.js:62258:18)
at NewComponent.initComponent (https://localhost:3000/static/js/4.chunk.js:69884:16)
at NewComponent.updateProperties (https://localhost:3000/static/js/4.chunk.js:69856:18)
at HTMLElement.value (https://localhost:3000/static/js/4.chunk.js:68371:25)
at HTMLElement.value (https://localhost:3000/static/js/4.chunk.js:68343:20)
at entityLoadCallback (https://localhost:3000/static/js/4.chunk.js:68104:20)
at emitLoaded (https://localhost:3000/static/js/4.chunk.js:69171:19)
at processTicksAndRejections (internal/process/task_queues.js:89:5)
core:a-node:error Failure loading node: TypeError: ctx.setGrContext is not a function
at _onGl2DConstruct (/home/owner/workspace/client/exokit/src/native-bindings.js:436:9)
at new CanvasRenderingContext2D (/home/owner/workspace/client/exokit/src/native-bindings.js:457:5)
at HTMLCanvasElement.getContext (/home/owner/workspace/client/exokit/src/DOM.js:2557:23)
at NewShader.init (https://localhost:3000/static/js/4.chunk.js:883:31)
at NewComponent.updateShader (https://localhost:3000/static/js/4.chunk.js:62334:26)
at NewComponent.update (https://localhost:3000/static/js/4.chunk.js:62258:18)
at NewComponent.initComponent (https://localhost:3000/static/js/4.chunk.js:69884:16)
at NewComponent.updateProperties (https://localhost:3000/static/js/4.chunk.js:69856:18)
at HTMLElement.value (https://localhost:3000/static/js/4.chunk.js:68371:25)
at HTMLElement.value (https://localhost:3000/static/js/4.chunk.js:68343:20)
at entityLoadCallback (https://localhost:3000/static/js/4.chunk.js:68104:20)
at emitLoaded (https://localhost:3000/static/js/4.chunk.js:69171:19)
at processTicksAndRejections (internal/process/task_queues.js:89:5)
core:a-node:error Failure loading node: TypeError: ctx.setGrContext is not a function
at _onGl2DConstruct (/home/owner/workspace/client/exokit/src/native-bindings.js:436:9)
at new CanvasRenderingContext2D (/home/owner/workspace/client/exokit/src/native-bindings.js:457:5)
at HTMLCanvasElement.getContext (/home/owner/workspace/client/exokit/src/DOM.js:2557:23)
at NewShader.init (https://localhost:3000/static/js/4.chunk.js:883:31)
at NewComponent.updateShader (https://localhost:3000/static/js/4.chunk.js:62334:26)
at NewComponent.update (https://localhost:3000/static/js/4.chunk.js:62258:18)
at NewComponent.initComponent (https://localhost:3000/static/js/4.chunk.js:69884:16)
at NewComponent.updateProperties (https://localhost:3000/static/js/4.chunk.js:69856:18)
at HTMLElement.value (https://localhost:3000/static/js/4.chunk.js:68371:25)
at HTMLElement.value (https://localhost:3000/static/js/4.chunk.js:68343:20)
at entityLoadCallback (https://localhost:3000/static/js/4.chunk.js:68104:20)
at emitLoaded (https://localhost:3000/static/js/4.chunk.js:69171:19)
at processTicksAndRejections (internal/process/task_queues.js:89:5)
core:a-node:error Failure loading node: TypeError: ctx.setGrContext is not a function
at _onGl2DConstruct (/home/owner/workspace/client/exokit/src/native-bindings.js:436:9)
at new CanvasRenderingContext2D (/home/owner/workspace/client/exokit/src/native-bindings.js:457:5)
at HTMLCanvasElement.getContext (/home/owner/workspace/client/exokit/src/DOM.js:2557:23)
at NewShader.init (https://localhost:3000/static/js/4.chunk.js:883:31)
at NewComponent.updateShader (https://localhost:3000/static/js/4.chunk.js:62334:26)
at NewComponent.update (https://localhost:3000/static/js/4.chunk.js:62258:18)
at NewComponent.initComponent (https://localhost:3000/static/js/4.chunk.js:69884:16)
at NewComponent.updateProperties (https://localhost:3000/static/js/4.chunk.js:69856:18)
at HTMLElement.value (https://localhost:3000/static/js/4.chunk.js:68371:25)
at HTMLElement.value (https://localhost:3000/static/js/4.chunk.js:68343:20)
at entityLoadCallback (https://localhost:3000/static/js/4.chunk.js:68104:20)
at emitLoaded (https://localhost:3000/static/js/4.chunk.js:69171:19)
at processTicksAndRejections (internal/process/task_queues.js:89:5)
core:a-node:error Failure loading node: TypeError: ctx.setGrContext is not a function
at _onGl2DConstruct (/home/owner/workspace/client/exokit/src/native-bindings.js:436:9)
at new CanvasRenderingContext2D (/home/owner/workspace/client/exokit/src/native-bindings.js:457:5)
at HTMLCanvasElement.getContext (/home/owner/workspace/client/exokit/src/DOM.js:2557:23)
at NewShader.init (https://localhost:3000/static/js/4.chunk.js:883:31)
at NewComponent.updateShader (https://localhost:3000/static/js/4.chunk.js:62334:26)
at NewComponent.update (https://localhost:3000/static/js/4.chunk.js:62258:18)
at NewComponent.initComponent (https://localhost:3000/static/js/4.chunk.js:69884:16)
at NewComponent.updateProperties (https://localhost:3000/static/js/4.chunk.js:69856:18)
at HTMLElement.value (https://localhost:3000/static/js/4.chunk.js:68371:25)
at HTMLElement.value (https://localhost:3000/static/js/4.chunk.js:68343:20)
at entityLoadCallback (https://localhost:3000/static/js/4.chunk.js:68104:20)
at emitLoaded (https://localhost:3000/static/js/4.chunk.js:69171:19)
at processTicksAndRejections (internal/process/task_queues.js:89:5)
THREE.Box3: .getSize() target is now required
THREE.Box3: .getSize() target is now required
core:a-node:error Failure loading node: TypeError: ctx.setGrContext is not a function
at _onGl2DConstruct (/home/owner/workspace/client/exokit/src/native-bindings.js:436:9)
at new CanvasRenderingContext2D (/home/owner/workspace/client/exokit/src/native-bindings.js:457:5)
at HTMLCanvasElement.getContext (/home/owner/workspace/client/exokit/src/DOM.js:2557:23)
at setup (https://localhost:3000/static/js/4.chunk.js:64257:36)
at NewComponent.init (https://localhost:3000/static/js/4.chunk.js:64229:13)
at NewComponent.initComponent (https://localhost:3000/static/js/4.chunk.js:69876:16)
at NewComponent.updateProperties (https://localhost:3000/static/js/4.chunk.js:69856:18)
at HTMLElement.value (https://localhost:3000/static/js/4.chunk.js:68371:25)
at HTMLElement.value (https://localhost:3000/static/js/4.chunk.js:71553:49)
at HTMLElement.value (https://localhost:3000/static/js/4.chunk.js:68343:20)
at entityLoadCallback (https://localhost:3000/static/js/4.chunk.js:68104:20)
at emitLoaded (https://localhost:3000/static/js/4.chunk.js:69171:19)
from exokit.
Switched back to master and everything is running fine. That websocket error only seems to happen intermitently.
from exokit.
Switched back to master and everything is running fine.
Which branch was being run before?
from exokit.
Was this one with the console.log
? #1386 (comment)
The log I would have expected to see was the CanvasRenderingContext2D
.
from exokit.
No it failed when it tried to console.log(ctx)
from exokit.
Related Issues (20)
- Error when loading realitytabs.html example HOT 4
- Emukit loading throws on baseUrl HOT 12
- Cryptovoxels composition
- Releases don't open on Mac HOT 1
- Releases don't open on Android (OnePlus 7 Pro Black Screen) HOT 2
- GL_EXT_frag_depth reported missing even if enabled HOT 3
- Failed to start com.webmr.exokit .fullscreen HOT 2
- Remove unused dependency cross-env HOT 2
- Linux + SteamVR: VRCompositorError_TextureUsesUnsupportedFormat HOT 1
- APK does not compile HOT 2
- Can document.createElement('script'); be used? HOT 1
- Error creating Oculus GL Color Swap Chain HOT 1
- Add AudioContext.createConvolver(), createBiquadFilter() & OfflineAudioContext bindings HOT 12
- Browser.html example does not render
- Problems compiling for Android: LabSound HOT 6
- Best Compressed texture format available on ML1 & Occulus
- Add --help flag for people looking for current flags HOT 2
- YOUR CODE IS INFECTED WITH MALICIOUS DEPENDENCY - node-ipc
- Download link in ReadME goes to a Russian porn site
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exokit.