jonataslaw / VideoCompress

Compress videos, remove audio, manipulate thumbnails, and make your video compatible with all platforms through this lightweight and efficient library.
MIT License
230 stars 279 forks source link

[iOS CRASH] Fatal error: Unexpectedly found nil while unwrapping an Optional value #282

Open bladeofgod opened 1 month ago

bladeofgod commented 1 month ago

hi, I'm using this plugin for compress target video, and got a crash with log below:

video_compress/SwiftVideoCompressPlugin.swift:203: Fatal error: Unexpectedly found nil while unwrapping an Optional value
video_compress/SwiftVideoCompressPlugin.swift:203: Fatal error: Unexpectedly found nil while unwrapping an Optional value
* thread #1, queue = 'com.apple.main-thread', stop reason = Fatal error: Unexpectedly found nil while unwrapping an Optional value
    frame #0: 0x00000001c25a2458 libswiftCore.dylib`_swift_runtime_on_report
libswiftCore.dylib`:
->  0x1c25a2458 <+0>: ret    
libswiftCore.dylib`:
    0x1c25a245c <+0>: b      0x1c25a2458               ; _swift_runtime_on_report
libswiftCore.dylib`:
    0x1c25a2460 <+0>: adrp   x8, 335064
    0x1c25a2464 <+4>: ldrb   w0, [x8, #0x45c]
Target 0: (Runner) stopped.

Tip: maybe related issue : https://github.com/pichillilorenzo/flutter_inappwebview/issues/1173