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

Video Texture makes WebGL context lost on Ubuntu #29909

Open
whatisor opened this issue Nov 16, 2024 · 5 comments
Open

Video Texture makes WebGL context lost on Ubuntu #29909

whatisor opened this issue Nov 16, 2024 · 5 comments

Comments

@whatisor
Copy link

whatisor commented Nov 16, 2024

Description

Video texture example is black screen because of WebGL context lost on Ubuntu 22.04.

Initial analysis: When video is not ready( not first frame come), rendering is inited wrongly that makes WebGL crashes.

Issue is fixed on example if checking this before rendering.

if(video.currentTime > 0) composer.render();

Reproduction steps

  1. Open https://threejs.org/examples/?q=video#webgl_materials_video
  2. Click Play
  3. Nothing is show up. WebGL context lost on console log.

Code

https://threejs.org/examples/?q=video#webgl_materials_video

Live example

https://threejs.org/examples/?q=video#webgl_materials_video

Screenshots

image

Version

r170

Device

Desktop

Browser

Chrome

OS

Linux

@Mugen87
Copy link
Collaborator

Mugen87 commented Nov 18, 2024

Do you experience a context lost with all examples using a video texture? How about this one:

https://threejs.org/examples/webgl_video_panorama_equirectangular

Besides, do you see any differences when using Firefox on the affected device?

Do you mind sharing a chrome://gpu/ report in this issue?

@whatisor
Copy link
Author

I think it is related hardware, but panorama running well without issue.
image

@Mugen87
Copy link
Collaborator

Mugen87 commented Nov 18, 2024

Can you try to remove all post processing of webgl_materials_video and check if it works on your machine? Maybe the example is too demanding.

BTW: When you are getting asked to share a chrome://gpu/ report, the idea is not to make a screenshot but click the button "Download Report to File" and then share the resulting text file.

@whatisor
Copy link
Author

Some more information:

  • it works if remove post-processing.
  • console always log wegl context lost then webgl context restore.
  • should be device issue but video-only demo can restore from error after context restore

@Mugen87
Copy link
Collaborator

Mugen87 commented Nov 20, 2024

Do you see the same issues in Firefox?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants