Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Heavily dependent functions throw Error: no matching overloaded function found

オープン
#785 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript

調査の方向性

リンクされている StackBlitz の再現環境から始め、報告された 457 行目付近の生成されたフラグメントシェーダーを調査し、vecDotProduct とそれに依存するベクトル関数がどのように出力されるかに注目してください。カーネルの実行中に関数の依存関係とオーバーロード解決を追跡します。再現したカーネルが no-matching-overloaded-function エラーなしで実行されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
JavaScript
スター
15.5k
フォーク
663
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

gpujs/gpu.js のほかの issue

gpujs/gpu.js の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。