Skip to content

Displaying colors instead of dots after hiding and showing points multiple times. #165

@Sagva

Description

@Sagva

Hello!

We encountered a bug using the latest version of the regl-scatterplot package, which breaks the displaying of dots when we try to hide/show the drawn points.

The bug could be seen and reproduced in the Codepen https://codepen.io/Sagva/pen/bGZKyBb

It was tested in different browsers with the same result: Chrom, Firefox, Edge (all on OS Windows 11).

Steps to reproduce:

  1. Create a scatterplot
  2. Draw points using the method:
scatterplot.draw([
  [0.2, -0.1, 0, 0.1337],
  [0.3, 0.1, 1, 0.3371],
  [-0.9, 0.8, 2, 0.3713],
]);
  1. Press the “Hide/show points” button which uses scatterplot.draw([]) or scatterplot.clear() for hiding and
scatterplot.draw([
  [0.2, -0.1, 0, 0.1337],
  [0.3, 0.1, 1, 0.3371],
  [-0.9, 0.8, 2, 0.3713],
 ]); 

for showing points again.

After around 30 showings/hidings the scatter plot displays the colors in a mesh instead of the dots.
image

The console shows warnings:

WebGL: INVALID_ENUM: activeTexture: texture unit out of range
[.WebGL-000045A00AE21B00] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
[.WebGL-000045A00AE21B00] GL_INVALID_VALUE: Sampler uniform value out of range.

image

Best regards, Elena.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions