media-kit / media-kit

A cross-platform video player & audio player for Flutter & Dart.
https://github.com/media-kit/media-kit
MIT License
916 stars 132 forks source link

The latest version of media_kit (1.0.0) seems not running on MacOS running on M1 #261

Closed teukuridho closed 11 months ago

teukuridho commented 11 months ago

When using the latest version of media_kit (1.0.0), it seems not running on MacOS M1. The code I was running is just a copy from TL;DR (A quick usage example.) of this repository. I also have added permissions on macos/Runner/Release.entitlements and macos/Runner/DebugProfile.entitlements

These are the packages that breaks

media_kit: ^1.0.0
media_kit_video: ^1.0.0
media_kit_libs_macos_video: ^1.0.5

These are the packages that works on my case

media_kit: ^0.0.11
media_kit_video: ^0.0.12
media_kit_libs_macos_video: ^1.0.5

And this is the error output

Error waiting for a debug connection: The log reader stopped unexpectedly, or never started.
[        ] Error launching application on macOS.

Did I miss some steps or anything else? Thanks

alexmercerind commented 11 months ago

Hi!

Thanks a lot for the information. I'll take a look.

alexmercerind commented 11 months ago

Are you able to run the pre-built demo provided in the README?

https://github.com/alexmercerind/media_kit/releases/download/media_kit-v1.0.0/media_kit_test_macos_universal.7z

teukuridho commented 11 months ago

Are you able to run the pre-built demo provided in the README?

https://github.com/alexmercerind/media_kit/releases/download/media_kit-v1.0.0/media_kit_test_macos_universal.7z

Yes I can run the demo

alexmercerind commented 11 months ago

cc: @birros

Is there something you can say? Did I break something?

birros commented 11 months ago

I've just migrated my app to the stable version, everything works, dev mode and release mode.

Error waiting for a debug connection: The log reader stopped unexpectedly, or never started.

I've seen this error on other Flutter projects, and a flutter clean should solve this. If not, delete the build/macos folder and clean up the macos folder (i.e. git clean -xdf).

teukuridho commented 11 months ago

I've just migrated my app to the stable version, everything works, dev mode and release mode.

Error waiting for a debug connection: The log reader stopped unexpectedly, or never started.

I've seen this error on other Flutter projects, and a flutter clean should solve this. If not, delete the build/macos folder and clean up the macos folder (i.e. git clean -xdf).

I just tried them on newly created flutter project with codes from TL:DR, still can't run it Anyway where do I git clean -xdf, no git repo on the project nor on macos folder

Or Maybe is it just on my mac?

birros commented 11 months ago

Or Maybe is it just on my mac?

Clone the repo and try to build media_kit_test yourself, if it succeeds it comes from the config of your project, if it doesn't give us the logs.

teukuridho commented 11 months ago

I have cloned the repo and can't run the media_kit_test.

If the logs you asked is from Debug Console,these are the logs if not I will provide with other logs

I can't send output from flutter run --verbose because it's too long

Output from Debug Console ``` Launching lib/main.dart on macOS in debug mode... 2023-07-02 20:08:32.156 xcodebuild[74283:1820181] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled) --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:macOS, arch:arm64, id:00006000-001859E03CD8801E } { platform:macOS, arch:x86_64, id:00006000-001859E03CD8801E } # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #include ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #include ^ #include ^ #include "__stddef_max_align_t.h" ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #include ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #include ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #include ^ #include ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #include ^ #include ^ #include ^ #import ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #include ^ #include ^ #include ^ #import ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #include ^ #include ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ #include ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ #include ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ #include ^ #include ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ #import ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ #import ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ #import ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ #import ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ #import ^ #import ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #import ^ #import ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import ^ #include ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ # 1 "" 1 ^ :20:9: warning: 'POD_CONFIGURATION_DEBUG' macro redefined #define POD_CONFIGURATION_DEBUG 1 DEBUG=1 ^ #define POD_CONFIGURATION_DEBUG 1 ^ #import "Headers/media_kit_video-Swift.h" ^ /Users/teukuridho/Documents/Works/FlutterProjects/media_kit/media_kit_test/build/macos/Build/Products/Debug/media_kit_video/media_kit_video.framework/Headers/media_kit_video-Swift.h:300:31: warning: 'objc_ownership' only applies to Objective-C object or block pointer types; type here is 'CVPixelBufferRef _Nullable' (aka 'struct __CVBuffer *') - (CVPixelBufferRef _Nullable __unsafe_unretained)copyPixelBuffer SWIFT_WARN_UNUSED_RESULT; ^ #import "Headers/media_kit_video-Swift.h" ^ /Users/teukuridho/Documents/Works/FlutterProjects/media_kit/media_kit_test/build/macos/Build/Products/Debug/media_kit_video/media_kit_video.framework/Headers/media_kit_video-Swift.h:308:31: warning: 'objc_ownership' only applies to Objective-C object or block pointer types; type here is 'CVPixelBufferRef _Nullable' (aka 'struct __CVBuffer *') - (CVPixelBufferRef _Nullable __unsafe_unretained)copyPixelBuffer SWIFT_WARN_UNUSED_RESULT; ^ #import "Headers/media_kit_video-Swift.h" ^ /Users/teukuridho/Documents/Works/FlutterProjects/media_kit/media_kit_test/build/macos/Build/Products/Debug/media_kit_video/media_kit_video.framework/Headers/media_kit_video-Swift.h:316:31: warning: 'objc_ownership' only applies to Objective-C object or block pointer types; type here is 'CVPixelBufferRef _Nullable' (aka 'struct __CVBuffer *') - (CVPixelBufferRef _Nullable __unsafe_unretained)copyPixelBuffer SWIFT_WARN_UNUSED_RESULT; ^ warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner') Error waiting for a debug connection: The log reader stopped unexpectedly, or never started. Error launching application on macOS. Exited ```
birros commented 11 months ago

I can't reproduce it (Intel device).

Have you tried in release mode?

$ flutter build macos --release
$ open -a $PWD/build/macos/Build/Products/Release/media_kit_test.app
teukuridho commented 11 months ago

I have built the release and ran it, it crashed

Also this is the output of flutter build macos --release

Changing current working directory to: /Users/teukuridho/Documents/Works/FlutterProjects/media_kit/media_kit_test

💪 Building with sound null safety 💪

2023-07-02 22:53:03.880 xcodebuild[87655:1924151] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006000-001859E03CD8801E }
{ platform:macOS, arch:x86_64, id:00006000-001859E03CD8801E }
birros commented 11 months ago

I have built the release and ran it, it crashed

Do you have any crash report?

teukuridho commented 11 months ago

I have built the release and ran it, it crashed

Do you have any crash report?

Yes, here they are

Crash Report ``` ------------------------------------- Translated Report (Full Report Below) ------------------------------------- Process: media_kit_test [88308] Path: /Users/USER/Documents/*/media_kit_test.app/Contents/MacOS/media_kit_test Identifier: com.example.mediaKitTest Version: 1.0.0 (1.0.0) Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501 Date/Time: 2023-07-02 23:00:40.6052 +0700 OS Version: macOS 13.4.1 (22F82) Report Version: 12 Anonymous UUID: A962EF90-3F43-3B18-4844-846A98346CED Sleep/Wake UUID: 488E6771-74BD-4DA2-BF34-A9CD73E744EB Time Awake Since Boot: 130000 seconds Time Since Wake: 882 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x000000010275beb0 Termination Reason: Namespace SIGNAL, Code 5 Trace/BPT trap: 5 Terminating Process: exc handler [88308] Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 media_kit_video 0x10275beb0 Swift runtime failure: force unwrapped a nil value + 0 [inlined] 1 media_kit_video 0x10275beb0 specialized static MediaKitVideoPlugin.register(with:) + 660 (MediaKitVideoPlugin.swift:18) 2 media_kit_test 0x1021e1bfc specialized RegisterGeneratedPlugins(registry:) + 188 (GeneratedPluginRegistrant.swift:16) 3 media_kit_test 0x1021e1a0c RegisterGeneratedPlugins(registry:) + 8 [inlined] 4 media_kit_test 0x1021e1a0c MainFlutterWindow.awakeFromNib() + 112 (MainFlutterWindow.swift:11) [inlined] 5 media_kit_test 0x1021e1a0c @objc MainFlutterWindow.awakeFromNib() + 180 (:5) 6 CoreFoundation 0x1831525e0 -[NSSet makeObjectsPerformSelector:] + 176 7 AppKit 0x1863601d8 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 824 8 AppKit 0x186355d58 loadNib + 340 9 AppKit 0x186355388 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 560 10 AppKit 0x18635508c -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 180 11 AppKit 0x186354eb0 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 300 12 AppKit 0x18634860c NSApplicationMain + 488 13 media_kit_test 0x1021e1b18 main + 12 (AppDelegate.swift:5) 14 dyld 0x182d27f28 start + 2236 Thread 1: 0 libsystem_pthread.dylib 0x18307ad8c start_wqthread + 0 Thread 2: 0 libsystem_pthread.dylib 0x18307ad8c start_wqthread + 0 Thread 3: 0 libsystem_pthread.dylib 0x18307ad8c start_wqthread + 0 Thread 4: 0 libsystem_pthread.dylib 0x18307ad8c start_wqthread + 0 Thread 0 crashed with ARM Thread State (64-bit): x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x00000001de0f81c8 x3: 0x0000000130e50fa0 x4: 0x0000000000c00510 x5: 0x0000000000000002 x6: 0x0000000000000002 x7: 0x0000000107c9e638 x8: 0x00000001de055ee0 x9: 0x42fdc4cb62b50080 x10: 0x00000001e58466f0 x11: 0x0000000000000007 x12: 0x0000000000000000 x13: 0x0000000130e3c020 x14: 0x0500000107ca8bf5 x15: 0x0000000107ca8bf0 x16: 0x00000003069ec594 x17: 0xb543000107057474 x18: 0x0000000000000000 x19: 0x0000000132028100 x20: 0x0000000130e50fa0 x21: 0x0000000130e65630 x22: 0x0000000132028100 x23: 0x00000001021e8000 x24: 0xd000000000000013 x25: 0x0000000120e3c4e0 x26: 0x0000000000000000 x27: 0x0000002b00000004 x28: 0x000000000000002b fp: 0x000000016dc1e100 lr: 0x000000010275bc8c sp: 0x000000016dc1e070 pc: 0x000000010275beb0 cpsr: 0x40001000 far: 0x0000000102767e10 esr: 0xf2000001 (Breakpoint) brk 1 Binary Images: 0x1021e0000 - 0x1021e3fff com.example.mediaKitTest (1.0.0) <81681c3b-b0ed-3ff1-801a-bf0419f000cc> /Users/USER/Documents/*/media_kit_test.app/Contents/MacOS/media_kit_test 0x1022e8000 - 0x102323fff com.github.media-kit.Ass (*) <42f406c6-4fbd-3e3a-96c2-e3cd10a09c09> /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/Ass.framework/Versions/A/Ass 0x103c3c000 - 0x104717fff com.github.media-kit.Avcodec (*) <5cc66b4c-b43e-3567-815b-50db1892e88b> /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/Avcodec.framework/Versions/A/Avcodec 0x102ac0000 - 0x102d93fff com.github.media-kit.Avfilter (*) <91a9fe4d-b6f8-3401-9f85-cb80f803cf64> /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/Avfilter.framework/Versions/A/Avfilter 0x1027b0000 - 0x102997fff com.github.media-kit.Avformat (*) <13f30e54-76aa-3bf3-9a9c-310b646e2325> /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/Avformat.framework/Versions/A/Avformat 0x102474000 - 0x1024e7fff com.github.media-kit.Avutil (*) /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/Avutil.framework/Versions/A/Avutil 0x1032dc000 - 0x1034abfff com.github.media-kit.Crypto (*) <3e7f99ec-c105-3ed9-8acf-2117c5c22977> /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/Crypto.framework/Versions/A/Crypto 0x102618000 - 0x1026fbfff com.github.media-kit.Freetype (*) /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/Freetype.framework/Versions/A/Freetype 0x1022b0000 - 0x1022d3fff com.github.media-kit.Fribidi (*) <3e42774f-b3b9-37e8-9f53-5658ae490392> /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/Fribidi.framework/Versions/A/Fribidi 0x103538000 - 0x10374bfff com.github.media-kit.Harfbuzz (*) /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/Harfbuzz.framework/Versions/A/Harfbuzz 0x102e30000 - 0x1030b7fff com.github.media-kit.Mpv (*) /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/Mpv.framework/Versions/A/Mpv 0x1029ec000 - 0x102a47fff com.github.media-kit.Ssl (*) /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/Ssl.framework/Versions/A/Ssl 0x10228c000 - 0x10229ffff com.github.media-kit.Swresample (*) /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/Swresample.framework/Versions/A/Swresample 0x10233c000 - 0x1023d3fff com.github.media-kit.Swscale (*) /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/Swscale.framework/Versions/A/Swscale 0x105308000 - 0x105537fff com.github.media-kit.Tls (*) /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/Tls.framework/Versions/A/Tls 0x102240000 - 0x10226bfff com.github.media-kit.Uchardet (*) /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/Uchardet.framework/Versions/A/Uchardet 0x102424000 - 0x102427fff org.cocoapods.media-kit-libs-macos-video (1.0.4) /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/media_kit_libs_macos_video.framework/Versions/A/media_kit_libs_macos_video 0x1023f0000 - 0x1023f7fff org.cocoapods.media-kit-native-event-loop (1.0.0) <93b64fb4-a677-3081-b721-39d7d8d53bc5> /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/media_kit_native_event_loop.framework/Versions/A/media_kit_native_event_loop 0x102758000 - 0x10276bfff org.cocoapods.media-kit-video (0.0.1) <3a24e1e0-838e-332e-94b1-f5a733a32dcf> /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/media_kit_video.framework/Versions/A/media_kit_video 0x10243c000 - 0x102443fff org.cocoapods.path-provider-foundation (0.0.1) <4954afe1-58cd-33b4-8423-e8daa942c5b8> /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/path_provider_foundation.framework/Versions/A/path_provider_foundation 0x102a6c000 - 0x102a77fff org.cocoapods.screen-brightness-macos (0.1.0) /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/screen_brightness_macos.framework/Versions/A/screen_brightness_macos 0x102a98000 - 0x102a9ffff org.cocoapods.wakelock-macos (0.0.1) /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/wakelock_macos.framework/Versions/A/wakelock_macos 0x107048000 - 0x107c2bfff io.flutter.flutter-macos (1.0) <4c4c448d-5555-3144-a1b3-952da61c7568> /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/FlutterMacOS.framework/Versions/A/FlutterMacOS 0x104ea8000 - 0x104eb3fff libobjc-trampolines.dylib (*) <570c31f7-94c6-3b86-ae44-1694db0a4bcd> /usr/lib/libobjc-trampolines.dylib 0x120780000 - 0x120dbffff io.flutter.flutter.app (1.0) /Users/USER/Documents/*/media_kit_test.app/Contents/Frameworks/App.framework/Versions/A/App 0x1830df000 - 0x1835b8fff com.apple.CoreFoundation (6.9) <203e4401-8c2e-3157-a24b-92f52551d43e> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x186345000 - 0x187253fff com.apple.AppKit (6.9) <041c7d21-21cc-3eea-ae53-d39f5ca6a24e> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x182d22000 - 0x182db0553 dyld (*) <2237410f-d39c-30ce-9a94-13aacb66b766> /usr/lib/dyld 0x183079000 - 0x183085fff libsystem_pthread.dylib (*) <46d35233-a051-3f4f-bba4-ba56dddc4d1a> /usr/lib/system/libsystem_pthread.dylib External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 0 thread_create: 0 thread_set_state: 0 VM Region Summary: ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%) Writable regions: Total=686.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=686.2M(100%) VIRTUAL REGION REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Activity Tracing 256K 1 ColorSync 464K 23 CoreGraphics 16K 1 CoreServices 224K 1 Dispatch continuations 80.0M 1 Foundation 16K 1 Kernel Alloc Once 32K 1 MALLOC 108.3M 35 MALLOC guard page 192K 10 MALLOC_MEDIUM (reserved) 480.0M 4 reserved VM address space (unallocated) STACK GUARD 56.1M 5 Stack 10.1M 5 VM_ALLOCATE 32K 2 __AUTH 657K 168 __AUTH_CONST 12.3M 328 __CTF 824 1 __DATA 10.3M 343 __DATA_CONST 17.1M 353 __DATA_DIRTY 713K 112 __FONT_DATA 2352 1 __LINKEDIT 810.1M 26 __OBJC_RO 66.3M 1 __OBJC_RW 2011K 1 __TEXT 282.6M 371 dyld private memory 272K 2 mapped file 172.4M 18 shared memory 848K 14 =========== ======= ======= TOTAL 2.1G 1829 TOTAL, minus reserved VM space 1.6G 1829 ----------- Full Report ----------- {"app_name":"media_kit_test","timestamp":"2023-07-02 23:00:40.00 +0700","app_version":"1.0.0","slice_uuid":"81681c3b-b0ed-3ff1-801a-bf0419f000cc","build_version":"1.0.0","platform":1,"bundleID":"com.example.mediaKitTest","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.4.1 (22F82)","roots_installed":0,"name":"media_kit_test","incident_id":"74D5315D-C1C6-4140-9AB4-EF1ED80C8431"} { "uptime" : 130000, "procRole" : "Foreground", "version" : 2, "userID" : 501, "deployVersion" : 210, "modelCode" : "MacBookPro18,3", "coalitionID" : 19185, "osVersion" : { "train" : "macOS 13.4.1", "build" : "22F82", "releaseType" : "User" }, "captureTime" : "2023-07-02 23:00:40.6052 +0700", "incident" : "74D5315D-C1C6-4140-9AB4-EF1ED80C8431", "pid" : 88308, "translated" : false, "cpuType" : "ARM-64", "roots_installed" : 0, "bug_type" : "309", "procLaunch" : "2023-07-02 23:00:38.9231 +0700", "procStartAbsTime" : 3288759862662, "procExitAbsTime" : 3288799685102, "procName" : "media_kit_test", "procPath" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/MacOS\/media_kit_test", "bundleInfo" : {"CFBundleShortVersionString":"1.0.0","CFBundleVersion":"1.0.0","CFBundleIdentifier":"com.example.mediaKitTest"}, "storeInfo" : {"deviceIdentifierForVendor":"FC41B373-FD2E-550D-9C2F-4D7BE190D73E","thirdParty":true}, "parentProc" : "launchd", "parentPid" : 1, "coalitionName" : "com.example.mediaKitTest", "crashReporterKey" : "A962EF90-3F43-3B18-4844-846A98346CED", "codeSigningID" : "com.example.mediaKitTest", "codeSigningTeamID" : "", "codeSigningFlags" : 570425861, "codeSigningValidationCategory" : 10, "codeSigningTrustLevel" : 0, "wakeTime" : 882, "sleepWakeUUID" : "488E6771-74BD-4DA2-BF34-A9CD73E744EB", "sip" : "enabled", "exception" : {"codes":"0x0000000000000001, 0x000000010275beb0","rawCodes":[1,4336238256],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"}, "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":88308}, "os_fault" : {"process":"media_kit_test"}, "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0}, "faultingThread" : 0, "threads" : [{"triggered":true,"id":1931889,"threadState":{"x":[{"value":0},{"value":0},{"value":8020525512,"symbolLocation":0,"symbol":"OBJC_CLASS_$__TtCs21__SharedStringStorage"},{"value":5115285408},{"value":12584208},{"value":2},{"value":2},{"value":4425639480},{"value":8019861216,"symbolLocation":224,"symbol":"_main_thread"},{"value":4827230753424474240},{"value":8145626864},{"value":7},{"value":0},{"value":5115199520},{"value":360287974615321589,"symbolLocation":360287970189639685,"symbol":"OBJC_CLASS_$_FlutterEngine"},{"value":4425681904,"symbolLocation":0,"symbol":"OBJC_CLASS_$_FlutterEngine"},{"value":12995970452},{"value":13061283348717335668},{"value":0},{"value":5133992192},{"value":5115285408},{"value":5115369008},{"value":5133992192},{"value":4330520576},{"value":14987979559889010707},{"value":4846765280},{"value":0},{"value":184683593732},{"value":43}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4336237708},"cpsr":{"value":1073745920},"fp":{"value":6136389888},"sp":{"value":6136389744},"esr":{"value":4060086273,"description":"(Breakpoint) brk 1"},"pc":{"value":4336238256,"matchesCrashFrame":1},"far":{"value":4336287248}},"queue":"com.apple.main-thread","frames":[{"imageOffset":16048,"sourceFile":"","symbol":"Swift runtime failure: force unwrapped a nil value","imageIndex":18,"symbolLocation":0,"inline":true},{"imageOffset":16048,"sourceLine":18,"sourceFile":"MediaKitVideoPlugin.swift","symbol":"specialized static MediaKitVideoPlugin.register(with:)","imageIndex":18,"symbolLocation":660},{"imageOffset":7164,"sourceLine":16,"sourceFile":"GeneratedPluginRegistrant.swift","symbol":"specialized RegisterGeneratedPlugins(registry:)","imageIndex":0,"symbolLocation":188},{"imageOffset":6668,"sourceFile":"","symbol":"RegisterGeneratedPlugins(registry:)","imageIndex":0,"symbolLocation":8,"inline":true},{"symbol":"MainFlutterWindow.awakeFromNib()","inline":true,"imageIndex":0,"imageOffset":6668,"symbolLocation":112,"sourceLine":11,"sourceFile":"MainFlutterWindow.swift"},{"imageOffset":6668,"sourceLine":5,"sourceFile":"","symbol":"@objc MainFlutterWindow.awakeFromNib()","imageIndex":0,"symbolLocation":180},{"imageOffset":472544,"symbol":"-[NSSet makeObjectsPerformSelector:]","symbolLocation":176,"imageIndex":25},{"imageOffset":111064,"symbol":"-[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:]","symbolLocation":824,"imageIndex":26},{"imageOffset":68952,"symbol":"loadNib","symbolLocation":340,"imageIndex":26},{"imageOffset":66440,"symbol":"+[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:]","symbolLocation":560,"imageIndex":26},{"imageOffset":65676,"symbol":"-[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:]","symbolLocation":180,"imageIndex":26},{"imageOffset":65200,"symbol":"+[NSBundle(NSNibLoading) loadNibNamed:owner:]","symbolLocation":300,"imageIndex":26},{"imageOffset":13836,"symbol":"NSApplicationMain","symbolLocation":488,"imageIndex":26},{"imageOffset":6936,"sourceLine":5,"sourceFile":"AppDelegate.swift","symbol":"main","imageIndex":0,"symbolLocation":12},{"imageOffset":24360,"symbol":"start","symbolLocation":2236,"imageIndex":27}]},{"id":1931925,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":28}]},{"id":1931926,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":28}]},{"id":1931929,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":28}]},{"id":1931933,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":28}]}], "usedImages" : [ { "source" : "P", "arch" : "arm64", "base" : 4330487808, "CFBundleShortVersionString" : "1.0.0", "CFBundleIdentifier" : "com.example.mediaKitTest", "size" : 16384, "uuid" : "81681c3b-b0ed-3ff1-801a-bf0419f000cc", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/MacOS\/media_kit_test", "name" : "media_kit_test", "CFBundleVersion" : "1.0.0" }, { "source" : "P", "arch" : "arm64", "base" : 4331569152, "CFBundleIdentifier" : "com.github.media-kit.Ass", "size" : 245760, "uuid" : "42f406c6-4fbd-3e3a-96c2-e3cd10a09c09", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/Ass.framework\/Versions\/A\/Ass", "name" : "Ass", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64", "base" : 4358127616, "CFBundleIdentifier" : "com.github.media-kit.Avcodec", "size" : 11386880, "uuid" : "5cc66b4c-b43e-3567-815b-50db1892e88b", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/Avcodec.framework\/Versions\/A\/Avcodec", "name" : "Avcodec", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64", "base" : 4339793920, "CFBundleIdentifier" : "com.github.media-kit.Avfilter", "size" : 2965504, "uuid" : "91a9fe4d-b6f8-3401-9f85-cb80f803cf64", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/Avfilter.framework\/Versions\/A\/Avfilter", "name" : "Avfilter", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64", "base" : 4336582656, "CFBundleIdentifier" : "com.github.media-kit.Avformat", "size" : 1998848, "uuid" : "13f30e54-76aa-3bf3-9a9c-310b646e2325", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/Avformat.framework\/Versions\/A\/Avformat", "name" : "Avformat", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64", "base" : 4333191168, "CFBundleIdentifier" : "com.github.media-kit.Avutil", "size" : 475136, "uuid" : "d81a31db-4d8f-374d-b757-7bd99294c8ef", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/Avutil.framework\/Versions\/A\/Avutil", "name" : "Avutil", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64", "base" : 4348297216, "CFBundleIdentifier" : "com.github.media-kit.Crypto", "size" : 1900544, "uuid" : "3e7f99ec-c105-3ed9-8acf-2117c5c22977", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/Crypto.framework\/Versions\/A\/Crypto", "name" : "Crypto", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64", "base" : 4334911488, "CFBundleIdentifier" : "com.github.media-kit.Freetype", "size" : 933888, "uuid" : "d414cfe8-0aad-3cbf-b1b3-15f98d26e2ee", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/Freetype.framework\/Versions\/A\/Freetype", "name" : "Freetype", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64", "base" : 4331339776, "CFBundleIdentifier" : "com.github.media-kit.Fribidi", "size" : 147456, "uuid" : "3e42774f-b3b9-37e8-9f53-5658ae490392", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/Fribidi.framework\/Versions\/A\/Fribidi", "name" : "Fribidi", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64", "base" : 4350771200, "CFBundleIdentifier" : "com.github.media-kit.Harfbuzz", "size" : 2179072, "uuid" : "e6445949-9aa6-3a0c-8a0a-70697860b342", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/Harfbuzz.framework\/Versions\/A\/Harfbuzz", "name" : "Harfbuzz", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64", "base" : 4343398400, "CFBundleIdentifier" : "com.github.media-kit.Mpv", "size" : 2654208, "uuid" : "cb6b8212-bcce-3952-a23f-0d4ae468fe3c", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/Mpv.framework\/Versions\/A\/Mpv", "name" : "Mpv", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64", "base" : 4338925568, "CFBundleIdentifier" : "com.github.media-kit.Ssl", "size" : 376832, "uuid" : "c6c39278-f7cb-39c2-8afd-aa50118ea91d", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/Ssl.framework\/Versions\/A\/Ssl", "name" : "Ssl", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64", "base" : 4331192320, "CFBundleIdentifier" : "com.github.media-kit.Swresample", "size" : 81920, "uuid" : "ab08cecb-802c-32d9-ba9e-94d5d90f36b4", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/Swresample.framework\/Versions\/A\/Swresample", "name" : "Swresample", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64", "base" : 4331913216, "CFBundleIdentifier" : "com.github.media-kit.Swscale", "size" : 622592, "uuid" : "b758df87-1009-3886-806a-28feb9c20eee", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/Swscale.framework\/Versions\/A\/Swscale", "name" : "Swscale", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64", "base" : 4382031872, "CFBundleIdentifier" : "com.github.media-kit.Tls", "size" : 2293760, "uuid" : "c89ed652-5d89-3b2c-8aa2-d9b9815233e0", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/Tls.framework\/Versions\/A\/Tls", "name" : "Tls", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64", "base" : 4330881024, "CFBundleIdentifier" : "com.github.media-kit.Uchardet", "size" : 180224, "uuid" : "c8fd4167-df7b-3e4b-a9be-d1fa22a78de2", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/Uchardet.framework\/Versions\/A\/Uchardet", "name" : "Uchardet", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64", "base" : 4332863488, "CFBundleShortVersionString" : "1.0.4", "CFBundleIdentifier" : "org.cocoapods.media-kit-libs-macos-video", "size" : 16384, "uuid" : "aa3ba845-65c3-38c6-af0d-27088f11d609", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/media_kit_libs_macos_video.framework\/Versions\/A\/media_kit_libs_macos_video", "name" : "media_kit_libs_macos_video", "CFBundleVersion" : "1" }, { "source" : "P", "arch" : "arm64", "base" : 4332650496, "CFBundleShortVersionString" : "1.0.0", "CFBundleIdentifier" : "org.cocoapods.media-kit-native-event-loop", "size" : 32768, "uuid" : "93b64fb4-a677-3081-b721-39d7d8d53bc5", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/media_kit_native_event_loop.framework\/Versions\/A\/media_kit_native_event_loop", "name" : "media_kit_native_event_loop", "CFBundleVersion" : "1" }, { "source" : "P", "arch" : "arm64", "base" : 4336222208, "CFBundleShortVersionString" : "0.0.1", "CFBundleIdentifier" : "org.cocoapods.media-kit-video", "size" : 81920, "uuid" : "3a24e1e0-838e-332e-94b1-f5a733a32dcf", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/media_kit_video.framework\/Versions\/A\/media_kit_video", "name" : "media_kit_video", "CFBundleVersion" : "1" }, { "source" : "P", "arch" : "arm64", "base" : 4332961792, "CFBundleShortVersionString" : "0.0.1", "CFBundleIdentifier" : "org.cocoapods.path-provider-foundation", "size" : 32768, "uuid" : "4954afe1-58cd-33b4-8423-e8daa942c5b8", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/path_provider_foundation.framework\/Versions\/A\/path_provider_foundation", "name" : "path_provider_foundation", "CFBundleVersion" : "1" }, { "source" : "P", "arch" : "arm64", "base" : 4339449856, "CFBundleShortVersionString" : "0.1.0", "CFBundleIdentifier" : "org.cocoapods.screen-brightness-macos", "size" : 49152, "uuid" : "c566f7b0-5922-3a27-be3c-59f43ce95fcd", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/screen_brightness_macos.framework\/Versions\/A\/screen_brightness_macos", "name" : "screen_brightness_macos", "CFBundleVersion" : "1" }, { "source" : "P", "arch" : "arm64", "base" : 4339630080, "CFBundleShortVersionString" : "0.0.1", "CFBundleIdentifier" : "org.cocoapods.wakelock-macos", "size" : 32768, "uuid" : "fc771f74-bb9e-388c-ae22-8bada238edd3", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/wakelock_macos.framework\/Versions\/A\/wakelock_macos", "name" : "wakelock_macos", "CFBundleVersion" : "1" }, { "source" : "P", "arch" : "arm64", "base" : 4412702720, "CFBundleShortVersionString" : "1.0", "CFBundleIdentifier" : "io.flutter.flutter-macos", "size" : 12468224, "uuid" : "4c4c448d-5555-3144-a1b3-952da61c7568", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/FlutterMacOS.framework\/Versions\/A\/FlutterMacOS", "name" : "FlutterMacOS", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64e", "base" : 4377444352, "size" : 49152, "uuid" : "570c31f7-94c6-3b86-ae44-1694db0a4bcd", "path" : "\/usr\/lib\/libobjc-trampolines.dylib", "name" : "libobjc-trampolines.dylib" }, { "source" : "P", "arch" : "arm64", "base" : 4839702528, "CFBundleShortVersionString" : "1.0", "CFBundleIdentifier" : "io.flutter.flutter.app", "size" : 6553600, "uuid" : "f348ce90-efa3-35cb-b46a-4a3e62e33c16", "path" : "\/Users\/USER\/Documents\/*\/media_kit_test.app\/Contents\/Frameworks\/App.framework\/Versions\/A\/App", "name" : "App", "CFBundleVersion" : "1.0" }, { "source" : "P", "arch" : "arm64e", "base" : 6493696000, "CFBundleShortVersionString" : "6.9", "CFBundleIdentifier" : "com.apple.CoreFoundation", "size" : 5087232, "uuid" : "203e4401-8c2e-3157-a24b-92f52551d43e", "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation", "name" : "CoreFoundation", "CFBundleVersion" : "1977" }, { "source" : "P", "arch" : "arm64e", "base" : 6546542592, "CFBundleShortVersionString" : "6.9", "CFBundleIdentifier" : "com.apple.AppKit", "size" : 15790080, "uuid" : "041c7d21-21cc-3eea-ae53-d39f5ca6a24e", "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit", "name" : "AppKit", "CFBundleVersion" : "2299.60.124" }, { "source" : "P", "arch" : "arm64e", "base" : 6489776128, "size" : 582996, "uuid" : "2237410f-d39c-30ce-9a94-13aacb66b766", "path" : "\/usr\/lib\/dyld", "name" : "dyld" }, { "source" : "P", "arch" : "arm64e", "base" : 6493278208, "size" : 53248, "uuid" : "46d35233-a051-3f4f-bba4-ba56dddc4d1a", "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib", "name" : "libsystem_pthread.dylib" } ], "sharedCache" : { "base" : 6489112576, "size" : 3551641600, "uuid" : "be59bb71-7b69-3efc-86a8-5625a077ae2e" }, "vmSummary" : "ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)\nWritable regions: Total=686.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=686.2M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nActivity Tracing 256K 1 \nColorSync 464K 23 \nCoreGraphics 16K 1 \nCoreServices 224K 1 \nDispatch continuations 80.0M 1 \nFoundation 16K 1 \nKernel Alloc Once 32K 1 \nMALLOC 108.3M 35 \nMALLOC guard page 192K 10 \nMALLOC_MEDIUM (reserved) 480.0M 4 reserved VM address space (unallocated)\nSTACK GUARD 56.1M 5 \nStack 10.1M 5 \nVM_ALLOCATE 32K 2 \n__AUTH 657K 168 \n__AUTH_CONST 12.3M 328 \n__CTF 824 1 \n__DATA 10.3M 343 \n__DATA_CONST 17.1M 353 \n__DATA_DIRTY 713K 112 \n__FONT_DATA 2352 1 \n__LINKEDIT 810.1M 26 \n__OBJC_RO 66.3M 1 \n__OBJC_RW 2011K 1 \n__TEXT 282.6M 371 \ndyld private memory 272K 2 \nmapped file 172.4M 18 \nshared memory 848K 14 \n=========== ======= ======= \nTOTAL 2.1G 1829 \nTOTAL, minus reserved VM space 1.6G 1829 \n", "legacyInfo" : { "threadTriggered" : { "queue" : "com.apple.main-thread" } }, "logWritingSignature" : "a9ef83223e4c5266915e14493aa30ab926e9294a", "trialInfo" : { "rollouts" : [ { "rolloutId" : "5fb4245a1bbfe8005e33a1e1", "factorPackIds" : { }, "deploymentId" : 240000021 }, { "rolloutId" : "6391cacc75b0720ff1f8c695", "factorPackIds" : { "COREOS_ICD" : "63957f508061fa721c8edc4a" }, "deploymentId" : 240000007 } ], "experiments" : [ { "treatmentId" : "c28e4ee6-1b08-4f90-8e05-2809e78310a3", "experimentId" : "6317d2003d24842ff850182a", "deploymentId" : 400000013 } ] } } Model: MacBookPro18,3, BootROM 8422.121.1, proc 10:8:2 processors, 16 GB, SMC Graphics: Apple M1 Pro, Apple M1 Pro, Built-In Display: Color LCD, 3024 x 1964 Retina, Main, MirrorOff, Online Memory Module: LPDDR5, Hynix AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4387), wl0: Apr 7 2023 15:18:26 version 20.96.28.1.8.7.146 FWID 01-aff1b48a Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports Network Service: Wi-Fi, AirPort, en0 USB Device: USB31Bus USB Device: USB31Bus USB Device: USB31Bus Thunderbolt Bus: MacBook Pro, Apple Inc. Thunderbolt Bus: MacBook Pro, Apple Inc. Thunderbolt Bus: MacBook Pro, Apple Inc. ```
birros commented 11 months ago

Ok, I found the line: media_kit_video/MediaKitVideoPlugin.swift#L18

The crash means that the media_kit_video plugin can't find the main window…

Which version of Flutter do you use?

teukuridho commented 11 months ago

It's 3.7.12

Flutter 3.7.12 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 4d9e56e694 (3 months ago) • 2023-04-17 21:47:46 -0400
Engine • revision 1a65d409c7
Tools • Dart 2.19.6 • DevTools 2.20.1
birros commented 11 months ago

I can reproduce, I'm on it ^^

birros commented 11 months ago

Fixed, next release will solve your problem ^^

alexmercerind commented 11 months ago

Hi @teukuridho,

We published the update. Apologies for the inconvenience.

dependencies:
  media_kit: ^1.0.2                              # Primary package.

  media_kit_video: ^1.0.2                        # For video rendering.

  media_kit_native_event_loop: ^1.0.6            # Support for higher number of concurrent instances & better performance.

  media_kit_libs_android_video: ^1.1.1           # Android package for video native libraries.
  media_kit_libs_ios_video: ^1.0.4               # iOS package for video native libraries.
  media_kit_libs_macos_video: ^1.0.5             # macOS package for video native libraries.
  media_kit_libs_windows_video: ^1.0.2           # Windows package for video native libraries.
  media_kit_libs_linux: ^1.0.2                   # GNU/Linux dependency package.