Rust-GPU / Rust-GPU/rust-gpu

[Migrated] spirv-tools: Assertion `env != SPV_ENV_WEBGPU_0' failed.(my bug report)

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

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

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

説明

Issue automatically imported from old repo: https://github.com/EmbarkStudios/rust-gpu/issues/1141
Old labels: t: bug
Originally creatd by sirati on 2024-04-05T23:00:44Z


rustc: spirv-tools/source/opt/optimizer.cpp:66: spvtools::Optimizer::Optimizer(spv_target_env): Assertion `env != SPV_ENV_WEBGPU_0' failed.

Expected Behaviour

properly compiling

Example & Steps To Reproduce

researching this. so far i have nothing but stub methods in my project and this still triggers. dont know if this is a portable bug yet.

System Info

  • Rust: rustc 1.71.0-nightly (1a5f8bce7 2023-05-26)
  • OS: PopOS
  • GPU: Intel(R) UHD Graphics 630
  • SPIR-V: apparently not installed, but it cann still run spirv-tools code?!?!??! Installing did not help

Backtrace

Backtrace

/home/sirati/.cargo/bin/cargo check --message-format json --workspace --all-targets -Z unstable-options --keep-going
    Checking ahash v0.8.11
    Checking hashbrown v0.14.3
    Checking indexmap v2.2.6
    Checking gpu-descriptor v0.2.4
    Checking naga v0.19.2
    Checking civ3-renderer-shaders v0.1.0 (/home/sirati/RustroverProjects/Civ3Renderer/shaders)
   Compiling Civ3Renderer v0.1.0 (/home/sirati/RustroverProjects/Civ3Renderer)
    Checking wgpu-hal v0.19.3
    Checking wgpu-core v0.19.3
    Checking wgpu v0.19.3
error: failed to run custom build command for `Civ3Renderer v0.1.0 (/home/sirati/RustroverProjects/Civ3Renderer)`
error: failed to run custom build command for `Civ3Renderer v0.1.0 (/home/sirati/RustroverProjects/Civ3Renderer)`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.
Caused by:
  process didn't exit successfully: `/home/sirati/RustroverProjects/Civ3Renderer/target/debug/build/Civ3Renderer-da0432a522988ca8/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=RUSTGPU_CODEGEN_ARGS
  cargo:rerun-if-env-changed=RUSTGPU_RUSTFLAGS
  --- stderr
     Compiling civ3-renderer-shaders v0.1.0 (/home/sirati/RustroverProjects/Civ3Renderer/shaders)
  rustc: spirv-tools/source/opt/optimizer.cpp:66: spvtools::Optimizer::Optimizer(spv_target_env): Assertion `env != SPV_ENV_WEBGPU_0' failed.
  error: could not compile `civ3-renderer-shaders` (lib)
  Error: BuildFailed

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

まず Civ3Renderer の例で報告されている cargo check コマンドを実行し、記載されている Rust および PopOS 環境で失敗を再現できるか確認します。カスタムビルドコマンドを通じて shader のビルドを追跡し、spirv-tools/source/opt/optimizer.cpp の assertion まで確認します。プロジェクトが対応している場合は、絞り込んだ再現手順またはテストを用意したうえで、移植可能な原因を特定し、コンパイルを復旧できれば完了です。

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

評価

技術スタック
rust
領域
compilers, computer-graphics
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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