question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ScatterGL plot fails with WebGL errors if more than 16 symbols are used.

See original GitHub issue

Using plotly-latest, a ScatterGL plot will fail and throw WebGL errors if more than 16 symbols are used in the plot.

Repro case can be found at: http://jsfiddle.net/brian428/d7oh4j2m/

I tested and found that the magic number seems to be 16. With 16 symbols, the plot seems to work fine. With 17 symbols, large numbers of WebGL errors appear. For reference, the errors say:

WebGL: INVALID_ENUM: activeTexture: texture unit out of range
bind @ plotly-latest.js:69560
batch @ VM6468:3138
E.stats @ plotly-latest.js:69665
Scatter.drawItem @ plotly-latest.js:68498
Scatter.draw @ plotly-latest.js:68454
draw @ plotly-latest.js:190442
exports.redrawReglTraces @ plotly-latest.js:117493
exports.drawData @ plotly-latest.js:117430
lib.syncOrAsync @ plotly-latest.js:106537
plot @ plotly-latest.js:112017
exports.call @ plotly-latest.js:147449
exports.layoutReplot @ plotly-latest.js:117373
lib.syncOrAsync @ plotly-latest.js:106537
relayout @ plotly-latest.js:113531
wrappedEdit @ plotly-latest.js:114061
exports.call @ plotly-latest.js:147449
handleCartesian @ plotly-latest.js:95936
(anonymous) @ plotly-latest.js:96808

Not sure if it matters, but I’m using the latest Chrome (80.0.3987.132) on Win 10 x64. Also tested with Firefox 74.0 with the same results.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
brian428commented, Jul 2, 2020

@archmoj sorry it took a bit to return to this, but trying out latest (1.54.5), still seeing the issue. In addition, as number of symbols goes up, more and more points are not displayed. Hover data points to them, but the points themselves are not shown.

Updated repro: http://jsfiddle.net/brian428/d7oh4j2m/

1reaction
brian428commented, Mar 11, 2020

I went back through previous versions and it looks like it started around 1.33.0 or 1.34.0. I didn’t get the errors with 1.32.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

plotly.graph_objects.Scattergl — 5.11.0 documentation
The data visualized as scatter point or lines is set in x and y using the WebGL plotting engine. Bubble charts are achieved...
Read more >
Python Figure Reference: scattergl Traces - Plotly
Scattergl trace is a graph object in the figure's data list with any of the named ... If a single string, the same...
Read more >
Plotly Scattergl is unresponsive - python - Stack Overflow
I have used plotly's scatter and scattergl extensively for the last 2-3 ... but when I switch to scattergl, the html plot is...
Read more >
Untitled
Mar 11, 2020 · Using plotly-latest, a ScatterGL plot will fail and throw WebGL errors if more than 16 symbols are used in...
Read more >
NEWS
Specifying an english locale no longer results in error (#1686). ... When using shinytest to test a shiny that contains plotly graph, false...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found