Opened 8 years ago
Last modified 8 years 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)
follow-up: 2 comment:1 by , 8 years ago
Keywords: | leak added; Memory Leak iOS devices removed |
---|---|
Priority: | important → normal |
comment:2 by , 8 years ago
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 by , 8 years ago
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.
comment:4 by , 8 years ago
One importance information is that this leak happens if we try to thumbnail the video item.
Replying to himanshuuce:
Why don't you test today's version?
Scripts are generally not supported (and this is even more true for ios scripts, so far every such script looked broken).
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.)