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 于 5 天前认领。 未关闭bug
NVIDIA/nvImageCodec#63 · 2 条评论 · 已指派 1 人 ·
-
难度 5/5 一周以上 新手友好度 8/100
NVIDIA/nvImageCodec#60 ·