#5042(avcodec:new): Bad_access while decoding camera stream video frame using FFMpeg iOS
#5042: Bad_access while decoding camera stream video frame using FFMpeg iOS ----------------------------------+-------------------------------------- Reporter: irfangul | Type: defect Status: new | Priority: critical Component: avcodec | Version: git-master Keywords: | Blocked By: Blocking: | Reproduced by developer: 1 Analyzed by developer: 1 | ----------------------------------+-------------------------------------- Summary of the bug: I have an app, In which I am decoding video frames coming from ip camera, but the method avcodec_decode_video2(m_pCodecCtx, m_pFrame, &consumed_bytes, &avpkt); present in avcodec.h/ avcodec.a generating bad_access. I am using static libraries generated using the script https://github.com/kewlbear/FFmpeg-iOS-build-script Libraries can be found here: https://downloads.sourceforge.net/project /ffmpeg-ios/ffmpeg-ios-master.tar.bz2, I can't figure out what is wrong. How to reproduce: open stream from camera , This issue was reported by someone else earlier Ticket# 3374 but marked close due to lack of information. logs and back trace can be found here: http://stackoverflow.com/questions/33941165/error-while-decoding-camera- stream-video-frame-using-ffmpeg-ios. You can see in snapshot Thread# 27 backtrace the last clue is point to ff_h264_decode_nal . I am using latest static libraries build on FFmpeg 2.8.2 . built on Xcode 6.4+ with arm64 support for iOS static library using the script https://github.com/kewlbear/FFmpeg-iOS-build-script... Let me know If you want something else. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5042> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5042: Bad_access while decoding camera stream video frame using FFMpeg iOS ------------------------------------+----------------------------------- Reporter: irfangul | Owner: Type: defect | Status: new Priority: critical | Component: avcodec Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 1 Analyzed by developer: 1 | ------------------------------------+----------------------------------- Comment (by irfangul): bad_access_log is log file contains messages, kisafa 22-11-2015, 12-19 PM.crash is crash log contains backtrace .. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5042#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5042: Bad_access while decoding camera stream video frame using FFMpeg iOS ------------------------------------+----------------------------------- Reporter: irfangul | Owner: Type: defect | Status: new Priority: critical | Component: avcodec Version: git-master | Resolution: Keywords: | Blocked By: Blocking: | Reproduced by developer: 1 Analyzed by developer: 1 | ------------------------------------+----------------------------------- Comment (by irfangul): Also I want to info that code was working flawlessly with older version of libraries .a files that didn't support arm64 but when I updated libraries its giving bad_access -- Ticket URL: <https://trac.ffmpeg.org/ticket/5042#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5042: Bad_access while decoding camera stream video frame using FFMpeg iOS ------------------------------------+----------------------------------- Reporter: irfangul | Owner: Type: defect | Status: new Priority: important | Component: avcodec Version: git-master | Resolution: Keywords: crash | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+----------------------------------- Changes (by cehoyos): * analyzed: 1 => 0 * keywords: => crash * reproduced: 1 => 0 * priority: critical => important Comment: Please do not set the ticket flags randomly. This ticket is currently missing all necessary information, I don't see a useful backtrace in the crash file: It does not contain any FFmpeg function name. Please test current FFmpeg git head and please provide a backtrace, disassembly and register dump as explained on https://ffmpeg.org/bugreports.html If you believe this issue is a regression (if it worked fine with older versions of FFmpeg) please provide the change that introduced the problem. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5042#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5042: Bad_access while decoding camera stream video frame using FFMpeg iOS ------------------------------------+----------------------------------- Reporter: irfangul | Owner: Type: defect | Status: new Priority: important | Component: avcodec Version: git-master | Resolution: Keywords: crash | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+----------------------------------- Comment (by irfangul): Crash Log : http://crashes.to/s/6765d63b540 -- Ticket URL: <https://trac.ffmpeg.org/ticket/5042#comment:4> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5042: Bad_access while decoding camera stream video frame using FFMpeg iOS -------------------------------------+------------------------------------- Reporter: irfangul | Owner: Type: defect | Status: closed Priority: important | Component: avcodec Version: git-master | Resolution: Keywords: crash | needs_more_info Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Changes (by cehoyos): * status: new => closed * resolution: => needs_more_info Comment: Please reopen this ticket if you can provide backtrace, disassembly and register dump as explained on https://ffmpeg.org/bugreports.html or if you can provide source code that allows to reproduce the issue or if you can find the change introducing the regression. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5042#comment:5> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5042: Bad_access while decoding camera stream video frame using FFMpeg iOS -------------------------------------+------------------------------------- Reporter: irfangul | Owner: Type: defect | Status: closed Priority: important | Component: avcodec Version: git-master | Resolution: Keywords: crash | needs_more_info Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by irfangul): I resolved this issue check http://stackoverflow.com/questions/33941165 /error-while-decoding-camera-stream-video-frame-using-ffmpeg-ios. hope it will help someone else. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5042#comment:6> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5042: Bad_access while decoding camera stream video frame using FFMpeg iOS ------------------------------------+----------------------------------- Reporter: irfangul | Owner: Type: defect | Status: closed Priority: important | Component: avcodec Version: git-master | Resolution: invalid Keywords: crash | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+----------------------------------- Changes (by llogan): * resolution: needs_more_info => invalid Comment: Apparently resolved by updating the headers and changing from the deprecated `avcodec_alloc_frame()` to `av_frame_alloc()`. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5042#comment:7> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg