Repository: flutter
Issue: crashes with EXC_BAD_ACCESS in SkIcuBreakIteratorCache::~SkIcuBreakIteratorCache() (in Flutter) (SkUnicode_icu.cpp:166)
Labels: waiting for customer response,in triage

### Steps to reproduce

I am experiencing a crash issue with a Flutter application on iOS 18 and I currently only possess the crash details. Could you assist me in determining the cause? Any help in analyzing the crash information would be greatly appreciated

### Expected results

run will and not have crash


### Actual results

On iOS the application crashes with EXC_BAD_ACCESS in SkIcuBreakIteratorCache::~SkIcuBreakIteratorCache() .

This can be reproduced reliably on both physical iOS devices and the iOS simulator.

On other platforms (tested on Windows, MacOS and Android) the crash does not occur.



### Code sample

无


### Screenshots or Video

无

### Logs


>1 | Flutter | skia_private::THashTable<skia_private::THashMap<SkUnicode::BreakType, std::_LIBCPP_ABI_NAMESPACE::unique_ptr<UBreakIterator, SkOverloadedFunctionObject<void (UBreakIterator*), &(ubrk_close_wrapper(UBreakIterator*))> >, SkGoodHash>::Pair, SkUnicode::BreakType, skia_private::THashMap<SkUnicode::BreakType, std::_LIBCPP_ABI_NAMESPACE::unique_ptr<UBreakIterator, SkOverloadedFunctionObject<void (UBreakIterator*), &(ubrk_close_wrapper(UBreakIterator*))> >, SkGoodHash>::Pair>::Slot::reset() (in Flutter) (SkTHash.h:399)
-- | -- | --
2 | Flutter | skia_private::THashTable<skia_private::THashMap<SkUnicode::BreakType, std::_LIBCPP_ABI_NAMESPACE::unique_ptr<UBreakIterator, SkOverloadedFunctionObject<void (UBreakIterator*), &(ubrk_close_wrapper(UBreakIterator*))> >, SkGoodHash>::Pair, SkUnicode::BreakType, skia_private::THashMap<SkUnicode::BreakType, std::_LIBCPP_ABI_NAMESPACE::unique_ptr<UBreakIterator, SkOverloadedFunctionObject<void (UBreakIterator*), &(ubrk_close_wrapper(UBreakIterator*))> >, SkGoodHash>::Pair>::Slot::reset() (in Flutter) (SkTHash.h:399)
3 | Flutter | std::_LIBCPP_ABI_NAMESPACE::default_delete<skia_private::THashTable<skia_private::THashMap<SkUnicode::BreakType, std::_LIBCPP_ABI_NAMESPACE::unique_ptr<UBreakIterator, SkOverloadedFunctionObject<void (UBreakIterator*), &(ubrk_close_wrapper(UBreakIterator*))> >, SkGoodHash>::Pair, SkUnicode::BreakType, skia_private::THashMap<SkUnicode::BreakType, std::_LIBCPP_ABI_NAMESPACE::unique_ptr<UBreakIterator, SkOverloadedFunctionObject<void (UBreakIterator*), &(ubrk_close_wrapper(UBreakIterator*))> >, SkGoodHash>::Pair>::Slot []>::_EnableIfConvertible<skia_private::THashTable<skia_private::THashMap<SkUnicode::BreakType, std::_LIBCPP_ABI_NAMESPACE::unique_ptr<UBreakIterator, SkOverloadedFunctionObject<void (UBreakIterator*), &(ubrk_close_wrapper(UBreakIterator*))> >, SkGoodHash>::Pair, SkUnicode::BreakType, skia_private::THashMap<SkUnicode::BreakType, std::_LIBCPP_ABI_NAMESPACE::unique_ptr<UBreakIterator, SkOverloadedFunctionObject<void (UBreakIterator*), &(ubrk_close_wrapper(UBreakIterator*))> >, SkGoodHash>::Pair>::Slot>::type std::_LIBCPP_ABI_NAMESPACE::default_delete<skia_private::THashTable<skia_private::THashMap<SkUnicode::BreakType, std::_LIBCPP_ABI_NAMESPACE::unique_ptr<UBreakIterator, SkOverloadedFunctionObject<void (UBreakIterator*), &(ubrk_close_wrapper(UBreakIterator*))> >, SkGoodHash>::Pair, SkUnicode::BreakType, skia_private::THashMap<SkUnicode::BreakType, std::_LIBCPP_ABI_NAMESPACE::unique_ptr<UBreakIterator, SkOverloadedFunctionObject<void (UBreakIterator*), &(ubrk_close_wrapper(UBreakIterator*))> >, SkGoodHash>::Pair>::Slot []>::operator()[abi:v15000]<skia_private::THashTable<skia_private::THashMap<SkUnicode::BreakType, std::_LIBCPP_ABI_NAMESPACE::unique_ptr<UBreakIterator, SkOverloadedFunctionObject<void (UBreakIterator*), &(ubrk_close_wrapper(UBreakIterator*))> >, SkGoodHash>::Pair, SkUnicode::BreakType, skia_private::THashMap<SkUnicode::BreakType, std::_LIBCPP_ABI_NAMESPACE::unique_ptr<UBreakIterator, SkOverloadedFunctionObject<void (UBreakIterator*), &(ubrk_close_wrapper(UBreakIterator*))> >, SkGoodHash>::Pair>::Slot>(skia_private::THashTable<skia_private::THashMap<SkUnicode::BreakType, std::_LIBCPP_ABI_NAMESPACE::unique_ptr<UBreakIterator, SkOverloadedFunctionObject<void (UBreakIterator*), &(ubrk_close_wrapper(UBreakIterator*))> >, SkGoodHash>::Pair, SkUnicode::BreakType, skia_private::THashMap<SkUnicode::BreakType, std::_LIBCPP_ABI_NAMESPACE::unique_ptr<UBreakIterator, SkOverloadedFunctionObject<void (UBreakIterator*), &(ubrk_close_wrapper(UBreakIterator*))> >, SkGoodHash>::Pair>::Slot*) const (in Flutter) (unique_ptr.h:76)
4 | Flutter | SkIcuBreakIteratorCache::~SkIcuBreakIteratorCache() (in Flutter) (SkUnicode_icu.cpp:166)

### Flutter Doctor output
```console
[!] Flutter (Channel [user-branch], 3.13.9, on macOS 14.5 23F79 darwin-arm64,
    locale zh-Hans-CN)
    ! Flutter version 3.13.9 on channel [user-branch] at
      /Users/wucuiping7/Desktop/development/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an
      official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions
      at https://flutter.dev/docs/get-started/install.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss
      this error.
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for
      more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.96.2)
[✓] Connected device (3 available)
    ! Error: Browsing on the local area network for iPhone 13 Pro. 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)
    ! Error: Browsing on the local area network for “徐征磊”的 iPad. 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)
    ! Error: Browsing on the local area network for wan的iPhone. 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

! Doctor found issues in 2 categories.
```