Giter VIP home page Giter VIP logo

Comments (7)

ojack avatar ojack commented on July 24, 2024

@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.

echophon avatar echophon commented on July 24, 2024

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.

ojack avatar ojack commented on July 24, 2024

@echophon any updates on this?

from hydra.

echophon avatar echophon commented on July 24, 2024

@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.

ojack avatar ojack commented on July 24, 2024

@echophon i found an error and updated hydra-synth, the browser, and atom verion....any difference?

from hydra.

echophon avatar echophon commented on July 24, 2024

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.

ojack avatar ojack commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.