You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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. (index.ts:127:10)
at p (regeneratorRuntime.js:45:16)
at Generator. (regeneratorRuntime.js:133:17)
at Generator.next (regeneratorRuntime.js:74:21)
at n (asyncToGenerator.js:3:20)
at s (asyncToGenerator.js:22:9)
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. (index.ts:127:10)
at p (regeneratorRuntime.js:45:16)
at Generator. (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
https://codesandbox.io/p/sandbox/wonderful-merkle-h29jhn?layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clvcv91d400063j6f9qp1x2os%2522%252C%2522sizes%2522%253A%255B100%252C0%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clvcv91d300023j6f6tnap8i9%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clvcv91d300033j6f5txf7fvq%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clvcv91d300053j6f1nhse0hz%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clvcv91d300023j6f6tnap8i9%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clvcv91d300013j6f67svmqi7%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252Findex.html%2522%257D%255D%252C%2522id%2522%253A%2522clvcv91d300023j6f6tnap8i9%2522%252C%2522activeTabId%2522%253A%2522clvcv91d300013j6f67svmqi7%2522%257D%252C%2522clvcv91d300053j6f1nhse0hz%2522%253A%257B%2522id%2522%253A%2522clvcv91d300053j6f1nhse0hz%2522%252C%2522activeTabId%2522%253A%2522clvcvca1p00513j6fk7txlpoz%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clvcv91d300043j6flf1zmdbr%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522UNASSIGNED_PORT%2522%252C%2522port%2522%253A0%252C%2522path%2522%253A%2522%252F%2522%257D%252C%257B%2522type%2522%253A%2522SANDBOX_INFO%2522%252C%2522id%2522%253A%2522clvcvca1p00513j6fk7txlpoz%2522%252C%2522mode%2522%253A%2522permanent%2522%257D%255D%257D%252C%2522clvcv91d300033j6f5txf7fvq%2522%253A%257B%2522tabs%2522%253A%255B%255D%252C%2522id%2522%253A%2522clvcv91d300033j6f5txf7fvq%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Afalse%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D
Steps to Reproduce the Bug or Issue
Expected behavior
I expected the example to work and render using GPU
Screenshots or Videos
g6-demo.zip
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: