Comments (7)
@echophon how interesting. What is the very first error that appears before all the regl errors?
Do both of these examples work with your camera+screen configuration?: https://webrtc.github.io/samples/src/content/getusermedia/gum/ https://webrtc.github.io/samples/src/content/getusermedia/canvas/
from hydra.
I only see a warning once, then all these errors. The warning is:
WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost
If I reevaluate the code once this occurs I see this in the canvas error handling area:
Failed to execute 'shaderSource' on 'WebGLRenderingContext': parameter 1 is not of type 'WebGLShader'.
I was able to reproduce this on the 60Hz screen, so it might not be screen related after all.
I can run both of those WebRTC samples and others (great resource) for extended periods at a time. I can also run them at the same time as Hydra and they keep working if in seperate windows. They do however blank to white when this crash occurs, but as soon as I give their window focus again they start working again. Hmmm....
from hydra.
@echophon any updates on this?
from hydra.
@ojack Applied the latest graphic drivers from NVIDIA, but still running into this. Additionally, I tried in atom-hydra & with a different webcam. In both cases, I was able to capture a bit more of the crash data into the console. Looks like a memory leak, but I found this reference on regl regl-project/regl#430 which points to buffer allocation.
Webcam 1
WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost
index.html:1 [.Offscreen-For-WebGL-0000020DD7806550]GL ERROR :GL_OUT_OF_MEMORY : BackFramebuffer::Destroy: <- error from previous GL command
C:\Users\echophon.atom\packages\atom-hydra\node_modules\regl\dist\regl.js:48 Error: (regl) context lost
at Function.raise (C:\Users\echophon.atom\packages\atom-hydra\node_modules\regl\dist\regl.js:47)
at Object.REGLCommand [as draw] (C:\Users\echophon.atom\packages\atom-hydra\node_modules\regl\dist\regl.js:9403)
at passes.forEach (C:\Users\echophon.atom\packages\atom-hydra\node_modules\hydra-synth\src\output.js:158)
at Array.forEach ()
at Output.tick (C:\Users\echophon.atom\packages\atom-hydra\node_modules\hydra-synth\src\output.js:158)
at HydraSynth.tick (C:\Users\echophon.atom\packages\atom-hydra\node_modules\hydra-synth\index.js:301)
at Engine. (main.js:216)
at emitOne (events.js:116)
at Engine.emit (events.js:211)
at Engine.tick (C:\Users\echophon.atom\packages\atom-hydra\node_modules\raf-loop\index.js:42)
Webcam 2
[.Offscreen-For-WebGL-0000021B339D9170]GL ERROR :GL_OUT_OF_MEMORY : glFramebufferTexture2D: <- error from previous GL command
index.html:1 [.Offscreen-For-WebGL-0000021B339D9170]GL ERROR :GL_OUT_OF_MEMORY : glFramebufferTexture2D:
index.html:1 WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost
index.html:1 [.Offscreen-For-WebGL-0000021B339D9170]GL ERROR :GL_OUT_OF_MEMORY : BackFramebuffer::Destroy: <- error from previous GL command
C:\Users\echophon.atom\packages\atom-hydra\node_modules\regl\dist\regl.js:48 Error: (regl) context lost
at Function.raise (C:\Users\echophon.atom\packages\atom-hydra\node_modules\regl\dist\regl.js:47)
at Object.REGLCommand [as draw] (C:\Users\echophon.atom\packages\atom-hydra\node_modules\regl\dist\regl.js:9403)
at passes.forEach (C:\Users\echophon.atom\packages\atom-hydra\node_modules\hydra-synth\src\output.js:158)
at Array.forEach ()
at Output.tick (C:\Users\echophon.atom\packages\atom-hydra\node_modules\hydra-synth\src\output.js:158)
at HydraSynth.tick (C:\Users\echophon.atom\packages\atom-hydra\node_modules\hydra-synth\index.js:301)
at Engine. (main.js:216)
at emitOne (events.js:116)
at Engine.emit (events.js:211)
at Engine.tick (C:\Users\echophon.atom\packages\atom-hydra\node_modules\raf-loop\index.js:42)
from hydra.
@echophon i found an error and updated hydra-synth, the browser, and atom verion....any difference?
from hydra.
I think this is fixed! My initial results at hydra-editor-v1.glitch.me are looking good. I can connect multiple USB webcams, record & playback a video (vidRecorder was also crashing for me previously), and unplug webcams without an error. In this last case, they just display the last buffer received. I'll try with atom next.
I did notice that one of the example sketches (Will's Lines) throws an error "o0.scale" is not a function, so there may be a slight backwards compatibility issue. Simple enough to fix it by updating to "src(o0).scale"
from hydra.
yay! i am going to close the issue then!
thats interesting because i dont think o0.scale would have ever worked ... or maybe im forgetting something
from hydra.
Related Issues (20)
- Link to interactive docs broken HOT 1
- p5 fails to init after reload
- dev branch double space triggers period
- set initStream quality
- a.onBeat() not working? HOT 1
- Add yourself to the contribution list 💓 HOT 28
- exclude dist folder from dev branch HOT 7
- landing modal suggestions
- Dynamic canvas to pass into hydra-synth HOT 1
- WebRTC Deprecated? HOT 1
- WebRTC issue on local server
- Hydra three.js integration needs updating (+workaround)
- Hide code via urlParameter doesn't work anymore HOT 5
- needed to --ignore-engines to build
- Show documentation from within editor
- Make it easier to use local videos from within hydra editor
- Icons not visible if .brightness is set to 1
- simplify readme HOT 5
- add .github repo for the "landing" page on GH
- Use extensión libraries "inside a web page" HOT 2
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 hydra.