Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGL error when screen sharing Chrome tab #29

Closed
dundass opened this issue Oct 14, 2018 · 9 comments
Closed

WebGL error when screen sharing Chrome tab #29

dundass opened this issue Oct 14, 2018 · 9 comments
Labels

Comments

@dundass
Copy link

dundass commented Oct 14, 2018

hi !

i get this error:
Failed to execute 'shaderSource' on 'WebGLRenderingContext': parameter 1 is not of type 'WebGLShader'.
when trying to use the screen sharing extension to pull a Chrome tab into hydra using
s0.initScreen()
src(s0).out()
locally or using the remote hydra URL.

update: this also happens immediately when trying to use screen sharing extension with VLC (application window).

here is what the console says when it crashes:
[.WebGL-000000C82EF494A0]GL ERROR :GL_INVALID_VALUE : glCopySubTextureCHROMIUM: source texture bad dimensions.
WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost
Error: (regl) context lost

also i've been on the WebRTC examples, particularly for testing getUserMedia, and it comes back with a NotFoundError. could this be the problem ? how can it be fixed ?

i'm on Chrome 69, windows 8.1. thx !

@ojack
Copy link
Member

ojack commented Oct 17, 2018

Hmm I am not sure, but it is very likely related to the WebRTC errors. Which examples have you tried?

@ojack
Copy link
Member

ojack commented Oct 17, 2018

Sometimes on windows there is an issue where only one application can access a camera or device at a time. I am not sure how/whether this affects screensharing.. but maybe could solve the WebRTC issues.

@dundass
Copy link
Author

dundass commented Oct 17, 2018

hey ! i tried the ones at https://github.com/ojack/hydra/issues/24, and they are now working but the screen sharing still drops out after running the 2 lines above

when u go to the 'share your screen' menu as part of the extension, the vlc window is shown as a black screen rather than the playing video buffer, not sure if that helps. also my laptop has dual video cards, an nvidia and the intel integrated, could they be getting in the way / conflicting ?

@TheWispy
Copy link

I've had an issue with the screen capture extension not capturing applications before. Updating my graphics drivers seemed to fix it, but it may have just been acting weird. It would seem weird that your video devices would conflict as such, but there are probably BIOS settings that allow you to configure whether integrated graphics should take priority.

@ojack
Copy link
Member

ojack commented Oct 17, 2018

@dundass
Copy link
Author

dundass commented Oct 18, 2018

thanks for the replies - @ojack it seems to work with a chrome tab fine, but with another application it comes up with a black screen surrounded by the VLC UI. weirdly despite that example working with a tab, hydra still cuts the feed off. also worth noting is that u were right about one source at a time, cuz if i bring VLC into focus with the webrtc tab in the background, it streams fine.

@TheWispy i will try to update the nvidia (& intel?) drivers

@dundass
Copy link
Author

dundass commented Oct 22, 2018

tried updating nvidia drivers but nothing's changed. not sure what to try now, do you have any more suggestions ?

i dont want to find another tool that allows video input because they simply won't be as good as hydra

@ojack
Copy link
Member

ojack commented Nov 4, 2018

@dundass i found an error in the way textures were being imported and updated the repo....let me know if anything has changed!

@dundass
Copy link
Author

dundass commented Nov 5, 2018

hydraaaaaa
thank u thank u thank u !

@dundass dundass closed this as completed Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants