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

strict_differential: the pixel differential is silently off because its renderer probe expects 1 and gfx_open returns true

オープン 初心者向け
#1,825 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
c, shell

調査の方向性

tools/strict_differential.shの1593行目付近にあるrendererプローブの比較から始め、tests/test_asan_gfx.shは関連する背景情報としてのみ確認してください。その部分は#1723に属します。falseの場合のみピクセルの同一性を無効にし、trueの場合は差分テストを実行し、それ以外の出力では失敗するようにスクリプトを更新してください。動作するrendererでピクセル行が実行されることと、意図的に仕込んだgfx_readの不具合によってスクリプトがゼロ以外の終了コードで終了することを確認してください。

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

説明

area:gates area:gfx found-by:critic kind:gate-defect

Found while verifying the #1758 R1.2 builder's fix on PR #1776 (phase2-numbers, commit 95ce2fed). On main, nothing has changed.

Since gfx_open returns a bool (#1637), print of (gfx_open of [8, 8, "pixdiff-probe"]) prints true. tools/strict_differential.sh:1593 still compares the probe's last line with "1". So on a machine with a working renderer it sets NO_RENDERER=1, prints NOTE: no renderer — pixel identity is OFF, and finishes OK without running the pixel differential.

Checked on main 0740af03: the probe prints true on Xvfb :99 and with SDL_VIDEODRIVER=dummy. The line is unchanged on origin/main 540f0bcf.

The builder's one-time plant on the branch: a pixel fault in gfx_read passed the old checker (exit 0, pixel rows skipped) and failed the fixed one (37/37 pixel rows differing).

tests/test_asan_gfx.sh's grep "sdl-present: 1" has the same cause; that half is #1723.

Done when

  • On main, tools/strict_differential.sh runs its pixel differential whenever the probe prints true, and fails, rather than reporting "no renderer", on any probe output other than true or false.
  • Planted fault, in the PR: a pixel fault in gfx_read makes tools/strict_differential.sh exit nonzero on a machine with a renderer; restored, it exits 0 with the pixel rows counted.
主要言語
C
スター
3
フォーク
7
平均マージ
11時間 28分
マージ済み PR(30日)
262

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

InauguralSystems/EigenScript のほかの issue

InauguralSystems/EigenScript の issue をすべて見る

似ている issue

C の issue をもっと見る

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

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