Opened 5 months ago

Last modified 5 months ago

#6225 new defect

FFMPEG leaks memory in iOS devices

Reported by: himanshuuce Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: leak
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Recently(2 days back), I have downloaded the FFMPEG from url: git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg

and used shell script to get library. And used the library in our app but for some type of video we have observed memory leak in iDevices.


Observed following console message:
Path: http://172.25.63.1/cache/A2148255DEADBEEFFEEDFACEDEADBEEF00000000000000000000000000000000/myconnect/Movie/Make%20the%20Yuletide%20Gay%20(2009).avi
Opening
Opened
[mpeg4 @ 0x10b3eda00] Video uses a non-standard and wasteful way to store B-frames ('packed B-frames'). Consider using a tool like VirtualDub? or avidemux to fix it.
avcodec_find_decoder mpeg4
extract_metadata
extract_metadata
extract_metadata
[mpeg4 @ 0x10c852e00] Video uses a non-standard and wasteful way to store B-frames ('packed B-frames'). Consider using a tool like VirtualDub? or avidemux to fix it.
release


Uploaded the Sample video file, Script used to get library for iOS devices and extracted FFMPEG iOS library at: https://drive.google.com/open?id=0B5Um815W_5kocXFPdlJJVHFvazg

Please let us know if more information is required.

Change History (4)

comment:1 in reply to: ↑ description ; follow-up: Changed 5 months ago by cehoyos

  • Keywords leak added; Memory Leak iOS devices removed
  • Priority changed from important to normal

Replying to himanshuuce:

Recently(2 days back), I have downloaded the FFMPEG from url: git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg

Why don't you test today's version?

and used shell script to get library.

Scripts are generally not supported (and this is even more true for ios scripts, so far every such script looked broken).

And used the library in our app but for some type of video we have observed memory leak in iDevices.

Please provide valgrind (or equivalent) output for all leak reports.

Also please explain why the issue is not reproducible on desktop operating systems.
(I assume you wouldn't report this as an ios issue if it were reproducible on osx or Linux.)

comment:2 in reply to: ↑ 1 Changed 5 months ago by himanshuuce

Replying to cehoyos:

Replying to himanshuuce:

Recently(2 days back), I have downloaded the FFMPEG from url: git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg

Why don't you test today's version?

I can try the latest version but the issue is observed in multiple earlier releases.

and used shell script to get library.

Scripts are generally not supported (and this is even more true for ios scripts, so far every such script looked broken).

Please do let us know if we have any alternative to get library for iOS devices.

And used the library in our app but for some type of video we have observed memory leak in iDevices.

Please provide valgrind (or equivalent) output for all leak reports.

We'll look for it and provide the report.

Also please explain why the issue is not reproducible on desktop operating systems.
(I assume you wouldn't report this as an ios issue if it were reproducible on osx or Linux.)

Basically we have iOS app only and have not tried on osx or Linux desktop.

comment:3 Changed 5 months ago by himanshuuce

I have tried the latest release but issue persists.

I have uploaded the Memory leak video (name: XcodeMemoryLeakVideo?.mov) captured from Leak instrument in Xcode at: https://drive.google.com/open?id=0B5Um815W_5kocXFPdlJJVHFvazg

Also please let us know if we have any alternative to Shell Scripts to generate/get library for iOS devices or more information is required.

Last edited 5 months ago by himanshuuce (previous) (diff)

comment:4 Changed 5 months ago by himanshuuce

One importance information is that this leak happens if we try to thumbnail the video item.

Note: See TracTickets for help on using tickets.