Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở Phù hợp với người mới
#1,825 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c, shell
Lĩnh vực
build-system, testing-qa

Hướng nghiên cứu

Bắt đầu với phần so sánh phép thăm dò renderer gần dòng 1593 trong tools/strict_differential.sh, sau đó chỉ xem lại tests/test_asan_gfx.sh như ngữ cảnh liên quan vì phần đó thuộc về #1723. Cập nhật script để chỉ false tắt tính đồng nhất pixel, true chạy kiểm thử vi sai và mọi đầu ra khác đều gây lỗi. Xác minh rằng các hàng pixel chạy trên renderer hoạt động bình thường và một lỗi được cố ý cài vào gfx_read khiến script thoát với mã khác không.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
C
Star
3
Fork
7
Merge trung bình
11 giờ 16 phút
Pull request đã merge (30 ngày)
267

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của InauguralSystems/EigenScript

Tất cả issue của InauguralSystems/EigenScript

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.