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.

Calling FFmpegKit cancel method 4 times kills the application #129

@tanersener

Description

@tanersener

Description
Calling FFmpegKit.cancel() 4 times, without any parameters kills the application.

Expected behavior
None of the API methods should cause the application to crash.

Current behavior
Application crashes.

To Reproduce
Call FFmpegKit.cancel() 4 times, without any method parameters.

Expected behavior
No crash.

Logs
No logs are printed to console.

Environment

  • Platform: Android
  • Architecture: arm-v7a, arm-v7a-neon, arm64-v8a, x86, x86_64
  • Version: v4.4
  • Android Studio version: 2020.3.1
  • Android NDK version: r22b

Other
The issue was discovered on Android but it affects all platforms. Initial investigation show that the sigterm_handler method is responsible of that crash. The implementation coming from ffmpeg calls the exit method on the 4th call. See sigterm_handler method.

Metadata

Metadata

Assignees

Labels

androidAffect Android platformappleAffect Apple platformsbugSomething 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