text:
ofter upgrade flutter 3.22.1 t0 3.24.0 getting problem

Steps to reproduce
../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-3.1.4/lib/src/guid.dart:31:9: Error: Type 'UnmodifiableUint8ListView' not found.
final UnmodifiableUint8ListView bytes;
^^^^^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-3.1.4/lib/src/guid.dart:31:9: Error: 'UnmodifiableUint8ListView' isn't a type.
final UnmodifiableUint8ListView bytes;
^^^^^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-3.1.4/lib/src/guid.dart:51:17: Error: Method not found: 'UnmodifiableUint8ListView'.
return Guid(UnmodifiableUint8ListView(guid));
^^^^^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-3.1.4/lib/src/guid.dart:55:31: Error: Method not found: 'UnmodifiableUint8ListView'.
Code sample
Code sample
[Paste your code here]

What target platforms are you seeing this bug on?
Windows
OS/Browser name and version | Device information
windows 11
Does the problem occur on emulator/simulator as well as on physical devices?
Yes
Logs
../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-3.1.4/lib/src/guid.dart:31:9: Error: Type 'UnmodifiableUint8ListView' not found.
final UnmodifiableUint8ListView bytes;
^^^^^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-3.1.4/lib/src/guid.dart:31:9: Error: 'UnmodifiableUint8ListView' isn't a type.
final UnmodifiableUint8ListView bytes;
^^^^^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-3.1.4/lib/src/guid.dart:51:17: Error: Method not found: 'UnmodifiableUint8ListView'.
return Guid(UnmodifiableUint8ListView(guid));
^^^^^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-3.1.4/lib/src/guid.dart:55:31: Error: Method not found: 'UnmodifiableUint8ListView'.
Flutter Doctor output
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.22.1, on Microsoft Windows [Version 10.0.22631.3880], locale en-IN)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
X cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
X Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2023.1)
[√] VS Code (version 1.92.1)
[√] Connected device (3 available)
[√] Network resources

try flutter pub cache repair

i checked flutter oub cache repair still same error
../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-3.1.4/lib/src/guid.dart:99:17: Error: Method not found: 'UnmodifiableUint8ListView'.
return Guid(UnmodifiableUint8ListView(Uint8List.fromList(guidAsBytes)));
^^^^^^^^^^^^^^^^^^^^^^^^^
Target kernel_snapshot_program failed: Exception
2
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.

Try to override Win32 to the last version

@Roshan-pcy
It is pointing to third party package win32, so you will need to upgrade win32 package version to latest, or simply run flutter pub upgrade that should upgrade all dependencies you are using, to latest and ultimately resolving the issue.
Closing for now, as above should resolve your issue. If not, write in comments and I'll reopen it.

I had the same issue on Linux. I ran flutter pub cache repair as well as flutter pub upgrade. That didn't solve the issue for me. What did help was a suggestion from a dart-related issue in a different repo.
In short: some of my project's dependencies relied on an older version of win32 (see flutter pub deps), so I had to explicitly override that dependency.
To pubspec.yaml, I added the following:
dependency_overrides:
  win32: ^5.5.4

Then, I ran: flutter pub get.
That fixed it for me.

@Roshan-pcy It is pointing to third party package win32, so you will need to upgrade win32 package version to latest, or simply run flutter pub upgrade that should upgrade all dependencies you are using, to latest and ultimately resolving the issue. Closing for now, as above should resolve your issue. If not, write in comments and I'll reopen it.

not i tried update all package also still no sloved

authors: Haraven Roshan-pcy darshankawar hussenIbrahim


text:
ITMS-91065: Missing signature - Your app includes “Frameworks/url_launcher_ios.framework/url_launcher_ios”, which includes url_launcher_ios, an SDK that was identified in the documentation as a privacy-impacting third-party SDK.

What package does this bug report belong to?
url_launcher
What target platforms are you seeing this bug on?
iOS
Have you already upgraded your packages?
Yes
Dependency versions
pubspec.lock
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
  app_settings:
    dependency: "direct main"
    description:
      name: app_settings
      sha256: "09bc7fe0313a507087bec1a3baf555f0576e816a760cbb31813a88890a09d9e5"
      url: "https://pub.dev"
    source: hosted
    version: "5.1.1"
  async:
    dependency: transitive
    description:
      name: async
      sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
      url: "https://pub.dev"
    source: hosted
    version: "2.11.0"
  auto_size_text:
    dependency: "direct main"
    description:
      name: auto_size_text
      sha256: "3f5261cd3fb5f2a9ab4e2fc3fba84fd9fcaac8821f20a1d4e71f557521b22599"
      url: "https://pub.dev"
    source: hosted
    version: "3.0.0"
  boolean_selector:
    dependency: transitive
    description:
      name: boolean_selector
      sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.1"
  cached_network_image:
    dependency: "direct main"
    description:
      name: cached_network_image
      sha256: "7c1183e361e5c8b0a0f21a28401eecdbde252441106a9816400dd4c2b2424916"
      url: "https://pub.dev"
    source: hosted
    version: "3.4.1"
  cached_network_image_platform_interface:
    dependency: transitive
    description:
      name: cached_network_image_platform_interface
      sha256: "35814b016e37fbdc91f7ae18c8caf49ba5c88501813f73ce8a07027a395e2829"
      url: "https://pub.dev"
    source: hosted
    version: "4.1.1"
  cached_network_image_web:
    dependency: transitive
    description:
      name: cached_network_image_web
      sha256: "980842f4e8e2535b8dbd3d5ca0b1f0ba66bf61d14cc3a17a9b4788a3685ba062"
      url: "https://pub.dev"
    source: hosted
    version: "1.3.1"
  characters:
    dependency: transitive
    description:
      name: characters
      sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
      url: "https://pub.dev"
    source: hosted
    version: "1.3.0"
  clock:
    dependency: transitive
    description:
      name: clock
      sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
      url: "https://pub.dev"
    source: hosted
    version: "1.1.1"
  collection:
    dependency: transitive
    description:
      name: collection
      sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
      url: "https://pub.dev"
    source: hosted
    version: "1.18.0"
  crypto:
    dependency: transitive
    description:
      name: crypto
      sha256: ec30d999af904f33454ba22ed9a86162b35e52b44ac4807d1d93c288041d7d27
      url: "https://pub.dev"
    source: hosted
    version: "3.0.5"
  csslib:
    dependency: transitive
    description:
      name: csslib
      sha256: "831883fb353c8bdc1d71979e5b342c7d88acfbc643113c14ae51e2442ea0f20f"
      url: "https://pub.dev"
    source: hosted
    version: "0.17.3"
  cupertino_icons:
    dependency: "direct main"
    description:
      name: cupertino_icons
      sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
      url: "https://pub.dev"
    source: hosted
    version: "1.0.8"
  equatable:
    dependency: transitive
    description:
      name: equatable
      sha256: c2b87cb7756efdf69892005af546c56c0b5037f54d2a88269b4f347a505e3ca2
      url: "https://pub.dev"
    source: hosted
    version: "2.0.5"
  fake_async:
    dependency: transitive
    description:
      name: fake_async
      sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
      url: "https://pub.dev"
    source: hosted
    version: "1.3.1"
  ffi:
    dependency: transitive
    description:
      name: ffi
      sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.3"
  file:
    dependency: transitive
    description:
      name: file
      sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c"
      url: "https://pub.dev"
    source: hosted
    version: "7.0.0"
  fixnum:
    dependency: transitive
    description:
      name: fixnum
      sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1"
      url: "https://pub.dev"
    source: hosted
    version: "1.1.0"
  flutter:
    dependency: "direct main"
    description: flutter
    source: sdk
    version: "0.0.0"
  flutter_cache_manager:
    dependency: transitive
    description:
      name: flutter_cache_manager
      sha256: "400b6592f16a4409a7f2bb929a9a7e38c72cceb8ffb99ee57bbf2cb2cecf8386"
      url: "https://pub.dev"
    source: hosted
    version: "3.4.1"
  flutter_html:
    dependency: "direct main"
    description:
      name: flutter_html
      sha256: "02ad69e813ecfc0728a455e4bf892b9379983e050722b1dce00192ee2e41d1ee"
      url: "https://pub.dev"
    source: hosted
    version: "3.0.0-beta.2"
  flutter_lints:
    dependency: "direct dev"
    description:
      name: flutter_lints
      sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04
      url: "https://pub.dev"
    source: hosted
    version: "2.0.3"
  flutter_screenutil:
    dependency: "direct main"
    description:
      name: flutter_screenutil
      sha256: "8239210dd68bee6b0577aa4a090890342d04a136ce1c81f98ee513fc0ce891de"
      url: "https://pub.dev"
    source: hosted
    version: "5.9.3"
  flutter_test:
    dependency: "direct dev"
    description: flutter
    source: sdk
    version: "0.0.0"
  flutter_web_plugins:
    dependency: transitive
    description: flutter
    source: sdk
    version: "0.0.0"
  freezed_annotation:
    dependency: transitive
    description:
      name: freezed_annotation
      sha256: c2e2d632dd9b8a2b7751117abcfc2b4888ecfe181bd9fca7170d9ef02e595fe2
      url: "https://pub.dev"
    source: hosted
    version: "2.4.4"
  get:
    dependency: "direct main"
    description:
      name: get
      sha256: e4e7335ede17452b391ed3b2ede016545706c01a02292a6c97619705e7d2a85e
      url: "https://pub.dev"
    source: hosted
    version: "4.6.6"
  html:
    dependency: transitive
    description:
      name: html
      sha256: "3a7812d5bcd2894edf53dfaf8cd640876cf6cef50a8f238745c8b8120ea74d3a"
      url: "https://pub.dev"
    source: hosted
    version: "0.15.4"
  http:
    dependency: "direct main"
    description:
      name: http
      sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010
      url: "https://pub.dev"
    source: hosted
    version: "1.2.2"
  http_parser:
    dependency: transitive
    description:
      name: http_parser
      sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"
      url: "https://pub.dev"
    source: hosted
    version: "4.0.2"
  intl:
    dependency: "direct main"
    description:
      name: intl
      sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d"
      url: "https://pub.dev"
    source: hosted
    version: "0.18.1"
  json_annotation:
    dependency: transitive
    description:
      name: json_annotation
      sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1"
      url: "https://pub.dev"
    source: hosted
    version: "4.9.0"
  keyboard_actions:
    dependency: "direct main"
    description:
      name: keyboard_actions
      sha256: "5f47285bb4c9aebee4f0e29655ab0fb9da3ac931bc9fe1fbc5d2c5d7d955b81e"
      url: "https://pub.dev"
    source: hosted
    version: "3.4.7"
  leak_tracker:
    dependency: transitive
    description:
      name: leak_tracker
      sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a"
      url: "https://pub.dev"
    source: hosted
    version: "10.0.4"
  leak_tracker_flutter_testing:
    dependency: transitive
    description:
      name: leak_tracker_flutter_testing
      sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8"
      url: "https://pub.dev"
    source: hosted
    version: "3.0.3"
  leak_tracker_testing:
    dependency: transitive
    description:
      name: leak_tracker_testing
      sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
      url: "https://pub.dev"
    source: hosted
    version: "3.0.1"
  lints:
    dependency: transitive
    description:
      name: lints
      sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.1"
  list_counter:
    dependency: transitive
    description:
      name: list_counter
      sha256: c447ae3dfcd1c55f0152867090e67e219d42fe6d4f2807db4bbe8b8d69912237
      url: "https://pub.dev"
    source: hosted
    version: "1.0.2"
  matcher:
    dependency: transitive
    description:
      name: matcher
      sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
      url: "https://pub.dev"
    source: hosted
    version: "0.12.16+1"
  material_color_utilities:
    dependency: transitive
    description:
      name: material_color_utilities
      sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
      url: "https://pub.dev"
    source: hosted
    version: "0.8.0"
  meta:
    dependency: transitive
    description:
      name: meta
      sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
      url: "https://pub.dev"
    source: hosted
    version: "1.12.0"
  octo_image:
    dependency: transitive
    description:
      name: octo_image
      sha256: "34faa6639a78c7e3cbe79be6f9f96535867e879748ade7d17c9b1ae7536293bd"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.0"
  path:
    dependency: transitive
    description:
      name: path
      sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
      url: "https://pub.dev"
    source: hosted
    version: "1.9.0"
  path_provider:
    dependency: transitive
    description:
      name: path_provider
      sha256: fec0d61223fba3154d87759e3cc27fe2c8dc498f6386c6d6fc80d1afdd1bf378
      url: "https://pub.dev"
    source: hosted
    version: "2.1.4"
  path_provider_android:
    dependency: transitive
    description:
      name: path_provider_android
      sha256: "6f01f8e37ec30b07bc424b4deabac37cacb1bc7e2e515ad74486039918a37eb7"
      url: "https://pub.dev"
    source: hosted
    version: "2.2.10"
  path_provider_foundation:
    dependency: transitive
    description:
      name: path_provider_foundation
      sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16
      url: "https://pub.dev"
    source: hosted
    version: "2.4.0"
  path_provider_linux:
    dependency: transitive
    description:
      name: path_provider_linux
      sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279
      url: "https://pub.dev"
    source: hosted
    version: "2.2.1"
  path_provider_platform_interface:
    dependency: transitive
    description:
      name: path_provider_platform_interface
      sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.2"
  path_provider_windows:
    dependency: transitive
    description:
      name: path_provider_windows
      sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7
      url: "https://pub.dev"
    source: hosted
    version: "2.3.0"
  permission_handler:
    dependency: "direct main"
    description:
      name: permission_handler
      sha256: "18bf33f7fefbd812f37e72091a15575e72d5318854877e0e4035a24ac1113ecb"
      url: "https://pub.dev"
    source: hosted
    version: "11.3.1"
  permission_handler_android:
    dependency: transitive
    description:
      name: permission_handler_android
      sha256: "76e4ab092c1b240d31177bb64d2b0bea43f43d0e23541ec866151b9f7b2490fa"
      url: "https://pub.dev"
    source: hosted
    version: "12.0.12"
  permission_handler_apple:
    dependency: transitive
    description:
      name: permission_handler_apple
      sha256: e6f6d73b12438ef13e648c4ae56bd106ec60d17e90a59c4545db6781229082a0
      url: "https://pub.dev"
    source: hosted
    version: "9.4.5"
  permission_handler_html:
    dependency: transitive
    description:
      name: permission_handler_html
      sha256: af26edbbb1f2674af65a8f4b56e1a6f526156bc273d0e65dd8075fab51c78851
      url: "https://pub.dev"
    source: hosted
    version: "0.1.3+2"
  permission_handler_platform_interface:
    dependency: transitive
    description:
      name: permission_handler_platform_interface
      sha256: fe0ffe274d665be8e34f9c59705441a7d248edebbe5d9e3ec2665f88b79358ea
      url: "https://pub.dev"
    source: hosted
    version: "4.2.2"
  permission_handler_windows:
    dependency: transitive
    description:
      name: permission_handler_windows
      sha256: "1a790728016f79a41216d88672dbc5df30e686e811ad4e698bfc51f76ad91f1e"
      url: "https://pub.dev"
    source: hosted
    version: "0.2.1"
  platform:
    dependency: transitive
    description:
      name: platform
      sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65"
      url: "https://pub.dev"
    source: hosted
    version: "3.1.5"
  plugin_platform_interface:
    dependency: transitive
    description:
      name: plugin_platform_interface
      sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.8"
  rxdart:
    dependency: transitive
    description:
      name: rxdart
      sha256: "5c3004a4a8dbb94bd4bf5412a4def4acdaa12e12f269737a5751369e12d1a962"
      url: "https://pub.dev"
    source: hosted
    version: "0.28.0"
  shared_preferences:
    dependency: "direct main"
    description:
      name: shared_preferences
      sha256: "746e5369a43170c25816cc472ee016d3a66bc13fcf430c0bc41ad7b4b2922051"
      url: "https://pub.dev"
    source: hosted
    version: "2.3.2"
  shared_preferences_android:
    dependency: transitive
    description:
      name: shared_preferences_android
      sha256: "480ba4345773f56acda9abf5f50bd966f581dac5d514e5fc4a18c62976bbba7e"
      url: "https://pub.dev"
    source: hosted
    version: "2.3.2"
  shared_preferences_foundation:
    dependency: transitive
    description:
      name: shared_preferences_foundation
      sha256: c4b35f6cb8f63c147312c054ce7c2254c8066745125264f0c88739c417fc9d9f
      url: "https://pub.dev"
    source: hosted
    version: "2.5.2"
  shared_preferences_linux:
    dependency: transitive
    description:
      name: shared_preferences_linux
      sha256: "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f"
      url: "https://pub.dev"
    source: hosted
    version: "2.4.1"
  shared_preferences_platform_interface:
    dependency: transitive
    description:
      name: shared_preferences_platform_interface
      sha256: "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80"
      url: "https://pub.dev"
    source: hosted
    version: "2.4.1"
  shared_preferences_web:
    dependency: transitive
    description:
      name: shared_preferences_web
      sha256: d2ca4132d3946fec2184261726b355836a82c33d7d5b67af32692aff18a4684e
      url: "https://pub.dev"
    source: hosted
    version: "2.4.2"
  shared_preferences_windows:
    dependency: transitive
    description:
      name: shared_preferences_windows
      sha256: "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1"
      url: "https://pub.dev"
    source: hosted
    version: "2.4.1"
  sky_engine:
    dependency: transitive
    description: flutter
    source: sdk
    version: "0.0.99"
  source_span:
    dependency: transitive
    description:
      name: source_span
      sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
      url: "https://pub.dev"
    source: hosted
    version: "1.10.0"
  sprintf:
    dependency: transitive
    description:
      name: sprintf
      sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23"
      url: "https://pub.dev"
    source: hosted
    version: "7.0.0"
  sqflite:
    dependency: transitive
    description:
      name: sqflite
      sha256: a43e5a27235518c03ca238e7b4732cf35eabe863a369ceba6cbefa537a66f16d
      url: "https://pub.dev"
    source: hosted
    version: "2.3.3+1"
  sqflite_common:
    dependency: transitive
    description:
      name: sqflite_common
      sha256: "3da423ce7baf868be70e2c0976c28a1bb2f73644268b7ffa7d2e08eab71f16a4"
      url: "https://pub.dev"
    source: hosted
    version: "2.5.4"
  stack_trace:
    dependency: transitive
    description:
      name: stack_trace
      sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
      url: "https://pub.dev"
    source: hosted
    version: "1.11.1"
  stream_channel:
    dependency: transitive
    description:
      name: stream_channel
      sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
      url: "https://pub.dev"
    source: hosted
    version: "2.1.2"
  string_scanner:
    dependency: transitive
    description:
      name: string_scanner
      sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
      url: "https://pub.dev"
    source: hosted
    version: "1.2.0"
  synchronized:
    dependency: transitive
    description:
      name: synchronized
      sha256: "539ef412b170d65ecdafd780f924e5be3f60032a1128df156adad6c5b373d558"
      url: "https://pub.dev"
    source: hosted
    version: "3.1.0+1"
  term_glyph:
    dependency: transitive
    description:
      name: term_glyph
      sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
      url: "https://pub.dev"
    source: hosted
    version: "1.2.1"
  test_api:
    dependency: transitive
    description:
      name: test_api
      sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
      url: "https://pub.dev"
    source: hosted
    version: "0.7.0"
  timer_count_down:
    dependency: "direct main"
    description:
      name: timer_count_down
      sha256: d025d408c2654e497ca0bd4bde014bd7509d4c6397af4ed23a0f9b692bbcf337
      url: "https://pub.dev"
    source: hosted
    version: "2.2.2"
  typed_data:
    dependency: transitive
    description:
      name: typed_data
      sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
      url: "https://pub.dev"
    source: hosted
    version: "1.3.2"
  url_launcher:
    dependency: "direct main"
    description:
      name: url_launcher
      sha256: "21b704ce5fa560ea9f3b525b43601c678728ba46725bab9b01187b4831377ed3"
      url: "https://pub.dev"
    source: hosted
    version: "6.3.0"
  url_launcher_android:
    dependency: transitive
    description:
      name: url_launcher_android
      sha256: f0c73347dfcfa5b3db8bc06e1502668265d39c08f310c29bff4e28eea9699f79
      url: "https://pub.dev"
    source: hosted
    version: "6.3.9"
  url_launcher_ios:
    dependency: transitive
    description:
      name: url_launcher_ios
      sha256: e43b677296fadce447e987a2f519dcf5f6d1e527dc35d01ffab4fff5b8a7063e
      url: "https://pub.dev"
    source: hosted
    version: "6.3.1"
  url_launcher_linux:
    dependency: transitive
    description:
      name: url_launcher_linux
      sha256: e2b9622b4007f97f504cd64c0128309dfb978ae66adbe944125ed9e1750f06af
      url: "https://pub.dev"
    source: hosted
    version: "3.2.0"
  url_launcher_macos:
    dependency: transitive
    description:
      name: url_launcher_macos
      sha256: "9a1a42d5d2d95400c795b2914c36fdcb525870c752569438e4ebb09a2b5d90de"
      url: "https://pub.dev"
    source: hosted
    version: "3.2.0"
  url_launcher_platform_interface:
    dependency: transitive
    description:
      name: url_launcher_platform_interface
      sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029"
      url: "https://pub.dev"
    source: hosted
    version: "2.3.2"
  url_launcher_web:
    dependency: transitive
    description:
      name: url_launcher_web
      sha256: "772638d3b34c779ede05ba3d38af34657a05ac55b06279ea6edd409e323dca8e"
      url: "https://pub.dev"
    source: hosted
    version: "2.3.3"
  url_launcher_windows:
    dependency: transitive
    description:
      name: url_launcher_windows
      sha256: "49c10f879746271804767cb45551ec5592cdab00ee105c06dddde1a98f73b185"
      url: "https://pub.dev"
    source: hosted
    version: "3.1.2"
  uuid:
    dependency: transitive
    description:
      name: uuid
      sha256: "83d37c7ad7aaf9aa8e275490669535c8080377cfa7a7004c24dfac53afffaa90"
      url: "https://pub.dev"
    source: hosted
    version: "4.4.2"
  vector_math:
    dependency: transitive
    description:
      name: vector_math
      sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.4"
  vm_service:
    dependency: transitive
    description:
      name: vm_service
      sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec"
      url: "https://pub.dev"
    source: hosted
    version: "14.2.1"
  web:
    dependency: transitive
    description:
      name: web
      sha256: d43c1d6b787bf0afad444700ae7f4db8827f701bc61c255ac8d328c6f4d52062
      url: "https://pub.dev"
    source: hosted
    version: "1.0.0"
  xdg_directories:
    dependency: transitive
    description:
      name: xdg_directories
      sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d
      url: "https://pub.dev"
    source: hosted
    version: "1.0.4"
sdks:
  dart: ">=3.4.0 <4.0.0"
  flutter: ">=3.22.0"

Steps to reproduce
While running the app there is no issue with this package, but while uploading it on the App Store, the build got rejected with the mentioned issue.
Expected results
The url_launcher_ios should has the Signature to support the Apple Privacy Mandate.
Actual results
The Signature is missing from the url_launcher_ios package.
Code sample
Code sample
Code Sample Not Needed.

Screenshots or Videos

Screenshots / Video demonstration

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.22.1, on macOS 13.6.9 22G830 darwin-arm64, locale en-IN)
    • Flutter version 3.22.1 on channel stable at /Users/swaraj.patil/FlutterSDK/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision a14f74ff3a (4 months ago), 2024-05-22 11:08:21 -0500
    • Engine revision 55eae6864b
    • Dart version 3.4.1
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/swaraj.patil/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Users/swaraj.patil/Downloads/Xcode.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] VS Code (version 1.93.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.96.0

[✓] Connected device (3 available)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 13.6.9 22G830 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 13.6.9 22G830 darwin-arm64
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 128.0.6613.137

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Closing as duplicate of https://github.com/flutter/flutter/issues/148300

source: gharchive/issue

authors: darshankawar swaraj-raw

repo: flutter/flutter

license_type: permissive

license_source: github-api


text:
Flutter macOS app crashes when hot reloading on Flutter 3.24: become: Cannot forward to multiple targets

Steps to reproduce
So far no clear steps to reproduce, happens almost randomly.
Actual results
No crashes on Flutter 3.22 with Xcode 14
Logs

Logs

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               myapp [12326]
Path:                  /Users/USER/*/myapp.app/Contents/MacOS/myapp
Identifier:            net.cwsoft.myapp
Version:               0.0.71 (347)
Code Type:             ARM-64 (Native)
Parent Process:        dart [93106]
Responsible:           iTerm2 [510]
User ID:               501

Date/Time:             2024-11-01 16:54:04.6252 -0700
OS Version:            macOS 15.0 (24A335)
Report Version:        12
Anonymous UUID:        97DB99AA-F6D0-66CF-96CA-1C19F2F1D6F7

Sleep/Wake UUID:       4D1E5F22-30D2-4466-8CF3-CEB8ED2A2E4F

Time Awake Since Boot: 41000 seconds
Time Since Wake:       4688 seconds

System Integrity Protection: disabled

Crashed Thread:        25  DartWorker

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x00000000000002b8
Exception Codes:       0x0000000000000001, 0x00000000000002b8

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [12326]

VM Region Info: 0x2b8 is not in any region.  Bytes before following region: 4332207432
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->
      __TEXT                      102384000-102388000    [   16K] r-x/r-x SM=COW  /Users/USER/*/myapp.app/Contents/MacOS/myapp

Thread 0::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x18662de34 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1866405d0 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x1866369d8 mach_msg_overwrite + 480
3   libsystem_kernel.dylib        	       0x18662e17c mach_msg + 24
4   CoreFoundation                	       0x1867565bc __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x186754e6c __CFRunLoopRun + 1212
6   CoreFoundation                	       0x186754334 CFRunLoopRunSpecific + 572
7   HIToolbox                     	       0x191b8c0cc RunCurrentEventLoopInMode + 292
8   HIToolbox                     	       0x191b91ebc ReceiveNextEventCommon + 636
9   HIToolbox                     	       0x191b92020 _BlockUntilNextEventMatchingListInModeWithFilter + 76
10  AppKit                        	       0x18a297a70 _DPSNextEvent + 660
11  AppKit                        	       0x18abbd7b8 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
12  AppKit                        	       0x18a28ab7c -[NSApplication run] + 480
13  AppKit                        	       0x18a26144c NSApplicationMain + 888
14  myapp.debug.dylib        	       0x10260bad8 static NSApplicationDelegate.main() + 40
15  myapp.debug.dylib        	       0x10260baa0 static AppDelegate.$main() + 44
16  myapp.debug.dylib        	       0x10260bb40 __debug_main_executable_dylib_entry_point + 28 (AppDelegate.swift:6)
17  dyld                          	       0x1862ec274 start + 2840

Thread 1:: io.flutter.ui
0   libsystem_kernel.dylib        	       0x1866315cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18666f894 _pthread_cond_wait + 1204
2   FlutterMacOS                  	       0x10df79bb8 dart::Monitor::WaitMicros(long long) + 152
3   FlutterMacOS                  	       0x10e040c38 dart::SafepointHandler::ExitSafepointLocked(dart::Thread*, dart::MonitorLocker*, dart::SafepointLevel) + 160
4   FlutterMacOS                  	       0x10e041110 dart::SafepointHandler::BlockForSafepoint(dart::Thread*) + 248
5   FlutterMacOS                  	       0x10de9af64 dart::IsolateMessageHandler::HandleLibMessage(dart::Array const&) + 540
6   FlutterMacOS                  	       0x10de9cb34 dart::IsolateMessageHandler::HandleMessage(std::_fl::unique_ptr<dart::Message, std::_fl::default_delete<dart::Message>>) + 660
7   FlutterMacOS                  	       0x10dec78c8 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool) + 324
8   FlutterMacOS                  	       0x10dec7adc dart::MessageHandler::HandleOOBMessages() + 96
9   FlutterMacOS                  	       0x10e2771f8 Dart_HandleServiceMessages + 332
10  FlutterMacOS                  	       0x10dea1d60 dart::Isolate::PauseEventHandler() + 160
11  FlutterMacOS                  	       0x10de793a8 dart::Debugger::Pause(dart::ServiceEvent*) + 272
12  FlutterMacOS                  	       0x10de78ef0 dart::Debugger::PauseRequest(dart::ServiceEvent::EventKind) + 236
13  FlutterMacOS                  	       0x10de9e8b8 dart::Isolate::PausePostRequest() + 40
14  FlutterMacOS                  	       0x10de9ca78 dart::IsolateMessageHandler::HandleMessage(std::_fl::unique_ptr<dart::Message, std::_fl::default_delete<dart::Message>>) + 472
15  FlutterMacOS                  	       0x10dec78c8 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool) + 324
16  FlutterMacOS                  	       0x10dec7a40 dart::MessageHandler::HandleNextMessage() + 88
17  FlutterMacOS                  	       0x10e276ec8 Dart_HandleMessage + 284
18  FlutterMacOS                  	       0x10dd400b0 tonic::DartMessageHandler::OnHandleMessage(tonic::DartState*) + 188
19  FlutterMacOS                  	       0x10dd40614 std::_fl::__function::__func<tonic::DartMessageHandler::OnMessage(tonic::DartState*)::$_0, std::_fl::allocator<tonic::DartMessageHandler::OnMessage(tonic::DartState*)::$_0>, void ()>::operator()() + 72
20  FlutterMacOS                  	       0x10ddd2050 std::_fl::__function::__func<flutter::DartIsolate::SetMessageHandlingTaskRunner(fml::RefPtr<fml::TaskRunner> const&, bool)::$_1::operator()(std::_fl::function<void ()>) const::'lambda'(), std::_fl::allocator<flutter::DartIsolate::SetMessageHandlingTaskRunner(fml::RefPtr<fml::TaskRunner> const&, bool)::$_1::operator()(std::_fl::function<void ()>) const::'lambda'()>, void ()>::operator()() + 84
21  FlutterMacOS                  	       0x10d5eff84 fml::MessageLoopImpl::FlushTasks(fml::FlushType) + 252
22  FlutterMacOS                  	       0x10d5f9630 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 52
23  CoreFoundation                	       0x186770184 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
24  CoreFoundation                	       0x18676fe28 __CFRunLoopDoTimer + 1012
25  CoreFoundation                	       0x18676f938 __CFRunLoopDoTimers + 356
26  CoreFoundation                	       0x1867550f0 __CFRunLoopRun + 1856
27  CoreFoundation                	       0x186754334 CFRunLoopRunSpecific + 572
28  FlutterMacOS                  	       0x10d5f98cc fml::MessageLoopDarwin::Run() + 188
29  FlutterMacOS                  	       0x10d5efd80 fml::MessageLoopImpl::DoRun() + 60
30  FlutterMacOS                  	       0x10d5f7858 std::_fl::__function::__func<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0, std::_fl::allocator<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0>, void ()>::operator()() + 200
31  FlutterMacOS                  	       0x10d5f7310 fml::ThreadHandle::ThreadHandle(std::_fl::function<void ()>&&)::$_0::__invoke(void*) + 56
32  libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
33  libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 2:: io.flutter.raster
0   libsystem_kernel.dylib        	       0x18662de34 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1866405d0 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x1866369d8 mach_msg_overwrite + 480
3   libsystem_kernel.dylib        	       0x18662e17c mach_msg + 24
4   CoreFoundation                	       0x1867565bc __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x186754e6c __CFRunLoopRun + 1212
6   CoreFoundation                	       0x186754334 CFRunLoopRunSpecific + 572
7   FlutterMacOS                  	       0x10d5f98cc fml::MessageLoopDarwin::Run() + 188
8   FlutterMacOS                  	       0x10d5efd80 fml::MessageLoopImpl::DoRun() + 60
9   FlutterMacOS                  	       0x10d5f7858 std::_fl::__function::__func<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0, std::_fl::allocator<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0>, void ()>::operator()() + 200
10  FlutterMacOS                  	       0x10d5f7310 fml::ThreadHandle::ThreadHandle(std::_fl::function<void ()>&&)::$_0::__invoke(void*) + 56
11  libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
12  libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 3:: io.flutter.io
0   libsystem_kernel.dylib        	       0x18662de34 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1866405d0 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x1866369d8 mach_msg_overwrite + 480
3   libsystem_kernel.dylib        	       0x18662e17c mach_msg + 24
4   CoreFoundation                	       0x1867565bc __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x186754e6c __CFRunLoopRun + 1212
6   CoreFoundation                	       0x186754334 CFRunLoopRunSpecific + 572
7   FlutterMacOS                  	       0x10d5f98cc fml::MessageLoopDarwin::Run() + 188
8   FlutterMacOS                  	       0x10d5efd80 fml::MessageLoopImpl::DoRun() + 60
9   FlutterMacOS                  	       0x10d5f7858 std::_fl::__function::__func<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0, std::_fl::allocator<fml::Thread::Thread(std::_fl::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0>, void ()>::operator()() + 200
10  FlutterMacOS                  	       0x10d5f7310 fml::ThreadHandle::ThreadHandle(std::_fl::function<void ()>&&)::$_0::__invoke(void*) + 56
11  libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
12  libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 4:: io.worker.1
0   libsystem_kernel.dylib        	       0x1866315cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18666f894 _pthread_cond_wait + 1204
2   FlutterMacOS                  	       0x10d5b8c64 std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&) + 44
3   FlutterMacOS                  	       0x10d5ea78c fml::ConcurrentMessageLoop::WorkerMain() + 148
4   FlutterMacOS                  	       0x10d5eb458 void* std::_fl::__thread_proxy[abi:v15000]<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 176
5   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
6   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 5:: io.worker.2
0   libsystem_kernel.dylib        	       0x1866315cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18666f894 _pthread_cond_wait + 1204
2   FlutterMacOS                  	       0x10d5b8c64 std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&) + 44
3   FlutterMacOS                  	       0x10d5ea78c fml::ConcurrentMessageLoop::WorkerMain() + 148
4   FlutterMacOS                  	       0x10d5eb458 void* std::_fl::__thread_proxy[abi:v15000]<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 176
5   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
6   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 6:: io.worker.3
0   libsystem_kernel.dylib        	       0x1866315cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18666f894 _pthread_cond_wait + 1204
2   FlutterMacOS                  	       0x10d5b8c64 std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&) + 44
3   FlutterMacOS                  	       0x10d5ea78c fml::ConcurrentMessageLoop::WorkerMain() + 148
4   FlutterMacOS                  	       0x10d5eb458 void* std::_fl::__thread_proxy[abi:v15000]<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 176
5   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
6   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 7:: io.worker.4
0   libsystem_kernel.dylib        	       0x1866315cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18666f894 _pthread_cond_wait + 1204
2   FlutterMacOS                  	       0x10d5b8c64 std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&) + 44
3   FlutterMacOS                  	       0x10d5ea78c fml::ConcurrentMessageLoop::WorkerMain() + 148
4   FlutterMacOS                  	       0x10d5eb458 void* std::_fl::__thread_proxy[abi:v15000]<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 176
5   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
6   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 8:: dart:io EventHandler
0   libsystem_kernel.dylib        	       0x186633efc kevent + 8
1   FlutterMacOS                  	       0x10dd9e54c dart::bin::EventHandlerImplementation::EventHandlerEntry(unsigned long) + 300
2   FlutterMacOS                  	       0x10ddc5cc8 dart::bin::ThreadStart(void*) + 88
3   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
4   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 9:: Dart Profiler ThreadInterrupter
0   libsystem_kernel.dylib        	       0x18662de34 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1866405d0 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x18665d424 thread_suspend + 108
3   FlutterMacOS                  	       0x10dffb194 dart::ThreadInterrupter::InterruptThread(dart::OSThread*) + 92
4   FlutterMacOS                  	       0x10dffad88 dart::ThreadInterrupter::ThreadMain(unsigned long) + 520
5   FlutterMacOS                  	       0x10df78fa0 dart::ThreadStart(void*) + 204
6   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
7   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 10:: Dart Profiler SampleBlockProcessor
0   libsystem_kernel.dylib        	       0x1866315cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18666f894 _pthread_cond_wait + 1204
2   FlutterMacOS                  	       0x10df79bb8 dart::Monitor::WaitMicros(long long) + 152
3   FlutterMacOS                  	       0x10dff6b8c dart::Thread::AddActiveThread(dart::IsolateGroup*, dart::Isolate*, bool, bool) + 104
4   FlutterMacOS                  	       0x10dff7228 dart::Thread::EnterIsolateGroupAsHelper(dart::IsolateGroup*, dart::Thread::TaskKind, bool) + 52
5   FlutterMacOS                  	       0x10df7fe94 std::_fl::__function::__func<dart::SampleBlockProcessor::ThreadMain(unsigned long)::$_0, std::_fl::allocator<dart::SampleBlockProcessor::ThreadMain(unsigned long)::$_0>, void (dart::IsolateGroup*)>::operator()(dart::IsolateGroup*&&) + 80
6   FlutterMacOS                  	       0x10de98ec0 dart::IsolateGroup::ForEach(std::_fl::function<void (dart::IsolateGroup*)>) + 212
7   FlutterMacOS                  	       0x10df7f07c dart::SampleBlockProcessor::ThreadMain(unsigned long) + 312
8   FlutterMacOS                  	       0x10df78fa0 dart::ThreadStart(void*) + 204
9   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
10  libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 11:: DartWorker
0   libsystem_kernel.dylib        	       0x1866315cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18666f8c0 _pthread_cond_wait + 1248
2   FlutterMacOS                  	       0x10df79ba0 dart::Monitor::WaitMicros(long long) + 128
3   FlutterMacOS                  	       0x10dffbdac dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 504
4   FlutterMacOS                  	       0x10dffbf90 dart::ThreadPool::Worker::Main(unsigned long) + 136
5   FlutterMacOS                  	       0x10df78fa0 dart::ThreadStart(void*) + 204
6   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
7   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 12:: DartWorker
0   libsystem_kernel.dylib        	       0x1866315cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18666f8c0 _pthread_cond_wait + 1248
2   FlutterMacOS                  	       0x10df79ba0 dart::Monitor::WaitMicros(long long) + 128
3   FlutterMacOS                  	       0x10dffbdac dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 504
4   FlutterMacOS                  	       0x10dffbf90 dart::ThreadPool::Worker::Main(unsigned long) + 136
5   FlutterMacOS                  	       0x10df78fa0 dart::ThreadStart(void*) + 204
6   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
7   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 13:: DartWorker
0   libsystem_kernel.dylib        	       0x1866315cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18666f8c0 _pthread_cond_wait + 1248
2   FlutterMacOS                  	       0x10df79ba0 dart::Monitor::WaitMicros(long long) + 128
3   FlutterMacOS                  	       0x10dffbdac dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 504
4   FlutterMacOS                  	       0x10dffbf90 dart::ThreadPool::Worker::Main(unsigned long) + 136
5   FlutterMacOS                  	       0x10df78fa0 dart::ThreadStart(void*) + 204
6   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
7   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 14:
0   libsystem_pthread.dylib       	       0x18666a0e8 start_wqthread + 0

Thread 15:: DartWorker
0   libsystem_kernel.dylib        	       0x1866315cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18666f8c0 _pthread_cond_wait + 1248
2   FlutterMacOS                  	       0x10df79ba0 dart::Monitor::WaitMicros(long long) + 128
3   FlutterMacOS                  	       0x10de972cc dart::MutatorThreadPool::OnEnterIdleLocked(dart::MonitorLocker*) + 156
4   FlutterMacOS                  	       0x10dffbc4c dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 152
5   FlutterMacOS                  	       0x10dffbf90 dart::ThreadPool::Worker::Main(unsigned long) + 136
6   FlutterMacOS                  	       0x10df78fa0 dart::ThreadStart(void*) + 204
7   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
8   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 16:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	       0x18662de34 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1866405d0 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x1866369d8 mach_msg_overwrite + 480
3   libsystem_kernel.dylib        	       0x18662e17c mach_msg + 24
4   CoreFoundation                	       0x1867565bc __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x186754e6c __CFRunLoopRun + 1212
6   CoreFoundation                	       0x186754334 CFRunLoopRunSpecific + 572
7   AppKit                        	       0x18a3bcbc4 _NSEventThread + 148
8   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
9   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 17:: DartWorker
0   libsystem_kernel.dylib        	       0x1866315cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18666f8c0 _pthread_cond_wait + 1248
2   FlutterMacOS                  	       0x10df79ba0 dart::Monitor::WaitMicros(long long) + 128
3   FlutterMacOS                  	       0x10dffbdac dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 504
4   FlutterMacOS                  	       0x10dffbf90 dart::ThreadPool::Worker::Main(unsigned long) + 136
5   FlutterMacOS                  	       0x10df78fa0 dart::ThreadStart(void*) + 204
6   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
7   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 18:: DartWorker
0   libsystem_kernel.dylib        	       0x1866315cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18666f8c0 _pthread_cond_wait + 1248
2   FlutterMacOS                  	       0x10df79ba0 dart::Monitor::WaitMicros(long long) + 128
3   FlutterMacOS                  	       0x10dffbdac dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 504
4   FlutterMacOS                  	       0x10dffbf90 dart::ThreadPool::Worker::Main(unsigned long) + 136
5   FlutterMacOS                  	       0x10df78fa0 dart::ThreadStart(void*) + 204
6   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
7   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 19:: network_thread 0x0x600002b07840
0   libsystem_kernel.dylib        	       0x186638e9c __select + 8
1   WebRTC                        	       0x10547078c rtc::PhysicalSocketServer::WaitSelect(int, bool) + 680
2   WebRTC                        	       0x1054704d4 rtc::PhysicalSocketServer::Wait(webrtc::TimeDelta, bool) + 164
3   WebRTC                        	       0x105472aa8 rtc::Thread::Get(int) + 484
4   WebRTC                        	       0x105471e94 rtc::Thread::ProcessMessages(int) + 168
5   WebRTC                        	       0x105473530 rtc::Thread::PreRun(void*) + 96
6   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
7   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 20:: worker_thread 0x0x600002b07930
0   libsystem_kernel.dylib        	       0x1866315cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18666f894 _pthread_cond_wait + 1204
2   WebRTC                        	       0x105452228 rtc::Event::Wait(webrtc::TimeDelta, webrtc::TimeDelta) + 624
3   WebRTC                        	       0x105475a4c rtc::NullSocketServer::Wait(webrtc::TimeDelta, bool) + 20
4   WebRTC                        	       0x105472aa8 rtc::Thread::Get(int) + 484
5   WebRTC                        	       0x105471e94 rtc::Thread::ProcessMessages(int) + 168
6   WebRTC                        	       0x105473530 rtc::Thread::PreRun(void*) + 96
7   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
8   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 21:: signaling_thread 0x0x600002b07a20
0   libsystem_kernel.dylib        	       0x1866315cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18666f894 _pthread_cond_wait + 1204
2   WebRTC                        	       0x105452228 rtc::Event::Wait(webrtc::TimeDelta, webrtc::TimeDelta) + 624
3   WebRTC                        	       0x105475a4c rtc::NullSocketServer::Wait(webrtc::TimeDelta, bool) + 20
4   WebRTC                        	       0x105472aa8 rtc::Thread::Get(int) + 484
5   WebRTC                        	       0x105471e94 rtc::Thread::ProcessMessages(int) + 168
6   WebRTC                        	       0x105473530 rtc::Thread::PreRun(void*) + 96
7   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
8   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 22:: caulk.messenger.shared:17
0   libsystem_kernel.dylib        	       0x18662ddb0 semaphore_wait_trap + 8
1   caulk                         	       0x1916640e0 caulk::semaphore::timed_wait(double) + 220
2   caulk                         	       0x191663f8c caulk::concurrent::details::worker_thread::run() + 36
3   caulk                         	       0x191663c60 void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*>>>(void*) + 96
4   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
5   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 23:: caulk.messenger.shared:high
0   libsystem_kernel.dylib        	       0x18662ddb0 semaphore_wait_trap + 8
1   caulk                         	       0x1916640e0 caulk::semaphore::timed_wait(double) + 220
2   caulk                         	       0x191663f8c caulk::concurrent::details::worker_thread::run() + 36
3   caulk                         	       0x191663c60 void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*>>>(void*) + 96
4   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
5   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 24:
0   libsystem_pthread.dylib       	       0x18666a0e8 start_wqthread + 0

Thread 25 Crashed:: DartWorker
0   FlutterMacOS                  	       0x10e026674 dart::InvalidForwarding(dart::ObjectPtr, dart::ObjectPtr, char const*) + 172
1   FlutterMacOS                  	       0x10e0265c4 dart::Become::Forward() + 532
2   FlutterMacOS                  	       0x10deab30c dart::ProgramReloadContext::CommitAfterInstanceMorphing() + 144
3   FlutterMacOS                  	       0x10dea7718 dart::IsolateGroupReloadContext::Reload(bool, char const*, char const*, unsigned char const*, long) + 3528
4   FlutterMacOS                  	       0x10de9ec5c dart::IsolateGroup::ReloadSources(dart::JSONStream*, bool, char const*, char const*, bool) + 504
5   FlutterMacOS                  	       0x10dfd83c4 dart::ReloadSources(dart::Thread*, dart::JSONStream*) + 444
6   FlutterMacOS                  	       0x10dfcd894 dart::Service::InvokeMethod(dart::Isolate*, dart::Array const&, bool) + 708
7   FlutterMacOS                  	       0x10dfcde70 dart::Service::HandleIsolateMessage(dart::Isolate*, dart::Array const&) + 44
8   FlutterMacOS                  	       0x10de9ca78 dart::IsolateMessageHandler::HandleMessage(std::_fl::unique_ptr<dart::Message, std::_fl::default_delete<dart::Message>>) + 472
9   FlutterMacOS                  	       0x10dec78c8 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool) + 324
10  FlutterMacOS                  	       0x10dec7e1c dart::MessageHandler::TaskCallback() + 532
11  FlutterMacOS                  	       0x10dffbd08 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 340
12  FlutterMacOS                  	       0x10dffbf90 dart::ThreadPool::Worker::Main(unsigned long) + 136
13  FlutterMacOS                  	       0x10df78fa0 dart::ThreadStart(void*) + 204
14  libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
15  libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 26:: DartWorker
0   libsystem_kernel.dylib        	       0x1866315cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18666f8c0 _pthread_cond_wait + 1248
2   FlutterMacOS                  	       0x10df79ba0 dart::Monitor::WaitMicros(long long) + 128
3   FlutterMacOS                  	       0x10de972cc dart::MutatorThreadPool::OnEnterIdleLocked(dart::MonitorLocker*) + 156
4   FlutterMacOS                  	       0x10dffbc4c dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 152
5   FlutterMacOS                  	       0x10dffbf90 dart::ThreadPool::Worker::Main(unsigned long) + 136
6   FlutterMacOS                  	       0x10df78fa0 dart::ThreadStart(void*) + 204
7   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
8   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 27:: DartWorker
0   libsystem_kernel.dylib        	       0x1866315cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18666f8c0 _pthread_cond_wait + 1248
2   FlutterMacOS                  	       0x10df79ba0 dart::Monitor::WaitMicros(long long) + 128
3   FlutterMacOS                  	       0x10dffbdac dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 504
4   FlutterMacOS                  	       0x10dffbf90 dart::ThreadPool::Worker::Main(unsigned long) + 136
5   FlutterMacOS                  	       0x10df78fa0 dart::ThreadStart(void*) + 204
6   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
7   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 28:: DartWorker
0   libsystem_kernel.dylib        	       0x1866315cc __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x18666f8c0 _pthread_cond_wait + 1248
2   FlutterMacOS                  	       0x10df79ba0 dart::Monitor::WaitMicros(long long) + 128
3   FlutterMacOS                  	       0x10dffbdac dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 504
4   FlutterMacOS                  	       0x10dffbf90 dart::ThreadPool::Worker::Main(unsigned long) + 136
5   FlutterMacOS                  	       0x10df78fa0 dart::ThreadStart(void*) + 204
6   libsystem_pthread.dylib       	       0x18666f2e4 _pthread_start + 136
7   libsystem_pthread.dylib       	       0x18666a0fc thread_start + 8

Thread 29:
0   libsystem_pthread.dylib       	       0x18666a0e8 start_wqthread + 0

Thread 25 crashed with ARM Thread State (64-bit):
    x0: 0x00000003259286d0   x1: 0x00000003151142b1   x2: 0x0000000000000004   x3: 0x000000016ef89687
    x4: 0x000000018657e910   x5: 0x000000016ef89bd0   x6: 0x000000000000000a   x7: 0x0000000000003fff
    x8: 0x0000000000000000   x9: 0x1448270e0a36005a  x10: 0x1448270e0a36005a  x11: 0x1448270e0a36005a
   x12: 0x00000000fffffffd  x13: 0x0000000000000000  x14: 0x0000000000000000  x15: 0x0000000000000000
   x16: 0x0000000000000048  x17: 0x0000600003732ad0  x18: 0x0000000000000000  x19: 0x000000010fa936d4
   x20: 0x00000003259286d0  x21: 0x00000003259286c0  x22: 0x00000003151142b1  x23: 0x000000030dcbc991
   x24: 0x000000030dcbc990  x25: 0x0000000000000cce  x26: 0x000000032687a400  x27: 0x0000000000000001
   x28: 0x000000010fba5000   fp: 0x000000016ef89c10   lr: 0x000000010e02666c
    sp: 0x000000016ef89bd0   pc: 0x000000010e026674 cpsr: 0x60001000
   far: 0x00000000000002b8  esr: 0x92000006 (Data Abort) byte read Translation fault

Binary Images:
       0x102384000 -        0x102387fff net.cwsoft.myapp (0.0.71) <aa5b2bd8-2065-3c08-87a5-d61514db42f2> /Users/USER/*/myapp.app/Contents/MacOS/myapp
       0x102604000 -        0x102747fff myapp.debug.dylib (*) <cd95dca0-2f07-3fa0-9168-9a4d17513106> /Users/USER/*/myapp.app/Contents/MacOS/myapp.debug.dylib
       0x102400000 -        0x10242bfff org.cocoapods.AppAuth (1.7.5) <911e226b-5e33-38f9-8089-4ef6e6bdcf96> /Users/USER/*/myapp.app/Contents/Frameworks/AppAuth.framework/Versions/A/AppAuth
       0x102464000 -        0x102477fff org.cocoapods.FBLPromises (2.4.0) <2da30282-10fa-364c-953d-4677dd51b6ce> /Users/USER/*/myapp.app/Contents/Frameworks/FBLPromises.framework/Versions/A/FBLPromises
       0x1023b0000 -        0x1023b3fff org.cocoapods.FirebaseAppCheckInterop (11.4.0) <e7ef3995-ce27-3863-b399-95a8d0c97f36> /Users/USER/*/myapp.app/Contents/Frameworks/FirebaseAppCheckInterop.framework/Versions/A/FirebaseAppCheckInterop
       0x102b7c000 -        0x102caffff org.cocoapods.FirebaseAuth (11.2.0) <90debb68-abd0-34f7-a0db-bb7bedd1971f> /Users/USER/*/myapp.app/Contents/Frameworks/FirebaseAuth.framework/Versions/A/FirebaseAuth
       0x1023c4000 -        0x1023c7fff org.cocoapods.FirebaseAuthInterop (11.4.0) <a81fb525-00f7-3a27-ac1b-e2cfe1c3c1de> /Users/USER/*/myapp.app/Contents/Frameworks/FirebaseAuthInterop.framework/Versions/A/FirebaseAuthInterop
       0x1024cc000 -        0x1024dffff org.cocoapods.FirebaseCore (11.2.0) <3f3ee719-c5ed-32a8-9493-f0b2ef2341ed> /Users/USER/*/myapp.app/Contents/Frameworks/FirebaseCore.framework/Versions/A/FirebaseCore
       0x1023d8000 -        0x1023dbfff org.cocoapods.FirebaseCoreExtension (11.4.1) <ff2bfeb6-e720-3d19-bac0-2729a5afc4f1> /Users/USER/*/myapp.app/Contents/Frameworks/FirebaseCoreExtension.framework/Versions/A/FirebaseCoreExtension
       0x102574000 -        0x10259bfff org.cocoapods.FirebaseCoreInternal (11.4.2) <5f6d25d5-1ea8-3a0e-ab41-27433cd8b44e> /Users/USER/*/myapp.app/Contents/Frameworks/FirebaseCoreInternal.framework/Versions/A/FirebaseCoreInternal
       0x102870000 -        0x10288bfff org.cocoapods.FirebaseInstallations (11.4.0) <6c0e6c5e-fe12-312b-8446-4043e105cec3> /Users/USER/*/myapp.app/Contents/Frameworks/FirebaseInstallations.framework/Versions/A/FirebaseInstallations
       0x1028b4000 -        0x1028d7fff org.cocoapods.GTMAppAuth (4.1.1) <45ff6893-58aa-3d66-92ac-5f473070e358> /Users/USER/*/myapp.app/Contents/Frameworks/GTMAppAuth.framework/Versions/A/GTMAppAuth
       0x1029a8000 -        0x1029fbfff org.cocoapods.GTMSessionFetcher (3.5.0) <bdab6213-cc79-31b3-b8bc-395f3f1d94d6> /Users/USER/*/myapp.app/Contents/Frameworks/GTMSessionFetcher.framework/Versions/A/GTMSessionFetcher
       0x102500000 -        0x102513fff org.cocoapods.GoogleSignIn (7.1.0) <ec7982c7-7b1b-3d74-85c5-bd93486388a4> /Users/USER/*/myapp.app/Contents/Frameworks/GoogleSignIn.framework/Versions/A/GoogleSignIn
       0x102910000 -        0x10292bfff org.cocoapods.GoogleUtilities (8.0.2) <0869f0ab-fd63-396c-aed2-bcf7314dfae8> /Users/USER/*/myapp.app/Contents/Frameworks/GoogleUtilities.framework/Versions/A/GoogleUtilities
       0x102534000 -        0x102543fff org.cocoapods.OrderedSet (6.0.3) <142e3ab2-d281-35d3-8dec-e70142b4316b> /Users/USER/*/myapp.app/Contents/Frameworks/OrderedSet.framework/Versions/A/OrderedSet
       0x102a40000 -        0x102a5ffff org.cocoapods.PurchasesHybridCommon (11.1.0) <54d3cef7-1ef5-3255-964b-42475f591862> /Users/USER/*/myapp.app/Contents/Frameworks/PurchasesHybridCommon.framework/Versions/A/PurchasesHybridCommon
       0x10377c000 -        0x103b7ffff org.cocoapods.RevenueCat (4.43.2) <6810f5c0-a583-3f39-a7c1-7bd902e05617> /Users/USER/*/myapp.app/Contents/Frameworks/RevenueCat.framework/Versions/A/RevenueCat
       0x1031ac000 -        0x103313fff org.cocoapods.Sentry (8.36.0) <bf0425c4-b6c9-39fd-9475-faf970d96b2c> /Users/USER/*/myapp.app/Contents/Frameworks/Sentry.framework/Versions/A/Sentry
       0x105194000 -        0x105b67fff org.webrtc.WebRTC (1.0) <4c4c44c8-5555-3144-a156-e717f099f0e6> /Users/USER/*/myapp.app/Contents/Frameworks/WebRTC.framework/Versions/A/WebRTC
       0x102950000 -        0x102957fff org.cocoapods.app-links (1.0.0) <fc013812-6b90-3bea-bb53-5fcafac53a10> /Users/USER/*/myapp.app/Contents/Frameworks/app_links.framework/Versions/A/app_links
       0x102970000 -        0x10297ffff org.cocoapods.appkit-ui-element-colors (1.0.0) <ce28255e-443e-3dd5-ac1c-60b61d9b68a4> /Users/USER/*/myapp.app/Contents/Frameworks/appkit_ui_element_colors.framework/Versions/A/appkit_ui_element_colors
       0x102a94000 -        0x102a9ffff org.cocoapods.connectivity-plus (0.0.1) <c0dececc-aee4-3722-9f91-77e820e23567> /Users/USER/*/myapp.app/Contents/Frameworks/connectivity_plus.framework/Versions/A/connectivity_plus
       0x102abc000 -        0x102ac7fff org.cocoapods.device-info-plus (0.0.1) <9c0997dc-734f-3b20-a841-221fe657020e> /Users/USER/*/myapp.app/Contents/Frameworks/device_info_plus.framework/Versions/A/device_info_plus
       0x1025e8000 -        0x1025effff org.cocoapods.dynamic-color (0.0.2) <7ca83eb3-32d5-3f59-8529-384b148125e3> /Users/USER/*/myapp.app/Contents/Frameworks/dynamic_color.framework/Versions/A/dynamic_color
       0x102ae0000 -        0x102ae7fff org.cocoapods.file-saver (0.0.1) <d7815b15-7151-3f20-8332-739d61359354> /Users/USER/*/myapp.app/Contents/Frameworks/file_saver.framework/Versions/A/file_saver
       0x102e90000 -        0x102ea3fff org.cocoapods.file-selector-macos (0.0.1) <12189497-3bb9-3f9a-93b1-e7437c345260> /Users/USER/*/myapp.app/Contents/Frameworks/file_selector_macos.framework/Versions/A/file_selector_macos
       0x102b00000 -        0x102b0ffff org.cocoapods.flutter-image-compress-macos (1.0.0) <f1ce615f-ce7e-3d76-a4d6-a2273803192b> /Users/USER/*/myapp.app/Contents/Frameworks/flutter_image_compress_macos.framework/Versions/A/flutter_image_compress_macos
       0x1043ec000 -        0x104573fff org.cocoapods.flutter-inappwebview-macos (0.0.1) <66375369-6313-3257-b352-2da1bdce88fa> /Users/USER/*/myapp.app/Contents/Frameworks/flutter_inappwebview_macos.framework/Versions/A/flutter_inappwebview_macos
       0x102f38000 -        0x102f73fff org.cocoapods.flutter-webrtc (0.11.8) <7f570d46-368c-391f-a322-79053e07222d> /Users/USER/*/myapp.app/Contents/Frameworks/flutter_webrtc.framework/Versions/A/flutter_webrtc
       0x102b30000 -        0x102b3bfff org.cocoapods.gal (1.0.0) <eea83bca-5dd5-3100-9d73-59bcea4ff56d> /Users/USER/*/myapp.app/Contents/Frameworks/gal.framework/Versions/A/gal
       0x1023ec000 -        0x1023effff org.cocoapods.irondash-engine-context (0.0.1) <15e0b277-a75f-3ca0-8fc2-6654d55ad944> /Users/USER/*/myapp.app/Contents/Frameworks/irondash_engine_context.framework/Versions/A/irondash_engine_context
       0x102b58000 -        0x102b63fff org.cocoapods.macos-ui (0.1.0) <279d4026-60f7-3956-8ba2-ad4d28ac1f40> /Users/USER/*/myapp.app/Contents/Frameworks/macos_ui.framework/Versions/A/macos_ui
       0x10300c000 -        0x10303bfff org.cocoapods.macos-window-utils (1.0.0) <dc5f8422-2fae-31b1-9aef-3e06375756c0> /Users/USER/*/myapp.app/Contents/Frameworks/macos_window_utils.framework/Versions/A/macos_window_utils
       0x1024b0000 -        0x1024b7fff org.cocoapods.nanopb (3.30910.0) <5915aadb-90ee-3ad7-bbf1-26822b3f25fa> /Users/USER/*/myapp.app/Contents/Frameworks/nanopb.framework/Versions/A/nanopb
       0x102498000 -        0x10249bfff org.cocoapods.package-info-plus (0.0.1) <0e8de61f-476d-3892-a0f9-2f7a1f003c93> /Users/USER/*/myapp.app/Contents/Frameworks/package_info_plus.framework/Versions/A/package_info_plus
       0x102ef0000 -        0x102ef7fff org.cocoapods.path-provider-foundation (0.0.1) <e9e1fa81-0944-346e-b8ad-395f38c37226> /Users/USER/*/myapp.app/Contents/Frameworks/path_provider_foundation.framework/Versions/A/path_provider_foundation
       0x103078000 -        0x10309ffff org.cocoapods.pdfx (1.0.0) <ff18cb30-acc2-35d0-9932-8cdbdf056e9f> /Users/USER/*/myapp.app/Contents/Frameworks/pdfx.framework/Versions/A/pdfx
       0x102fd4000 -        0x102fe3fff org.cocoapods.quill-native-bridge-macos (0.0.1) <f7702928-e16b-3a5a-acb4-b366f5ac490a> /Users/USER/*/myapp.app/Contents/Frameworks/quill_native_bridge_macos.framework/Versions/A/quill_native_bridge_macos
       0x10708c000 -        0x10763bfff org.cocoapods.rive-common (0.0.1) <db0b5fdb-dd40-3a2f-8a55-63bae2518927> /Users/USER/*/myapp.app/Contents/Frameworks/rive_common.framework/Versions/A/rive_common
       0x103120000 -        0x10313bfff org.cocoapods.sentry-flutter (8.9.0) <ed4e49ca-9e19-36ae-8f09-a8edafa93e2d> /Users/USER/*/myapp.app/Contents/Frameworks/sentry_flutter.framework/Versions/A/sentry_flutter
       0x102fa0000 -        0x102fabfff org.cocoapods.share-plus (0.0.1) <3a11d506-3055-3850-a4c1-9e1aeb73403f> /Users/USER/*/myapp.app/Contents/Frameworks/share_plus.framework/Versions/A/share_plus
       0x103164000 -        0x103177fff org.cocoapods.shared-preferences-foundation (0.0.1) <2740a8c1-3d3c-38e9-be70-1cc4d63ba895> /Users/USER/*/myapp.app/Contents/Frameworks/shared_preferences_foundation.framework/Versions/A/shared_preferences_foundation
       0x1034d0000 -        0x1034e3fff org.cocoapods.sign-in-with-apple (0.0.1) <46cd917f-d2d4-3d23-b4a1-26e6dabc5cb9> /Users/USER/*/myapp.app/Contents/Frameworks/sign_in_with_apple.framework/Versions/A/sign_in_with_apple
       0x102f10000 -        0x102f17fff org.cocoapods.speech-to-text-macos (0.0.1) <81b601b2-7d27-32b1-8ec1-7fd5416ef24a> /Users/USER/*/myapp.app/Contents/Frameworks/speech_to_text_macos.framework/Versions/A/speech_to_text_macos
       0x1090c4000 -        0x1099bbfff org.cocoapods.super-native-extensions (0.0.1) <cb0fd3fc-3221-3e63-b31e-25908c1fc4c3> /Users/USER/*/myapp.app/Contents/Frameworks/super_native_extensions.framework/Versions/A/super_native_extensions
       0x10350c000 -        0x103517fff org.cocoapods.url-launcher-macos (0.0.1) <3417fe1d-2cc8-398d-a51b-c1bbdb6a80e3> /Users/USER/*/myapp.app/Contents/Frameworks/url_launcher_macos.framework/Versions/A/url_launcher_macos
       0x103538000 -        0x10354bfff org.cocoapods.video-player-avfoundation (0.0.1) <20253f81-f8db-3578-aa1c-d5243810d350> /Users/USER/*/myapp.app/Contents/Frameworks/video_player_avfoundation.framework/Versions/A/video_player_avfoundation
       0x10d578000 -        0x10fabbfff io.flutter.flutter-macos (1.0) <4c4c44d9-5555-3144-a176-afb333d09ca4> /Users/USER/*/myapp.app/Contents/Frameworks/FlutterMacOS.framework/Versions/A/FlutterMacOS
       0x103758000 -        0x103763fff libobjc-trampolines.dylib (*) <083ec35f-5279-370a-bdb0-ad21cd9895af> /usr/lib/libobjc-trampolines.dylib
       0x1040c0000 -        0x1040c3fff io.flutter.flutter.app (1.0) <21db856d-91f5-3740-9d57-31dfd5a3c224> /Users/USER/*/myapp.app/Contents/Frameworks/App.framework/Versions/A/App
       0x10ca94000 -        0x10d1f3fff com.apple.AGXMetalG15G-C0 (320.35.5) <e8e2ca68-b04e-3616-8aa4-76491119e649> /System/Library/Extensions/AGXMetalG15G_C0.bundle/Contents/MacOS/AGXMetalG15G_C0
       0x18662d000 -        0x186667ff7 libsystem_kernel.dylib (*) <9a72fd37-d827-3d6d-b6f4-422621e36c94> /usr/lib/system/libsystem_kernel.dylib
       0x1866d8000 -        0x186bcefff com.apple.CoreFoundation (6.9) <90eb8fd1-925e-38eb-a056-eb4253b6a29e> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x191a80000 -        0x191d87fff com.apple.HIToolbox (2.1.1) <66acb183-62b9-3856-82a9-07c05dc29bcc> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x18a25d000 -        0x18b631fff com.apple.AppKit (6.9) <e02a6094-92a9-3418-a312-a1fbaf4f477b> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x1862e6000 -        0x186368663 dyld (*) <02e3ca05-e849-31c8-a4f2-c7292420dfad> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x186668000 -        0x186674fff libsystem_pthread.dylib (*) <d09f4078-adad-3dd0-b17b-ce0142887b28> /usr/lib/system/libsystem_pthread.dylib
       0x191662000 -        0x191689fff com.apple.audio.caulk (1.0) <cbd1e5bd-6fe6-33f3-8250-7802c1ce6484> /System/Library/PrivateFrameworks/caulk.framework/Versions/A/caulk
       0x186502000 -        0x186583ffb libsystem_c.dylib (*) <a63f0ef9-59f1-3976-8a7e-2037cd50c605> /usr/lib/system/libsystem_c.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: 1
    thread_create: 2
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.7G resident=0K(0%) swapped_out_or_unallocated=1.7G(100%)
Writable regions: Total=2.0G written=1349K(0%) resident=1349K(0%) swapped_out=0K(0%) unallocated=2.0G(100%)

                                VIRTUAL   REGION
REGION TYPE                        SIZE    COUNT (non-coalesced)
===========                     =======  =======
Accelerate framework               128K        1
Activity Tracing                   256K        1
CG image                          1168K       11
ColorSync                          560K       27
CoreAnimation                     2256K       74
CoreGraphics                        32K        2
CoreUI image data                 2640K       20
Foundation                          48K        2
Kernel Alloc Once                   32K        1
MALLOC                             1.7G       88
MALLOC guard page                  384K       24
SQLite page cache                  256K        2
STACK GUARD                       56.5M       30
Stack                             34.4M       30
VM_ALLOCATE                      324.9M      820
__AUTH                            5660K      699
__AUTH_CONST                      72.8M      960
__CTF                               824        1
__DATA                            27.9M      991
__DATA_CONST                      26.7M     1016
__DATA_DIRTY                      2779K      353
__FONT_DATA                        2352        1
__INFO_FILTER                         8        1
__LINKEDIT                       634.7M       53
__OBJC_RW                         2353K        1
__TEXT                             1.1G     1040
__TPRO_CONST                       272K        2
libnetwork                         640K       16
mapped file                      456.9M       53
owned unmapped memory             1744K        1
page table in kernel              1349K        1
shared memory                      896K       15
===========                     =======  =======
TOTAL                              4.4G     6337

Flutter Doctor output

Doctor output

[✓] Flutter (Channel stable, 3.24.4, on macOS 15.0 24A335 darwin-arm64, locale en-US)
    • Flutter version 3.24.4 on channel stable at /Users/david/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 603104015d (8 days ago), 2024-10-24 08:01:25 -0700
    • Engine revision db49896cf2
    • Dart version 3.5.4
    • DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/david/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/david/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16B40
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.92.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.94.0

[✓] Connected device (3 available)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 15.0 24A335 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 15.0 24A335 darwin-arm64
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 130.0.6723.92
    ! Error: Browsing on the local area network for ipm. Ensure the device is unlocked and attached with a cable or associated with the same local area network as
      this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!

@theniceboy
When it crashed, was the app running in debug mode ? If so, does creating default counter app and then trying to hot reload after making some changes to the code trigger this crash ?
Is become: Cannot forward to multiple targets this line part of the crash log ? I couldn't see in the crash log you shared.

Probably is a duplicate of https://github.com/dart-lang/sdk/issues/56583 which is fixed.

authors: darshankawar mraleph theniceboy


text:
Prevent Re-initialization Error in VideoPlayerController in Event Listener

Steps to reproduce

Use the VideoPlayerController to load a video.
Observe if eventListener() receives multiple VideoEventType.initialized events.

Expected results
The VideoPlayerController should only initialize once, regardless of duplicate VideoEventType.initialized events.
Actual results
When the VideoPlayerController receives multiple VideoEventType.initialized events, it attempts to re-initialize, which can lead to:
Errors: The initializingCompleter assertion fails, throwing an error indicating the controller has already been initialized.
Inconsistent State: The video player may behave unpredictably, as multiple initializations can interfere with playback controls, buffering, or seeking.
Performance Issues: Redundant initialization can cause unnecessary processing, affecting app performance.
The modified code eliminates these issues by preventing re-initialization, ensuring stable playback and consistent controller behavior.
Code sample
Code sample
void eventListener(VideoEvent event) {
  if (_isDisposed) return;

  // Prevent re-initialization if already initialized
  if (initializingCompleter.isCompleted && event.eventType == VideoEventType.initialized) {
    return;
  }

  switch (event.eventType) {
    case VideoEventType.initialized:
      value = value.copyWith(
        duration: event.duration,
        size: event.size,
        rotationCorrection: event.rotationCorrection,
        isInitialized: event.duration != null,
        errorDescription: null,
        isCompleted: false,
      );

      // Assert if initializingCompleter is already completed
      assert(
        !initializingCompleter.isCompleted,
        'VideoPlayerController already initialized. This is typically a '
        'sign that an implementation of the VideoPlayerPlatform '
        '(${_videoPlayerPlatform.runtimeType}) has a bug and is sending '
        'more than one initialized event per instance.',
      );

      // Complete initialization if not completed yet
      if (!initializingCompleter.isCompleted) {
        initializingCompleter.complete(null);
      }

      _applyLooping();
      _applyVolume();
      _applyPlayPause();
      break;

    case VideoEventType.completed:
      // Stop playback, set isPlaying to false, and move to the end position
      pause().then((void pauseResult) => seekTo(value.duration));
      value = value.copyWith(isCompleted: true);
      break;

    case VideoEventType.bufferingUpdate:
      value = value.copyWith(buffered: event.buffered);
      break;

    case VideoEventType.bufferingStart:
      value = value.copyWith(isBuffering: true);
      break;

    case VideoEventType.bufferingEnd:
      value = value.copyWith(isBuffering: false);
      break;

    case VideoEventType.isPlayingStateUpdate:
      value = value.copyWith(
        isPlaying: event.isPlaying,
        isCompleted: event.isPlaying == false ? value.isCompleted : false,
      );
      break;

    case VideoEventType.unknown:
      break;
  }
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs

Unhandled Exception: PlatformException(VideoError, Video player had error androidx.media3.exoplayer.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(1, null, null, video/avc, avc1.42000A, -1, null, [720, 1600, 22.964258, ColorInfo(BT601, Limited range, Unset color transfer, false, 8bit Luma, 8bit Chroma)], [-1, -1]), format_supported=YES, null, null)
why that happened while initplayer

Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.24.1, on Microsoft Windows [Version 10.0.22631.4391], locale en-US)
    • Flutter version 3.24.1 on channel stable at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5874a72aa4 (3 months ago), 2024-08-20 16:46:00 -0500
    • Engine revision c9b9d5780d
    • Dart version 3.5.1
    • DevTools version 2.37.2

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\Mina_\AppData\Local\Android\sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0--11609105)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Users\Mina_\AppData\Local\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Professional 2022 17.5.1)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Professional
    • Visual Studio Professional 2022 version 17.5.33424.131
    • Windows 10 SDK version 10.0.22000.0

[√] Android Studio (version 2024.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0--11609105)

[√] IntelliJ IDEA Ultimate Edition (version 2022.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2022.2.3
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 222.4345.14

[√] VS Code (version 1.95.2)
    • VS Code at C:\Users\Mina_\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.100.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22631.4391]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 130.0.6723.117
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 130.0.2849.80

[√] Network resources
    • All expected network resources are available.

• No issues found!

report Re-initialization Error in VideoPlayerController

You can check this https://github.com/flutter/flutter/issues/156047 to see if it assembles your case or not.
Otherwise, for us to further investigate this issue, please provide a completed and minimal reproducible code sample that doesn’t include 3rd party plugins or complex production code. Thanks!

Thank you for the response!
I reviewed Issue #156047 and found that it describes similar symptoms, but it does not directly resolve the issue I encountered.
Summary of My Solution
After investigating further, I changed the code in the video player package itself, which solved the issue. Specifically, I added a check in the eventListener() method to ensure that re-initialization does not occur if the VideoPlayerController has already completed its initialization. This prevents the double-initialization issue that was causing errors.
Code Changes
Here’s a summary of the changes I made in eventListener():
void eventListener(VideoEvent event) {
  if (_isDisposed) return;

  // Prevent re-initialization if already initialized
  if (initializingCompleter.isCompleted && event.eventType == VideoEventType.initialized) {
    return;
  }

  switch (event.eventType) {
    case VideoEventType.initialized:
      value = value.copyWith(
        duration: event.duration,
        size: event.size,
        rotationCorrection: event.rotationCorrection,
        isInitialized: event.duration != null,
        errorDescription: null,
        isCompleted: false,
      );
  // Complete initialization if not completed yet
      if (!initializingCompleter.isCompleted) {
        initializingCompleter.complete(null);
      }

      _applyLooping();
      _applyVolume();
      _applyPlayPause();
      break;

    // Other cases follow without changes...
  }
}

This adjustment checks whether initializingCompleter has already completed and prevents re-initialization if it has, stabilizing the video playback.
Request
Would it be possible to consider this check for a future update to the package? Alternatively, if this is intended behavior, please let me know if there’s a recommended way to handle this scenario without modifying the package code.
Thank you!

It may work for your case (maybe just a workaround) but I'm not sure whether it is a proper fix for every case. It needs to pass reviews and tests, please check Triage process for teams.
Please provide a reproduction sample code so that I can try to reproduce the issue and forward this to an appropriate team. Thanks!

Thank you for your help so far.
After testing with another project, I couldn’t reproduce the issue outside of my original project. This suggests that the duplicate initialization may be specific to the configuration or environment of that project rather than a general bug in the package. I’ll continue investigating my project’s setup to identify any factors that might contribute to this behavior, and I’ll update here if I find a root cause that could affect other users.
Proposed Improvement to eventListener() for Performance and Stability
However, during this investigation, I identified an optimization opportunity in the eventListener method that could benefit overall performance and stability. The current package implementation lacks a check to prevent redundant initialization when initializingCompleter is already completed. This could lead to unnecessary processing and potential errors if the initialized event is triggered multiple times.
Package Source Code
The current code in the package source looks like this:
void eventListener(VideoEvent event) {
  if (_isDisposed) {
    return;
  }

  switch (event.eventType) {
    case VideoEventType.initialized:
      value = value.copyWith(
        duration: event.duration,
        size: event.size,
        rotationCorrection: event.rotationCorrection,
        isInitialized: event.duration != null,
        errorDescription: null,
        isCompleted: false,
      );
      assert(
        !initializingCompleter.isCompleted,
        'VideoPlayerController already initialized. This is typically a '
        'sign that an implementation of the VideoPlayerPlatform '
        '(${_videoPlayerPlatform.runtimeType}) has a bug and is sending '
        'more than one initialized event per instance.',
      );
//  to end of fun
}

Suggested Code Improvement
In my project, I addressed this by adding a check to skip re-initialization if initializingCompleter is already completed:
void eventListener(VideoEvent event) {
  if (_isDisposed) {
    return;
  }

  // Prevent redundant re-initialization if already initialized
  if (initializingCompleter.isCompleted && event.eventType == VideoEventType.initialized) {
    return;
  }

  switch (event.eventType) {
    case VideoEventType.initialized:
      value = value.copyWith(
        duration: event.duration,
        size: event.size,
        rotationCorrection: event.rotationCorrection,
        isInitialized: event.duration != null,
        errorDescription: null,
        isCompleted: false,
      );
      assert(
        !initializingCompleter.isCompleted,
        'VideoPlayerController already initialized. This is typically a '
        'sign that an implementation of the VideoPlayerPlatform '
        '(${_videoPlayerPlatform.runtimeType}) has a bug and is sending '
        'more than one initialized event per instance.',
      );
//  to end of fun
}

Benefits:
Improves Performance: Reduces unnecessary processing when duplicate initialized events are triggered.
Enhances Stability: Prevents re-initialization, which could lead to errors or unexpected behavior.
Would it be possible to consider this adjustment as a performance enhancement for the package?
Thank you again for your continued support!

Would it be possible to consider this adjustment as a performance enhancement for the package?

Similar to what I shared above, even if this is a suggestion, it still needs an appropriate use case (reproduction sample) for better understanding.

OK, Thanks for the feedback! I propose this as a performance enhancement for video_player, particularly for use cases involving rapid video switching. Here's a concrete example showing the performance impact:
import 'dart:developer';
import 'dart:io';

import 'package:file_picker/file_picker.dart';
import 'package:flutter/material.dart';
import 'package:video_player/video_player.dart';
import 'package:chewie/chewie.dart';

class VideoPlayerReproduction extends StatefulWidget {
  const VideoPlayerReproduction({super.key});

  @override
  State<VideoPlayerReproduction> createState() =>
      _VideoPlayerReproductionState();
}

class _VideoPlayerReproductionState extends State<VideoPlayerReproduction>
    with WidgetsBindingObserver {

  final PageController _pageController = PageController();
  final List<String> _videos = [
    "https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4",
    "https://flutter.github.io/assets-for-api-docs/assets/videos/butterfly.mp4",
  ];

  VideoPlayerController? _videoController;
  ChewieController? _chewieController;
  int _currentIndex = 0;
  bool _isLoading = true;

  @override
  void initState() {
    super.initState();
    WidgetsBinding.instance.addObserver(this);
    _initializeVideo(_currentIndex);
  }

  Future<void> _initializeVideo(int index) async {
    setState(() => _isLoading = true);

    try {
      _videoController = VideoPlayerController.networkUrl(
        Uri.parse(_videos[index]),
        videoPlayerOptions: VideoPlayerOptions(
          mixWithOthers: true,
          allowBackgroundPlayback: false,
        ),
      );

      await _videoController!.initialize();

       _chewieController = ChewieController(
          videoPlayerController: _videoController!,
          autoPlay: true,
          looping: true,
          showControls: false,
       );

       setState(() => _isLoading = false);

    } catch (e) {
      log("Error initializing video: $e");
      setState(() => _isLoading = false);
    }
  }

  void _onPageChanged(int index) async {
    if (_currentIndex != index) {
      _currentIndex = index;

      // Dispose old controller before initializing new one
      await _videoController?.dispose();
      _chewieController?.dispose();

      // Initialize new video
      await _initializeVideo(index);
    }
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.black,
      body: PageView.builder(
        scrollDirection: Axis.vertical,
        controller: _pageController,
        onPageChanged: _onPageChanged,
        itemCount: _videos.length,
        itemBuilder: (context, index) {
          if (_isLoading || _chewieController == null) {
            return const Center(child: CircularProgressIndicator());
          }
          if (_currentIndex != index) {
            return const ColoredBox(color: Colors.black);
          }

          return Chewie(controller: _chewieController!);
        },
      ),
      floatingActionButton: FloatingActionButton(
        child: const Icon(
          Icons.add,
          size: 30,
        ),
        onPressed: () async {
          FilePickerResult? result =
              await FilePicker.platform.pickFiles(type: FileType.video);

          if (result != null) {
            File file = File(result.files.single.path!);
          } else {
            // User canceled the picker
          }
        },
      ),
    );
  }

  @override
  void dispose() {
    WidgetsBinding.instance.removeObserver(this);
    _videoController?.dispose();
    _chewieController?.dispose();
    _pageController.dispose();
    super.dispose();
  }
}

Proposed Enhancement Benefits:
1- Smoother Transitions:
Gracefully handle multiple initialization attempts
Prevent crashes during rapid scrolling
Better support for preloading strategies
2- Resource Efficiency:
Proper cleanup of video controllers
Better memory management during rapid switches
Reduced likelihood of memory leaks
3- Better Error Recovery:
Graceful fallback when initialization fails
No app crashes during edge cases
Better handling of network conditions
Would you like me to provide any additional performance metrics or test cases?

Can you narrow the sample code above to a simpler one? file_picker is unrelated to this issue and chewie is a 3rd party package. Please check minimal complete reproducible code sample again.

Thank you for your time and assistance.
After further investigation, I found that the issue does not appear in the minimal code I created. This suggests the problem is specific to the configuration or setup in my original project and not a general bug in the video_player package.
I’ll continue debugging my project to identify the cause, but for now, it seems unrelated to the package itself. If I uncover anything that could impact other users, I’ll provide an update or reopen the issue.
Thanks again for your help!

authors: Mina-Zarif huycozy


text:
Another way to add Flutter  to existing apps

The article on the wiki  Add Flutter to existing apps introduce a way to add Flutter to existing apps. But it has a problem:
1、can't debug Dart code in the project
It's very inconvenient to debug method channel
Why not add exitsing apps to the android directory in the Flutter Project?

Why use  Add Flutter to existing apps  this way to add Flutter?

yes i am also using flutter same way in existing android app  i just create a new flutter project and copy all the code to android folder

nice  ...

authors: koudle lgengsy shakil807g