AbedElazizShe / light_compressor

A powerful and easy-to-use video compression plugin for Flutter.
MIT License
59 stars 34 forks source link

iOS App is force closing once the compressVideo method is called #9

Closed Letalus closed 3 years ago

Letalus commented 3 years ago

I have a picked video from the image picker. Now once I call LightCompressor.compressVideo following error appears and force closes the app:

` Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: ' -[AVAssetReader startReading] cannot be called again after reading has already started' *** First throw call stack: (0x19d2b186c 0x1b22cac50 0x1a4df1fe8 0x10498f040 0x10498f4c0 0x10498f570 0x19cea424c 0x19cea5db0 0x19cead10c 0x19ceadc5c 0x19ceb7d78 0x1e8d5d814 0x1e8d6476c) libc++abi.dylib: terminating with uncaught exception of type NSException

AbedElazizShe commented 3 years ago

@Letalus thank you for opening this issue and sorry for the late reply. I am working on this issue which was reported in the swift package https://github.com/AbedElazizShe/LightCompressor_iOS/issues/1. I will notify here when fixed.

Letalus commented 3 years ago

hey @AbedElazizShe thanks for the update. It seems like the issue has been fixed within the iOS side. Have you been already able to export those fixes to the flutter package? Thanks again for your effort.

Kind regards, Chris