Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

file descriptor leak #35

@andrew-ld

Description

@andrew-ld

Expected behavior
file should be closed

Current behavior
dont close files after command execution

To Reproduce
compile and install a debuggable application that use ffmpegkit

ex:
FFmpegKit.executeAsync("-hide_banner -y -f s16le -ar 16000 -i $pcmPath -ac 1 -c:a libvorbis -f ogg $oggPath")

now:
adb shell
run-as [package name]
lsof | grep [package name]

you will see that the input and output files remain open after command execution

Screenshots
Screenshot from 2021-04-27 15-05-29

^^leaked file descriptor

Environment

  • Platform: Android
  • Architecture: all
  • Version: 4.4 lts
  • Source branch: last commit (tanersener@46afc3f)
  • Android Studio version: 4.1.3
  • Android NDK version: 21.4.7075529

Metadata

Metadata

Assignees

Labels

androidAffect Android platformbugSomething isn't workingfixed-in-v4.5Fixed in release v4.5libraryAffects the libraryv4.4Affects v4.4 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions