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

Unable to get osltoy working

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

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

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

評価

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

調査の方向性

USE_QT=ON および DISABLE_OSLTOY=OFF でビルドして問題を再現し、その後、サンプルシェーダーを指定して osltoy 実行ファイルを実行します。osltoy のエントリーポイントから調査を開始し、報告されている QLayout 警告とともに、シェーダーがコンパイルまたは実行されない理由を調べます。出力ウィンドウにシェーダーが一様なグレーで表示され、レイアウトエラーが発生しなければ完了です。

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

説明

Describe the bug

Building osltoy executable works, but it doesn't do anything when run. It opens the window, but shaders are neither compiled, nor run.

OSL version and dependencies

  • OSL branch/version: 1.13.12.0.2
  • OS: Rocky Linux release 9.4
  • C++ compiler: clang-15.0.7.3
  • LLVM version: llvm-15.0.7.1
  • OIIO version: OpenImageIO-2.4.13.0.4
  • Qt version: Qt-5.15.3.8

To Reproduce

Steps to reproduce the behavior:

  1. Build OSL with USE_QT=ON and DISABLE_OSLTOY=OFF
  2. Run the osltoy executable
  3. Image
  4. Whereas I expected the shader to show uniform grey in the output window.

Evidence

  • Error messages (paste them here exactly)
    QLayout: Attempting to add QLayout "" to OSL_v1_13::OSLToyMainWindow "", which already has a layout
  • Also during compilation I get the following warnings:
/scratch/dev/OpenShadingLanguage/src/testshade/optixgridrender.cpp:999:29: warning: variable 'i' set but not used [-Wunused-but-set-variable]
                for (size_t i = 0; !format_end_found; i++) {
                            ^
/scratch/dev/OpenShadingLanguage/src/testshade/optixgridrender.cpp:999:29: warning: variable 'i' set but not used [-Wunused-but-set-variable]
                for (size_t i = 0; !format_end_found; i++) {

These should be switched for while statements. I'll make a separate PR for this.

  • Example shader code (if applicable)
shader thing
(
  output color Cout = 0.5
)
{
}

It'd be great for someone else to confirm they can reproduce this behavior, thanks!

主要言語
C++
スター
2.3k
フォーク
414
平均マージ
2日 14時間
マージ済み PR(30日)
13

環境構築

はじめの一歩

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

AcademySoftwareFoundation/OpenShadingLanguage のほかの issue

AcademySoftwareFoundation/OpenShadingLanguage の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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