[FFmpeg-trac] #8365(avdevice:new): AVFoundation video input hangs on iOS 12.4

FFmpeg trac at avcodec.org
Tue Nov 5 19:07:24 EET 2019


#8365: AVFoundation video input hangs on iOS 12.4
-------------------------------------+-------------------------------------
             Reporter:  ariankordi   |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avdevice
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
  avfoundation deadlock              |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by ariankordi):

 Replying to [comment:1 cehoyos]:
 > Is the issue reproducible with current FFmpeg git head, the only version
 supported here?
 Yes, I have just tried compiling the current `ffmpeg version
 N-95635-gcae7f6658c` and I get the exact same issue. I actually didn't
 omit --disable-debug this time and have a possibly more helpful backtrace:

 {{{
 ffmpeg version N-95635-gcae7f6658c Copyright (c) 2000-2019 the FFmpeg
 developers
   built with clang version 5.0.2
   configuration: --disable-everything --enable-indev=avfoundation --extra-
 cflags='-isysroot /User/iPhoneOS11.2.sdk' --extra-ldflags='-isysroot
 /User/iPhoneOS11.2.sdk' --disable-asm
 ...
 Applying option f (force format) with argument avfoundation.
 Successfully parsed a group of options.
 Opening an input file: 1:.
 [avfoundation @ 0x11c801800] 'Front Camera' opened
 Process 56289 stopped
 * thread #1: tid = 0x4c197, 0x000000020eccc0f4
 libsystem_kernel.dylib`mach_msg_trap + 8, queue = 'com.apple.main-thread',
 stop reason = signal SIGSTOP
     frame #0: 0x000000020eccc0f4 libsystem_kernel.dylib`mach_msg_trap + 8
 libsystem_kernel.dylib`mach_msg_trap:
 ->  0x20eccc0f4 <+8>: ret

 libsystem_kernel.dylib`mach_msg_overwrite_trap:
     0x20eccc0f8 <+0>: movn   x16, #0x1f
     0x20eccc0fc <+4>: svc    #0x80
     0x20eccc100 <+8>: ret
 (lldb) bt
 * thread #1: tid = 0x4c197, 0x000000020eccc0f4
 libsystem_kernel.dylib`mach_msg_trap + 8, queue = 'com.apple.main-thread',
 stop reason = signal SIGSTOP
   * frame #0: 0x000000020eccc0f4 libsystem_kernel.dylib`mach_msg_trap + 8
     frame #1: 0x000000020eccb5a0 libsystem_kernel.dylib`mach_msg + 72
     frame #2: 0x000000020f0cc120 CoreFoundation`__CFRunLoopServiceMachPort
 + 236
     frame #3: 0x000000020f0c7030 CoreFoundation`__CFRunLoopRun + 1360
     frame #4: 0x000000020f0c67c0 CoreFoundation`CFRunLoopRunSpecific + 436
     frame #5: 0x00000001040c5e34 ffmpeg_g`avf_read_header [inlined]
 get_video_config(s=<unavailable>) + 72 at avfoundation.m:575
     frame #6: 0x00000001040c5dec ffmpeg_g`avf_read_header(s=<unavailable>)
 + 7564 at avfoundation.m:927
     frame #7: 0x00000001040e5510
 ffmpeg_g`avformat_open_input(ps=0x000000016bd5eda8,
 filename=0x000000016bd5f70f, fmt=<unavailable>,
 options=0x000000011bd2ca38) + 740 at utils.c:633
     frame #8: 0x00000001040a6634
 ffmpeg_g`open_input_file(o=0x000000016bd5eeb0, filename=<unavailable>) +
 1408 at ffmpeg_opt.c:1105
     frame #9: 0x00000001040a5f48 ffmpeg_g`open_files(l=0x000000011bd2c528,
 inout=0x000000010419d86a, open_file=0x00000001040a60b4) + 288 at
 ffmpeg_opt.c:3283
     frame #10: 0x00000001040a5cfc
 ffmpeg_g`ffmpeg_parse_options(argc=<unavailable>, argv=<unavailable>) +
 156 at ffmpeg_opt.c:3323
     frame #11: 0x00000001040b7e84 ffmpeg_g`main(argc=11,
 argv=0x000000016bd5f538) + 204 at ffmpeg.c:4863
     frame #12: 0x000000020eb8a8e0 libdyld.dylib`start + 4
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8365#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list