Do you want to work on this issue?
You can request for a bounty in order to promote it!
GPU rendering in vanilla HTML results in error: TypeError: Cannot read properties of null (reading 'configureSwapChain') #5676
sloutsky posted onGitHub
Describe the bug
Hi,
When using 'gpuEnabled' : true inside vanilla-HTML, the graph rendering fails with: the following callstack:
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'configureSwapChain') at t.value (index.ts:377:35) at t.<anonymous> (index.ts:127:10) at p (regeneratorRuntime.js:45:16) at Generator.<anonymous> (regeneratorRuntime.js:133:17) at Generator.next (regeneratorRuntime.js:74:21) at n (asyncToGenerator.js:3:20) at s (asyncToGenerator.js:22:9)
I've used an example from https://g6.antv.vision/en/examples/net/gpuLayout/#basicFruchterman and placed it into a local HTML file (see attached g6-demo.zip), which resulted in the failure above.
Your Example Website or App
Steps to Reproduce the Bug or Issue
1) Unzip attached file (g6-demo.zip) and extract g6-demo.html 2) Open the file using Edge / Chrome 3) Open developer tools and observe the error
Expected behavior
I expected the example to work and render using GPU
Screenshots or Videos
Platform
- OS: Windows 11
- Browser: Edge
- Version: Version 123.0.2420.81 (Official build) (64-bit)
Additional context
No response