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

Đang mở
#29 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

@jantonguirao đang làm issue này rồi.

Từ ngày 3/9/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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
Ngôn ngữ chính
Jupyter Notebook
Star
164
Fork
26
Merge trung bình
27 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA/nvImageCodec

Tất cả issue của NVIDIA/nvImageCodec

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.