-
Notifications
You must be signed in to change notification settings - Fork 798
[Flutter] App crashes on start when using ffmpeg_kit_flutter version 5.1.0 #590
Comments
I ran the following tests on the simulator and on a real device, but the same issues occurred
( Xcode 14.0.1 / Flutter 3.3.4 ) |
Sorry, but this is not right. I spent a week just to prepare this release. I worked on the features for months. Distributing a GPL licensed library which is also subject to patents is already a big risk for me. Almost no developer is taking the same risks as me. In the end, if there is something not working as expected, is it too much to expect people to spend 20 minutes to prepare a sample app to reproduce their issue. The issue that I don't see. That I can't reproduce locally. The issue that I already spent hours trying to reproduce. Look at my And, there are people like in #591 that they don't have time to even fill out the This is not right. This is not fair! |
I solved it, hope it helps someone
|
I've tried again today, this time it built & ran as intended. The only thing changed - i've upgraded XCode to 14.0.1 |
Oops, not so fast
I've cleaned DerivedData, removed old version of the app, removed Podfile.lock & Pods folder. Long story short:
Not sure why it loads
Also, |
Applied the instructions in your last post to our And, the crash you shared in the same post is quite normal from We must have |
Thank you @tanersener for your wonderful work on this project. 🙏 I encountered same problem with ffmpeg_kit_flutter_https_gpl: ^5.1.0. App crashes during startup flutter doctor Steps taken to fix the issue before running the app:
Debug logLaunching lib/main.dart on iPhone 12PM in debug mode... lib/main.dart:1 Automatically signing iOS for device deployment using specified development team in Xcode project: HSS859QQA2 Xcode build done. 106.0s (lldb) dyld[38039]: Library not loaded: @rpath/ffmpegkit.framework/ffmpegkit Referenced from: /private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Runner Reason: tried: '/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2), '/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2), '/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/preboot/Cryptexes/OS@rpath/ffmpegkit.framework/ffmpegkit' (errno=2), '/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2), '/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2), '/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/private/var/containers/Bundle/Application/A584E2C5-576D-4CAA-AECF-0F9562F1A5E4/Runner.app/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2), '/System/Library/Frameworks/ffmpegkit.framework/ffmpegkit' (errno=2, not in dyld cache) * thread #1, stop reason = signal SIGABRT frame #0: 0x00000001b26a3e08 dyld`__abort_with_payload + 8 dyld`: -> 0x1b26a3e08 <+8>: b.lo 0x1b26a3e28 ; <+40> 0x1b26a3e0c <+12>: pacibsp 0x1b26a3e10 <+16>: stp x29, x30, [sp, #-0x10]! 0x1b26a3e14 <+20>: mov x29, sp Target 0: (Runner) stopped. Error launching application on iPhone 12PM. Exited |
@ShahyarTaheri I tried your instructions on a new You too can execute those instructions on a new |
@lavinov-mercury Thanks for the analysis. It looks like a Could CocoaPods/CocoaPods/issues/11608 be the reason? |
@tanersener Seems like it is! I've found these plist files, changed order, so ios-arm64_x86_64-maccatalyst became not first, and it worked as intended 😄
But why it worked with previous ffmpeg version? |
In the previous We built them using different |
I am not sure if i faced the same error, but i also got crash issues when trying to use the lib (same command worked fine with 4.5.1). I am also using a M1 chip. I managed to fix this issue after running following commands :
After building again it works without an issue |
I am having the same Issue, have tried everything to fix this but I am getting lost. I am seeing the same order in my Info.plist files as @lavinov-mercury but when I manually change them the app still crashes. Anyone know the exact steps to fix this ? |
Thanks a lot @LeGoffMael for your clean up script, it fixed the SIGARBT issue on my Xcode 14.0.1 build machine. |
@LeGoffMael Thanks, it worked!. Don't know what exactly helped, switch to @tanersener Should i close the issue, or better keep it opened until cocoapods side fix landed? |
@lavinov-mercury I won't be able to validate the solution when it is fixed in |
had same problem |
Description
With this new version app crashes on start with following output:
I'm building on M1 machine, probably it plays some role, unfortunately, i have no Intel machine to check
Expected behavior
No crash 😄
Current behavior
Crash 😢
To Reproduce
Environment
Flutter
/iOS
arm64
v5.1
main
14.0
1.11.3
The text was updated successfully, but these errors were encountered: