Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#5042 closed defect (invalid)

Bad_access while decoding camera stream video frame using FFMpeg iOS

Reported by: Irfan Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: crash
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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.

Attachments (2)

bad_access_log.rtf (20.0 KB ) - added by Irfan 8 years ago.
kisafa 22-11-2015, 12-19 PM.crash (53.3 KB ) - added by Irfan 8 years ago.

Download all attachments as: .zip

Change History (9)

by Irfan, 8 years ago

Attachment: bad_access_log.rtf added

comment:1 by Irfan, 8 years ago

bad_access_log is log file contains messages, kisafa 22-11-2015, 12-19 PM.crash​ is crash log contains backtrace ..

comment:2 by Irfan, 8 years ago

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

comment:3 by Carl Eugen Hoyos, 8 years ago

Analyzed by developer: unset
Keywords: crash added
Priority: criticalimportant
Reproduced by developer: unset

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.

comment:5 by Carl Eugen Hoyos, 8 years ago

Resolution: needs_more_info
Status: newclosed

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.

comment:7 by llogan, 8 years ago

Resolution: needs_more_infoinvalid

Apparently resolved by updating the headers and changing from the deprecated avcodec_alloc_frame() to av_frame_alloc().

Note: See TracTickets for help on using tickets.