dmlc / dmlc/decord

Segmentation fault (core dumped)

Open
#229 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.5k
Forks
232
PR merge metrics
No merged PRs in 30d

Description

Hi, I have built decord with 'Nvidia Codecs'. When I was trying to decode a video file, an 'Segmentation fault' error occurred in the middle of decoding.
Here is my test code:
```
videoPath="/data/Record/2022-01-20/badmp4/142_20220902200000.mp4"
try:
vr = VideoReader(videoPath, ctx=gpu(0))
#with open(videoPath, 'rb') as f:
# vr = VideoReader(f, ctx=gpu(0))
print("frame count:",len(vr))
for i in range(len(vr)):
if i % 5 != 0:
continue
frame = vr[i]
except Exception as e:
print(e)
print("err")
del vr
```
The decoding process was aborted by an exception, but no exception was caught:

```
root@xxx:# python mytest.py
[NULL @ 0x55b657a50920] too many layer_id_included_flags
[NULL @ 0x55b657a50920] missing picture in access unit
frame count: 45016
[NULL @ 0x55b657a50920] too many layer_id_included_flags
[NULL @ 0x55b657a50920] too many layer_id_included_flags
Segmentation fault (core dumped)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.