Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#2995 closed defect (fixed)

flic: deadlock with forced codec

Reported by: ami_stuff Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: flic deadlock
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

http://samples.mplayerhq.hu/V-codecs/MVI2/real-3.avi

(gdb) r -vcodec flic -threads 1 -i v/real-3.avi -an -f null -
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /media/sdb1/ffmpeg-HEAD-93439e8/ffmpeg_g -vcodec flic -threads 1 -i v/real-3.avi -an -f null -
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
ffmpeg version 2.0-93439e8 Copyright (c) 2000-2013 the FFmpeg developers
  built on Sep 18 2013 23:23:15 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --disable-yasm --enable-gpl --disable-ffprobe --disable-ffserver
  libavutil      52. 44.100 / 52. 44.100
  libavcodec     55. 31.101 / 55. 31.101
  libavformat    55. 18.100 / 55. 18.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 86.101 /  3. 86.101
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Guessed Channel Layout for  Input Stream #0.1 : mono
Input #0, avi, from 'v/real-3.avi':
  Duration: 00:00:25.76, start: 0.000000, bitrate: 1628 kb/s
    Stream #0:0: Video: flic ([0][2]i2 / 0x32690200), pal8, 320x236, 14.99 tbr, 14.99 tbn, 14.99 tbc
    Metadata:
      title           : Motion Pixels MVI2 Codec -- Video #1
    Stream #0:1: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 11025 Hz, mono, u8, 88 kb/s
    Metadata:
      title           : Motion Pixels MVI2 Codec -- Audio #1
[New Thread 0xb7df8b70 (LWP 30737)]
[New Thread 0xb75f8b70 (LWP 30756)]
[New Thread 0xb6df8b70 (LWP 30757)]
[New Thread 0xb65f8b70 (LWP 30758)]
[New Thread 0xb5df8b70 (LWP 30759)]
[New Thread 0xb55f8b70 (LWP 30760)]
[New Thread 0xb4df8b70 (LWP 30761)]
[New Thread 0xb45f8b70 (LWP 30762)]
[New Thread 0xb3df8b70 (LWP 30763)]
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf55.18.100
    Stream #0:0: Video: rawvideo, pal8, 320x236, q=2-31, 200 kb/s, 90k tbn, 14.99 tbc
    Metadata:
      title           : Motion Pixels MVI2 Codec -- Video #1
Stream mapping:
  Stream #0:0 -> #0:0 (flic -> rawvideo)
Press [q] to stop, [?] for help
[flic @ 0x9115700] Unrecognized chunk type: 0
    Last message repeated 2038 times
[null @ 0x911aa40] Encoder did not produce proper pts, making some up.
[flic @ 0x9115700] Invalid chunk_size = 4164419813 > frame_size = 36024
[flic @ 0x9115700] Unrecognized chunk type: 256
[flic @ 0x9115700] Invalid chunk_size = 3670479 > frame_size = 46276
[flic @ 0x9115700] Unrecognized chunk type: 35712
[flic @ 0x9115700] Processed FLI chunk where chunk size = 46712 and final chunk ptr = 16
[flic @ 0x9115700] Invalid chunk_size = 1079246592 > frame_size = 744
[flic @ 0x9115700] Unrecognized chunk type: 31230
[flic @ 0x9115700] Invalid chunk_size = 4164420085 > frame_size = 49768
[flic @ 0x9115700] Unrecognized chunk type: 256
[flic @ 0x9115700] Unrecognized chunk type: 0
    Last message repeated 128855 times
[flic @ 0x9115700] Unrecognized chunk type: 0:00.53 bitrate=N/A    
    Last message repeated 64427 times
[flic @ 0x9115700] Unrecognized chunk type: 0:00.60 bitrate=N/A    
    Last message repeated 64427 times
[flic @ 0x9115700] Unrecognized chunk type: 0:00.66 bitrate=N/A    
    Last message repeated 52927 times
Program received signal SIGINT, Interrupt.
0xb7ef9941 in write () at ../sysdeps/unix/syscall-template.S:82
82	../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) bt
#0  0xb7ef9941 in write () at ../sysdeps/unix/syscall-template.S:82
#1  0xb7ea06c4 in _IO_new_file_write (f=0xb7f7e560, data=0xbfffbab0, n=38)
    at fileops.c:1276
#2  0xb7ea036f in new_do_write (fp=0xb7f7e560, 
    data=0xbfffbab0 "    Last message repeated 52927 times\r\r", to_do=38)
    at fileops.c:530
#3  0xb7ea0616 in _IO_new_file_xsputn (f=0xb7f7e560, data=0xbfffbab0, n=38)
    at fileops.c:1370
#4  0xb7e786a8 in buffered_vfprintf (s=0xb7f7e560, format=<optimized out>, 
    args=<optimized out>) at vfprintf.c:2310
#5  0xb7e73833 in _IO_vfprintf_internal (s=0xb7f7e560, 
    format=0x8a5f9e4 "    Last message repeated %d times\r", 
    ap=0xbfffe148 "\277", <incomplete sequence \316>) at vfprintf.c:1309
#6  0xb7e7d8df in __fprintf (stream=0xb7f7e560, 
    format=format@entry=0x8a5f9e4 "    Last message repeated %d times\r")
    at fprintf.c:33
#7  0x0886df3e in av_log_default_callback (ptr=0x9115700, level=16, 
    fmt=0x8933dcf "Unrecognized chunk type: %d\n", vl=0xbffff1ac "")
    at libavutil/log.c:236
#8  0x0886e192 in av_vlog (vl=0xbffff1ac "", 
    fmt=0x8933dcf "Unrecognized chunk type: %d\n", level=<optimized out>, 
    avcl=0x9115700) at libavutil/log.c:272
#9  av_log (avcl=avcl@entry=0x9115700, level=<optimized out>, level@entry=16, 
---Type <return> to continue, or q <return> to quit---
    fmt=fmt@entry=0x8933dcf "Unrecognized chunk type: %d\n")
    at libavutil/log.c:265
#10 0x0834b35f in flic_decode_frame_8BPP (buf_size=56, buf=0x911c8a0 "\003", 
    got_frame=0xbffff4d4, data=0x9117080, avctx=0x9115700)
    at libavcodec/flicvideo.c:440
#11 flic_decode_frame (avctx=0x9115700, data=0x9117080, got_frame=0xbffff4d4, 
    avpkt=0xbffff278) at libavcodec/flicvideo.c:772
#12 0x0867a55e in avcodec_decode_video2 (avctx=0x9115700, 
    picture=picture@entry=0x9117080, 
    got_picture_ptr=got_picture_ptr@entry=0xbffff4d4, 
    avpkt=avpkt@entry=0xbffff720) at libavcodec/utils.c:1995
#13 0x080b394d in decode_video (ist=ist@entry=0x91173a0, 
    pkt=pkt@entry=0xbffff720, got_output=got_output@entry=0xbffff4d4)
    at ffmpeg.c:1668
#14 0x080b786a in output_packet (pkt=0xbffff6b8, ist=0x91173a0)
    at ffmpeg.c:1866
#15 process_input (file_index=2) at ffmpeg.c:3089
#16 0x080a3043 in transcode_step () at ffmpeg.c:3185
#17 transcode () at ffmpeg.c:3237
#18 main (argc=<optimized out>, argv=<optimized out>) at ffmpeg.c:3415
(gdb) 

Change History (2)

comment:1 by Elon Musk, 11 years ago

Component: undeterminedavcodec
Keywords: deadlock added
Priority: normalimportant
Reproduced by developer: set
Resolution: fixed
Status: newclosed
Version: unspecifiedgit-master

comment:2 by Carl Eugen Hoyos, 11 years ago

Keywords: flic added
Note: See TracTickets for help on using tickets.