-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 in Create React App #5222
Comments
Addressed in #5233. |
sorry, bug yet not resolve |
@handeer could you tell us which error you would get in the console when using
|
@handeer note the issue closed when the PR that fixed it was merged, but this fix hasn't yet been released in a published version. |
yes, i got it. |
I don't know if this helps but I get the same error message from my app on an iPad (iPadOS v14.2) through a Safari console attached to my iPad. The complete message is: "webgl setup failed possibly due to enabling preserveDrawingBuffer config. The device may not be supported by is-mobile module! Inverting preserveDrawingBuffer option in second attempt to create webgl scene." After the "second attempt" the 3D view is rendered perfectly. To test, the app is free on the Apple App Store under the name "StochasticS" and there are several places where 3D plots are made. The message above came from Laboratory Exercise 10.6 but the same message on the console can be found in exercises 8.1, 10.5, and 10.7. |
With the latest Plotly.js commit in master (997946b) I get this error when using scatter 3d (the code I work on is here and the package.json is accessible in the same project): The props of the PlotlyComponent: The code loads a partial bundle (a correct one, I verified) and the same chart data works in react-chart-editor, in the same web page. If I go to https://get.webgl.org/ I get the green message: "Your browser supports WebGL" and a spinning cube. In the DevTools console I get this:
|
@silviubogan thanks for the report. |
@archmoj Chromium |
@silviubogan now could you please test this branch and report the error messages you get? |
@archmoj I get an empty canvas and no errors, until I resize the viewport, when I get this console output for almost each resize event. If I change the type of the chart from Scatter 3D to Line 2D in the react-chart-editor I get a working plot, when I switch back to 3D scatter, the canvas is empty. In the preview of react-chart-editor the 3D plot is correctly shown. Thanks! |
@silviubogan could you expand and paste |
|
A screenshot, HTH. |
The above happens on Windows 10/MS Edge and Windows 10/Mozilla Firefox as well. |
https://community.plotly.com/t/webgl-is-not-supported-by-your-browser-for-3d-scatter/43415/6
The text was updated successfully, but these errors were encountered: