Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Heavily dependent functions throw Error: no matching overloaded function found

Abierto
#785 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
javascript

Línea de trabajo

Comienza con la reproducción vinculada de StackBlitz e inspecciona el fragment shader generado alrededor de la línea 457 indicada, centrándote en cómo se emiten vecDotProduct y las funciones vectoriales dependientes. Sigue la dependencia de funciones y la resolución de sobrecargas durante la ejecución del kernel; se considera terminado cuando el kernel reproducido se ejecuta sin el error no-matching-overloaded-function.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

What is wrong?

I have a problem with the added functions while running the kernel. Added some simple vector functions (dotProduct, scale, magnitude, normalize) and when I call them in a specific order, I get the error: Error compiling fragment shader: ERROR: 0:457: 'vecDotProduct' : no matching overloaded function found. The problem only occurs when I try to run/execute the kernel, not when I create it. (Note: the function, which was refered in the error, does exist with the proper types)

The mentioned functions rely on each other (calls each other), and I belive the problem might be related to this, because with independent functions I get no error.

Where does it happen?

A webpage using GPU.js running on my computer (Win10, Chrome)

How do we replicate the issue?

I created a Stackblitz to replitcate the issue:
https://stackblitz.com/edit/js-ztmz1t?devToolsHeight=33&file=index.js
(If the previous link doesn't work: https://js-ztmz1t.stackblitz.io )

How important is this (1-5)?

4

Expected behavior (i.e. solution)

The kernel runs without any error.

Lenguaje dominante
JavaScript
Estrellas
15.5k
Forks
663
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de gpujs/gpu.js

Todos los issues de gpujs/gpu.js

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.