Skip to content

Bug: Android 16 / Vivo V2348 - Video compression fails with Invalid to call at Released state #409

@sagarpaliwal112

Description

@sagarpaliwal112

Environment
react-native-compressor: 2.0.2 / Occurring on 1.11.0 as well
React Native: 0.85.2
Android: 16 (API 36)
Device: Vivo V2348
Source: react-native-image-picker
Video format: MP4
Video dimensions: 1080x1440
Duration: 7.56s
File size: ~2 MB

Description

Video compression consistently fails on a Vivo V2348 running Android 16 (API 36).

The same video compresses successfully on:

iOS devices
Android emulators
Other Android devices tested

The issue appears to be device-specific.

Reproduction

Pick a video using react-native-image-picker.
Compress using Video.compress(...).
Compression fails with:

Error

java.lang.Throwable: Invalid to call at Released state; only valid in executing state at com.reactnativecompressor.Utils.Utils$compressVideo$1.onFailure(Utils.kt:64) at com.reactnativecompressor.Video.VideoCompressor.VideoCompressorClass$doVideoCompression$1.invokeSuspend(VideoCompressorClass.kt:92)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions