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

[Bug] Headless Chrome - Cannot read property 'blendFuncSeparate' of null #3018

Open
Atnaize opened this issue Feb 16, 2024 · 5 comments
Open
Labels
type: bug 🐞 Errors in functionality

Comments

@Atnaize
Copy link

Atnaize commented Feb 16, 2024

Bug description

"Uncaught TypeError: Cannot read property 'blendFuncSeparate' of null" error when launching page with headless Chrome.
The page with the renderer works fine with a classic Chrome browser.

Steps to reproduce

Open a page with a renderer with an headless Chrome under a Debian 12 without GPU

Detailed Behavior

I used the following options

--window-size=1920,1080
--no-sandbox
--use-gl=egl
--enable-webgl
--enable-webgl-developer-extensions
--enable-webgl-draft-extensions
--enable-webgl-image-chromium
--ignore-gpu-blocklist
--enable-gpu-rasterization
--enable-zero-copy
--enable-webgpu-developer-features 
--enable-gpu-debugging
--enable-gpu-driver-debug-logging
--headless=new

I tried to disable some of them, but the end result is the same
I also tried

--use-angle=swiftshader
--use-gl=angle

As I saw this issue
But without different behavior

Expected Behavior

Page should render correctly

Environment

  • vtk.js version: 24.19.2
  • Browsers: ChromeDriver 121.0.6167.85
  • OS: Debian GNU/Linux 12 (bookworm) without GPU
@Atnaize Atnaize added the type: bug 🐞 Errors in functionality label Feb 16, 2024
@daker
Copy link
Collaborator

daker commented Feb 16, 2024

Please attach the GPU report with --print-to-pdf=report.pdf chrome://gpu

@Atnaize
Copy link
Author

Atnaize commented Feb 16, 2024

Unfortunately this option isn't working. In the env I'm using
Probably because I don't have GPU at all

image

@daker
Copy link
Collaborator

daker commented Feb 16, 2024

I am not sure webgl will work without GPU unless you force the driver to use a software implementation

@Atnaize
Copy link
Author

Atnaize commented Feb 20, 2024

Hi @daker, I tried again with the same machine having a GPU now, but I still have the same issue

image

When I try to generate the PDF with --print-to-pdf parameter, I have this kind of error

image

@daker
Copy link
Collaborator

daker commented Feb 21, 2024

try with --use-angle=vulkan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐞 Errors in functionality
Projects
None yet
Development

No branches or pull requests

2 participants