plotly / plotly/plotly.js

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

Aperta
#7,771 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug size: 1
Lingua principale
JavaScript
Stelle
18.3k
Fork
2k
Merge medio
2g 12h
PR unite (30g)
28

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia esaminando l’issue #7387 e il fix associato #7390, quindi traccia il percorso di rendering di scattergl che può chiamare regl.clear(). L’issue non indica file né test; il lavoro sarà completato quando esisterà un’implementazione concordata che permetta agli avvisi di identificare il trace o la posizione di rendering che li attiva e verifichi l’output di debug risultante.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
computer-graphics, data-visualization
Tipo di issue
Bug
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Tranquilla
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.