Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract images in a new child ioslate #724

Closed
llmmirror opened this issue Apr 15, 2023 · 3 comments
Closed

Extract images in a new child ioslate #724

llmmirror opened this issue Apr 15, 2023 · 3 comments

Comments

@llmmirror
Copy link

ffmpegkit.excute
An error was reported while extracting images in a new child ioslate

[ERROR:flutter/runtime/dart_isolate.cc(1098)] Unhandled exception:
E/flutter (15284): Binding has not yet been initialized.
E/flutter (15284): The "instance" getter on the ServicesBinding binding mixin is only available once that binding has been initialized.
E/flutter (15284): Typically, this is done by calling "WidgetsFlutterBinding.ensureInitialized()" or "runApp()" (the latter calls the former). Typically this call is done in the "void main()" method. The "ensureInitialized" method is idempotent; calling it multiple times is not harmful. After calling that method, the "instance" getter will return the binding.
E/flutter (15284): In a test, one can call "TestWidgetsFlutterBinding.ensureInitialized()" as the first line in the test's "main()" method to initialize the binding.
E/flutter (15284): If ServicesBinding is a custom binding mixin, there must also be a custom binding class, like WidgetsFlutterBinding, but that mixes in the selected binding, and that is the class that must be constructed before using the "instance" getter.
E/flutter (15284): #0 BindingBase.checkInstance. (package:flutter/src/foundation/binding.dart:284:9)
E/flutter (15284): #1 BindingBase. checkInstance (package:flutter/src/foundation/binding.dart:366:6)
E/flutter (15284): #2 ServicesBinding. instance (package:flutter/src/services/binding.dart:54:54)
E/flutter (15284): #3 EventChannel. binaryMessenger (package:flutter/src/services/platform_channel.dart:604:78)
E/flutter (15284): #4 EventChannel.receiveBroadcastStream. (package:flutter/src/services/platform_channel.dart:624:7)
E/flutter (15284): #5 _runGuarded (dart:async/stream_controller.dart:814:24)
E/flutter (15284): #6 _BroadcastStreamController. _subscribe (dart:async/broadcast_stream_controller.dart:207:7)
E/flutter (15284): #7 _ControllerStream. _createSubscription (dart:async/stream_controller.dart:827:19)
E/flutter (15284): #8 _StreamImpl. listen (dart:async/stream_impl.dart:471:9)
E/flutter (15284): #9 FFmpegKitInitializer. _initialize (package:ffmpeg_kit_flutter/src/ffmpeg_kit_flutter_initializer.dart:311:44)
E/flutter (15284): #10 FFmpegKitInitializer. initialize (package:ffmpeg_kit_flutter/src/ffmpeg_kit_flutter_initializer.dart:54:23)
E/flutter (15284): #11 FFmpegKitConfig. init (package:ffmpeg_kit_flutter/ffmpeg_kit_config.dart:50:32)
E/flutter (15284): #12 AbstractSession. createFFmpegSession (package:ffmpeg_kit_flutter/abstract_session.dart:69:29)
E/flutter (15284): #13 FFmpegSession. create (package:ffmpeg_kit_flutter/ffmpeg_session.dart:40:43)
E/flutter (15284): #14 FFmpegKit. executeWithArguments (package:ffmpeg_kit_flutter/ffmpeg_kit.dart:44:29)
E/flutter (15284): #15 FFmpegKit. execute (package:ffmpeg_kit_flutter/ffmpeg_kit.dart:38:17)
E/flutter (15284): #16 _VideoEditPageState. newIsolate (package:tsone/utils/video_edit_page.dart:237:23)
E/flutter (15284):

@Zambrella
Copy link

Not involved in this package but you cannot run packages that require Flutter in a separate isolate (some more info and workarounds here - https://stackoverflow.com/a/74956330). I think I remember hearing something that this will change in the future but can't find a source for this.

@github-actions
Copy link

github-actions bot commented Jul 1, 2023

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions
Copy link

github-actions bot commented Jul 9, 2023

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as completed Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants