[FFmpeg-trac] #6058(undetermined:new): cuvid: Transcoding hangs after several files processed
FFmpeg
trac at avcodec.org
Mon Jan 9 14:03:29 EET 2017
#6058: cuvid: Transcoding hangs after several files processed
-------------------------------------+-------------------------------------
Reporter: slomkowski | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: git-master | undetermined
Keywords: nvenc | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by slomkowski):
I just managed to create TS file sample, which hangs ffmpeg on first call.
I include the file and the log (note: lines with single numbers in log are
from my debug printfs).
`nvidia-smi dmon` log:
{{{
# gpu pwr temp sm mem enc dec mclk pclk
# Idx W C % % % % MHz MHz
0 23 38 0 0 0 0 3304 1139
0 25 39 0 0 0 0 3304 1139
0 25 39 0 0 0 0 3304 1139
0 25 39 0 0 0 0 3304 1139
0 27 39 3 4 4 8 3304 1139
0 27 39 0 0 10 22 3304 1139
0 35 40 0 0 7 46 3304 1404
0 35 40 0 0 5 62 3304 1404
0 35 41 0 0 3 74 3304 1404
0 35 41 0 0 2 82 3304 1404
0 35 41 0 0 2 87 3304 1404
0 35 41 0 0 1 91 3304 1404
0 35 41 0 0 1 94 3304 1404
0 35 41 0 0 0 96 3304 1404
0 35 41 0 0 0 97 3304 1404
0 35 42 0 0 0 98 3304 1404
0 35 42 0 0 0 99 3304 1404
0 35 42 0 0 0 99 3304 1404
0 35 42 0 0 0 99 3304 1404
0 35 42 0 0 0 99 3304 1404
0 35 42 0 0 0 100 3304 1404
0 35 42 0 0 0 100 3304 1404
0 35 42 0 0 0 100 3304 1404
0 35 42 0 0 0 100 3304 1404
}}}
`nvidia-smi pmon` log:
{{{
# gpu pid type sm mem enc dec command
# Idx # C/G % % % % name
0 1781 C 0 0 0 99 ffmpeg
0 1781 C 0 0 0 99 ffmpeg
}}}
Replying to [comment:2 cehoyos]:
> Please provide a backtrace.
This time, I managed to attach ffmpeg to gdb. This is backtrace:
{{{
(gdb) attach 1731
(gdb) bt
}}}
{{{
#0 0x00007f18fd106aed in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007f18f3bf7367 in ?? () from /usr/lib/x86_64-linux-
gnu/libnvcuvid.so.1
#2 0x00007f18f3bf9ae9 in ?? () from /usr/lib/x86_64-linux-
gnu/libnvcuvid.so.1
#3 0x00007f18f3be631e in ?? () from /usr/lib/x86_64-linux-
gnu/libnvcuvid.so.1
#4 0x00007f18f3beb5a7 in ?? () from /usr/lib/x86_64-linux-
gnu/libnvcuvid.so.1
#5 0x00007f18f3be97d4 in cuvidDestroyDecoder () from /usr/lib/x86_64
-linux-gnu/libnvcuvid.so.1
#6 0x000000000042496f in cuvid_decode_end ()
#7 0x000000000044b5dc in avcodec_close ()
#8 0x00000000004a2e56 in transcode ()
#9 0x0000000000483125 in main ()
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6058#comment:12>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list