Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Unable to get osltoy working

Aperta
#2,035 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp

Direzione di ricerca

Riproduci il problema compilando con USE_QT=ON e DISABLE_OSLTOY=OFF, quindi esegui l’eseguibile osltoy con lo shader di esempio. Inizia dall’entry point di osltoy e indaga sul motivo per cui lo shader non viene compilato o eseguito insieme all’avviso QLayout segnalato. Il lavoro è completato quando lo shader viene visualizzato in grigio uniforme nella finestra di output senza l’errore di layout.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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!

Lingua principale
C++
Stelle
2.3k
Fork
415
Merge medio
2g 14h
PR unite (30g)
13

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AcademySoftwareFoundation/OpenShadingLanguage

Tutte le issue di AcademySoftwareFoundation/OpenShadingLanguage

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.