Segmentation fault when you release the encoder if your pip environment has scipy==1.15.2
未關閉
@jantonguirao 已經在處理了。
開始於 2026年9月3日。
評估
這個 Issue 還沒有評估資料。
描述
bug
Version
0.4.1.21
Describe the bug.
My cuda version is 12.4. Here is a simple test example:
import cupy as cp
from nvidia import nvimgcodec
def test_encode():
encoder = nvimgcodec.Encoder()
test_image = cp.random.randint(0, 256, (1024, 1024, 1), dtype=cp.uint8)
nv_image = nvimgcodec.as_image(test_image)
encoder.write("test.jpg",
nv_image,
codec='jpeg')
if __name__ == "__main__":
test_encode()
print("Process exiting...")
My conda command:
conda create -n test3 python=3.12
pip install nvidia-nvimgcodec-cu12 cupy-cuda12x
everything is ok, but when you install scipy==1.15.2, there is a Segmentation fault when the test program is exiting.
Minimum reproducible example
Environment details
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
Relevant log output
python test.py
Process exiting...
Segmentation fault (core dumped)
Other/Misc.
No response
Check for duplicates
- I have searched the open bugs/issues and have found no duplicates for this bug report
- 主要語言
- Jupyter Notebook
- 星號
- 164
- 分支
- 26
- 平均合併
- 27 分鐘
- 30 天內合併 PR
- 1
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
NVIDIA/nvImageCodec 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 79/100
NVIDIA/nvImageCodec#65 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 72/100
NVIDIA/nvImageCodec#66 · 1 則留言 ·
-
難度 5/5 一週以上 新手友好度 38/100
NVIDIA/nvImageCodec#64 ·
-
nvjpeg2k error 3 (Bad jpeg) on valid JPEG 2000 aerial photos that OpenJPEG and ffmpeg decode identically可能已有人在做 @mkepa-nv 於 6 天前認領。 未關閉bug
NVIDIA/nvImageCodec#63 · 2 則留言 · 已指派 1 人 ·
-
難度 5/5 一週以上 新手友好度 8/100
NVIDIA/nvImageCodec#60 ·