sanity_check_attributes bodies are mostly empty across visuals
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- python
- Ambito
- computer-graphics
Direzione di ricerca
Start by auditing the listed sanity_check_attributes and sanity_check_attributes_buffer methods across gsp/visuals, gsp/geometry, gsp/materials, and gsp/core, beginning with the pass implementations and shallow Buffer checks. Use the existing rgba8 enforcement in gsp/materials/mesh_basic_material.py and the related #20 Bug 6 context as reference. Done means each class has defined BufferType, count, and applicable shape or range validation that fails clearly at construction or the buffer boundary.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Short tracking issue — most sanity_check_attributes / sanity_check_attributes_buffer static methods across the visuals/geometry/material/texture classes are either pass or limited to isinstance(x, Buffer) checks. As a result, malformed input (wrong dtype, wrong shape, mismatched counts) crashes deep in numpy at render time instead of failing clearly at construction or at the buffer boundary.
Audit (as of mesh_ng):
gsp/visuals/mesh.py—sanity_check_attributesispass;_bufferform only delegates.gsp/visuals/markers.py— bothpass.gsp/visuals/paths.py— bothpass.gsp/geometry/mesh_geometry.py— bothpass.gsp/visuals/pixels.py,points.py,segments.py,texts.py—_bufferonly has shallowisinstance(_, Buffer)checks; no shape/dtype/count validation.gsp/visuals/image.py,gsp/core/texture.py— partial type checks only.gsp/materials/mesh_basic_material.py—_buffernow enforces rgba8 on face/edge colors (#20 Bug 5); the non-buffer form is stillpass.
What good would look like (per class):
- Buffer
BufferTypematches the expected encoding (e.g. positions →vec3, indices →uint32, colors →rgba8). - Buffer count consistency between related attributes (e.g. material color count ∈ {1, vertex_count, face_count}).
- Optionally O(N) range checks (e.g.
max(indices) < vertex_count) at the buffer boundary.
Related: this is the larger Bug 6 from #20, broadened beyond Mesh.
This is just a placeholder to come back to — no fix scoped yet.
- Lingua principale
- Python
- Stelle
- 2
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di vispy/GSP_API
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
-
improve examples by AI Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
Tutte le issue di vispy/GSP_API
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
stephrobert/dsoxlab#238 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
sublimehq/package_control#1780 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
nwg-piotr/nwg-displays#145 ·