plotly / plotly/plotly.js

[BUG]: WebGL debugging: unclear origin of regl.clear() warnings in scattergl rendering

未关闭
#7,771 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug size: 1
主要语言
JavaScript
星标
18.3k
派生
2k
平均合并
2 天 12 小时
30 天内合并 PR
28

描述

Description

While working on issue #7387 and the associated fix (#7390), I noticed that debugging WebGL-related warnings (specifically those related to regl.clear()) can be difficult due to a lack of contextual information about where the call originates.

In strict or debug environments, warnings such as:
"clear() called with no buffers in bitmask"
may appear without clearly indicating which rendering path or trace triggered them.

This makes it harder for contributors and developers to trace the source of the issue, especially when working with scattergl or other WebGL-based traces.


Steps to Reproduce
  1. Use a WebGL-based trace (e.g., scattergl)
  2. Run in a development or strict/debug environment
  3. Trigger a render/update cycle
  4. Observe WebGL warnings in console

Expected Behavior

Warnings should provide enough context to help identify:

  • which trace type triggered the call
  • where in the rendering pipeline it originated

Actual Behavior

Warnings appear without clear contextual linkage to the rendering path, making debugging less efficient.


Suggested Improvement

Consider improving developer experience by:

  • adding contextual debug information (e.g., trace type or module)
  • documenting expected regl.clear() usage more explicitly
  • optionally enhancing debug logging in development mode

Additional Context

This observation is based on my contribution to fix issue #7387:
https://github.com/plotly/plotly.js/issues/7387

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

先查看 issue #7387 及其相关 fix #7390,然后跟踪可能调用 regl.clear() 的 scattergl 渲染路径。该 issue 没有列出文件或测试;完成这项工作需要达成一致的实现,使警告能够标识触发它们的 trace 或渲染位置,并验证生成的 debug 输出。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
computer-graphics, data-visualization
Issue 类型
缺陷
难度
5/5
预计耗时
一周以上
活跃度
冷清
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。