Segmentation fault when you release the encoder if your pip environment has scipy==1.15.2

未关闭
#29 2 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NVIDIA/nvImageCodec 的其他 Issue

查看 NVIDIA/nvImageCodec 的全部 Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。