bug: Nuke crash when using OIIO to read or write images

Aperta
#5,493 16 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

  • #5504 di @kg290 — chiusa senza merge
  • #5601 di @mvanhorn — chiusa senza merge

Valutazione

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

Direzione di ricerca

Start by reproducing the crash with the Nuke 17.0v1 Python command and the pip-installed OpenImageIO 3.1.17.0 build on Windows, then compare it with the standalone Python result. Trace the Windows image-write path and Python/Nuke integration; done means writing the test JPEG no longer crashes Nuke and produces a valid image.

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

Descrizione

bug python

Describe the bug

We noticed that the pip OIIO builds cause Nuke to crash when reading or writing images.
This only seems to happen on Windows. On Linux we haven't seen this issue yet.
Also with a very old self compiled OIIO build we didn't have this problem.

We can reproduce this crash in Nuke 17.0v1 and OIIO 3.1.17.0 (Python 3.11, installed from pip) on Windows 11.

OpenImageIO version and dependencies

oiiotool --buildinfo:

OIIO 3.1.17.0 | Windows/x86_64
Build compiler: MSVS 1944 | C++17/199711
HW features enabled at build: sse2
No CUDA support (disabled / unavailable at build time)
Dependencies: BZip2 NONE, DCMTK NONE, expat 2.6.3, FFmpeg NONE, fmt 12.1.0, Freetype 2.14.1, GIF 5.2.1, Imath 3.1.10,
JPEG 80, JXL NONE, libdeflate 1.23, libdeflate 1.23, Libheif NONE, libjpeg-turbo 3.1.2, LibRaw NONE, libuhdr 1.4.0,
minizip-ng 4.0.10, OpenColorIO 2.5.1, OpenCV NONE, OpenEXR 3.3.5, OpenGL, OpenJPEG 2.5.4, openjph NONE, PNG 1.6.50,
Ptex NONE, Ptex NONE, pybind11 3.1.0, pystring NONE, Python3 3.11.9, Qt5 NONE, Qt6 NONE, Robinmap 1.4.0, TBB NONE,
TIFF 4.7.1, WebP 1.6.0, yaml-cpp 0.8.0, ZLIB 1.3.1, ZLIB 1.3.1

No custom plugins loaded in Nuke.

To Reproduce

Steps to reproduce the behavior:

  1. Install OIIO in an empty folder:
    "C:\Program Files\Nuke17.0v1\python.exe" -m pip install OpenImageIO -t D:/tmp/nukeoiio

  2. Open Nuke and in the Script Editor run this:

sys.path.append(r"D:\tmp\nukeoiio")

import OpenImageIO as oiio
buf = oiio.ImageBuf(oiio.ImageSpec(1024, 1024, 3, oiio.UINT16))
buf.write("D:/tmp/test.jpg")```

3. Nuke will close without error and show the submit report to Foundry window. The image file got created with 0kb, so it probably crashed just before writing to it. Running the same python command in a standalone python shell creates the image just fine.
Lingua principale
C++
Stelle
2.4k
Fork
727
Merge medio
4g 8h
PR unite (30g)
67

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/OpenImageIO

Tutte le issue di AcademySoftwareFoundation/OpenImageIO

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.