flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
162.21k stars 26.65k forks source link

[webview_flutter] iOS Flutter got crash because of [FLTWKNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:] was not called #102476

Open noin-emoto opened 2 years ago

noin-emoto commented 2 years ago

Steps to Reproduce

We receive Crashlytics Logs, but we cannot reproduce.

Logs Crashlytics Logs ``` Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0x99d78 __exceptionPreprocess 1 libobjc.A.dylib 0x16734 objc_exception_throw 2 CoreFoundation 0xf1024 __CFDictionaryCreateGeneric 3 WebKit 0x187180 WebKit::CompletionHandlerCallChecker::~CompletionHandlerCallChecker() 4 WebKit 0x27cfb8 WTF::Ref >::~Ref() 5 WebKit 0x371374 WTF::BlockPtr WTF::BlockPtr::fromCallable >&&, WTF::Ref >&&, API::Object*)::$_15>(WebKit::NavigationState::NavigationClient::decidePolicyForNavigationAction(WebKit::WebPageProxy&, WTF::Ref >&&, WTF::Ref >&&, API::Object*)::$_15)::'lambda'(void const*)::__invoke(void const*) 6 libsystem_blocks.dylib 0x1804 _Block_release 7 libsystem_blocks.dylib 0x1804 _Block_release 8 libsystem_blocks.dylib 0x1804 _Block_release 9 libsystem_blocks.dylib 0x1804 _Block_release 10 Flutter 0x3a208 (シンボルが不足しています UUID d24b4305a5d8348c8a0909c859505f3a) 11 Flutter 0x3a1a8 (シンボルが不足しています UUID d24b4305a5d8348c8a0909c859505f3a) 12 Flutter 0x4c86a4 (シンボルが不足しています UUID d24b4305a5d8348c8a0909c859505f3a) 13 Flutter 0x4c810c (シンボルが不足しています UUID d24b4305a5d8348c8a0909c859505f3a) 14 Flutter 0x4c7efc (シンボルが不足しています UUID d24b4305a5d8348c8a0909c859505f3a) 15 Flutter 0x4fd6b0 (シンボルが不足しています UUID d24b4305a5d8348c8a0909c859505f3a) 16 Flutter 0x508df8 (シンボルが不足しています UUID d24b4305a5d8348c8a0909c859505f3a) 17 Flutter 0x508850 (シンボルが不足しています UUID d24b4305a5d8348c8a0909c859505f3a) 18 Flutter 0x3c7294 (シンボルが不足しています UUID d24b4305a5d8348c8a0909c859505f3a) 19 Flutter 0x3dd070 (シンボルが不足しています UUID d24b4305a5d8348c8a0909c859505f3a) 20 Flutter 0x3dd854 (シンボルが不足しています UUID d24b4305a5d8348c8a0909c859505f3a) 21 Flutter 0x2fbbf0 (シンボルが不足しています UUID d24b4305a5d8348c8a0909c859505f3a) 22 Flutter 0x2ff1bc (シンボルが不足しています UUID d24b4305a5d8348c8a0909c859505f3a) 23 CoreFoundation 0xaf168 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ 24 CoreFoundation 0x33144 __CFRunLoopDoTimer 25 CoreFoundation 0x2d8f0 __CFRunLoopDoTimers 26 CoreFoundation 0xbfa0 __CFRunLoopRun 27 CoreFoundation 0x1f6b8 CFRunLoopRunSpecific 28 Flutter 0x2ff088 (シンボルが不足しています UUID d24b4305a5d8348c8a0909c859505f3a) 29 Flutter 0x2fe848 (シンボルが不足しています UUID d24b4305a5d8348c8a0909c859505f3a) 30 libsystem_pthread.dylib 0x19ac _pthread_start 31 libsystem_pthread.dylib 0xe68 thread_start ``` Crashlytics Logs ``` Crashed: io.flutter.1.ui 0 FirebaseCrashlytics 0x1f3ac FIRCLSProcessRecordAllThreads + 393 (FIRCLSProcess.c:393) 1 FirebaseCrashlytics 0x1f78c FIRCLSProcessRecordAllThreads + 424 (FIRCLSProcess.c:424) 2 FirebaseCrashlytics 0x166f8 FIRCLSHandler + 34 (FIRCLSHandler.m:34) 3 FirebaseCrashlytics 0x10b94 __FIRCLSExceptionRecord_block_invoke + 215 (FIRCLSException.mm:215) 4 libdispatch.dylib 0x3a2c _dispatch_client_callout + 20 5 libdispatch.dylib 0x12c90 _dispatch_lane_barrier_sync_invoke_and_complete + 56 6 FirebaseCrashlytics 0x10334 FIRCLSExceptionRecord + 219 (FIRCLSException.mm:219) 7 FirebaseCrashlytics 0x1063c FIRCLSExceptionRecordNSException + 109 (FIRCLSException.mm:109) 8 FirebaseCrashlytics 0xff34 FIRCLSTerminateHandler() + 273 (FIRCLSException.mm:273) 9 libc++abi.dylib 0x10f18 std::__terminate(void (*)()) + 20 10 libc++abi.dylib 0x13ebc __cxa_rethrow + 148 11 libobjc.A.dylib 0x186b0 objc_exception_rethrow + 44 12 CoreFoundation 0x1f7a4 CFRunLoopRunSpecific + 836 13 Flutter 0x2ff088 (シンボルが不足しています UUID d24b4305a5d8348c8a0909c859505f3a) 14 Flutter 0x2fe848 (シンボルが不足しています UUID d24b4305a5d8348c8a0909c859505f3a) 15 libsystem_pthread.dylib 0x19ac _pthread_start + 148 16 libsystem_pthread.dylib 0xe68 thread_start + 8 ``` ``` ```
danagbemava-nc commented 2 years ago

Hi @noin-emoto, please provide the output of flutter doctor -v of the version of flutter that was used to build the app.

Please also provide the list of affected devices and the version of webview_flutter that you're using.

Thank you

korjusk commented 2 years ago

I also have a Flutter iOS crash log that I cannot reproduce. This ID from my logs is the same as the ID in your crash logs: Missing UUID d24b4305a5d8348c8a0909c859505f3a

danagbemava-nc commented 2 years ago

Hi @korjusk, kindly file a new issue and provide the full crash log as well as the version of flutter that was used to build the app.

Thank you

noin-emoto commented 2 years ago

Hi @danagbemava-nc, thank you for reaction. The replies for your requests are as follows. Please check, thank you 🙏

flutter doctor -v output

[✓] Flutter (Channel stable, 2.10.4, on macOS 12.0.1 21A559 darwin-x64, locale ja-JP)
    • Flutter version 2.10.4 at /Users/admin/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c860cba910 (5 weeks ago), 2022-03-25 00:23:12 -0500
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc5)
    • Android SDK at /Users/admin/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0-rc5
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

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

[✓] Android Studio (version 4.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 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 66.0.2
    • Dart plugin version 212.5744

[✓] Connected device (3 available)
    • sdk gphone x86 arm (mobile) • emulator-5554                        • android-x86    • Android 11 (API
      30) (emulator)
    • iPhone 13 (mobile)          • 71E14C1C-E3FB-47FA-9A12-83F716C2E323 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-15-4 (simulator)
    • Chrome (web)                • chrome                               • web-javascript • Google Chrome
      100.0.4896.127

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

devices

almost all of iPhones

danagbemava-nc commented 2 years ago

@flutter-symbolizer-bot https://github.com/flutter/flutter/issues/102476#issue-1213852061 force flutter#v2.10.4 ios release arm64

flutter-symbolizer-bot commented 2 years ago
There were failures processing the request When processing https://github.com/flutter/flutter/issues/102476#issue-1213852061 I encountered the following error: * Exception occured while parsing: ``` RangeError: Value not in range: 68 #0 _StringBase.substring (dart:core-patch/string_patch.dart:396:7) #1 _CrashExtractor.parseIosFrame (package:symbolizer/parser.dart:141:25) #2 _CrashExtractor.parseAsIosBacktrace (package:symbolizer/parser.dart:96:19) #3 new _CrashExtractor (package:symbolizer/parser.dart:49:7) #4 CrashExtractor.extractCrashes (package:symbolizer/parser.dart:23:7) #5 Symbolizer._symbolizeImpl (package:symbolizer/symbolizer.dart:53:36) #6 Symbolizer.symbolize (package:symbolizer/symbolizer.dart:41:26) #7 Bot.symbolizeGiven (package:symbolizer/bot.dart:249:28) #8 Bot.executeCommand (package:symbolizer/bot.dart:189:11) #9 serve. (package:symbolizer/server.dart:33:17) #10 serve (package:symbolizer/server.dart:58:52) #11 main (file:///Users/vegorov/src/dart_ci/github-label-notifier/symbolizer/bin/server.dart:46:9) #12 _startIsolate. (dart:isolate-patch/isolate_patch.dart:301:19) #13 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12) ``` See [my documentation](https://github.com/flutter-symbolizer-bot/flutter-symbolizer-bot/blob/main/README.md#commands) for more details.
danagbemava-nc commented 2 years ago

@flutter-symbolizer-bot this force flutter#v2.10.4 ios release arm64

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x99d78 __exceptionPreprocess
1  libobjc.A.dylib                0x16734 objc_exception_throw
2  CoreFoundation                 0xf1024 __CFDictionaryCreateGeneric
3  WebKit                         0x187180 WebKit::CompletionHandlerCallChecker::~CompletionHandlerCallChecker()
4  WebKit                         0x27cfb8 WTF::Ref<WebKit::CompletionHandlerCallChecker, WTF::RawPtrTraits<WebKit::CompletionHandlerCallChecker> >::~Ref()
5  WebKit                         0x371374 WTF::BlockPtr<void (WKNavigationActionPolicy)> WTF::BlockPtr<void (WKNavigationActionPolicy)>::fromCallable<WebKit::NavigationState::NavigationClient::decidePolicyForNavigationAction(WebKit::WebPageProxy&, WTF::Ref<API::NavigationAction, WTF::RawPtrTraits<API::NavigationAction> >&&, WTF::Ref<WebKit::WebFramePolicyListenerProxy, WTF::RawPtrTraits<WebKit::WebFramePolicyListenerProxy> >&&, API::Object*)::$_15>(WebKit::NavigationState::NavigationClient::decidePolicyForNavigationAction(WebKit::WebPageProxy&, WTF::Ref<API::NavigationAction, WTF::RawPtrTraits<API::NavigationAction> >&&, WTF::Ref<WebKit::WebFramePolicyListenerProxy, WTF::RawPtrTraits<WebKit::WebFramePolicyListenerProxy> >&&, API::Object*)::$_15)::'lambda'(void const*)::__invoke(void const*)
6  libsystem_blocks.dylib         0x1804 _Block_release
7  libsystem_blocks.dylib         0x1804 _Block_release
8  libsystem_blocks.dylib         0x1804 _Block_release
9  libsystem_blocks.dylib         0x1804 _Block_release
10 Flutter 0x3a208                (missing symbols UUID d24b4305a5d8348c8a0909c859505f3a)
11 Flutter 0x3a1a8                (missing symbols UUID d24b4305a5d8348c8a0909c859505f3a)
12 Flutter 0x4c86a4               (missing symbols UUID d24b4305a5d8348c8a0909c859505f3a)
13 Flutter 0x4c810c               (missing symbols UUID d24b4305a5d8348c8a0909c859505f3a)
14 Flutter 0x4c7efc               (missing symbols UUID d24b4305a5d8348c8a0909c859505f3a)
15 Flutter 0x4fd6b0               (missing symbols UUID d24b4305a5d8348c8a0909c859505f3a)
16 Flutter 0x508df8               (missing symbols UUID d24b4305a5d8348c8a0909c859505f3a)
17 Flutter 0x508850               (missing symbols UUID d24b4305a5d8348c8a0909c859505f3a)
18 Flutter 0x3c7294               (missing symbols UUID d24b4305a5d8348c8a0909c859505f3a)
19 Flutter 0x3dd070               (missing symbols UUID d24b4305a5d8348c8a0909c859505f3a)
20 Flutter 0x3dd854               (missing symbols UUID d24b4305a5d8348c8a0909c859505f3a)
21 Flutter 0x2fbbf0               (missing symbols UUID d24b4305a5d8348c8a0909c859505f3a)
22 Flutter 0x2ff1bc               (missing symbols UUID d24b4305a5d8348c8a0909c859505f3a)
23 CoreFoundation                 0xaf168 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
24 CoreFoundation                 0x33144 __CFRunLoopDoTimer
25 CoreFoundation                 0x2d8f0 __CFRunLoopDoTimers
26 CoreFoundation                 0xbfa0 __CFRunLoopRun
27 CoreFoundation                 0x1f6b8 CFRunLoopRunSpecific
28 Flutter                      0x2ff088 (missing symbols UUID d24b4305a5d8348c8a0909c859505f3a)
29 Flutter                      0x2fe848 (missing symbols UUID d24b4305a5d8348c8a0909c859505f3a)
30 libsystem_pthread.dylib        0x19ac _pthread_start
31 libsystem_pthread.dylib        0xe68 thread_start
flutter-symbolizer-bot commented 2 years ago
There were failures processing the request When processing https://github.com/flutter/flutter/issues/102476#issuecomment-1109767397 I encountered the following error: * Exception occured while parsing: ``` RangeError: Value not in range: 68 #0 _StringBase.substring (dart:core-patch/string_patch.dart:396:7) #1 _CrashExtractor.parseIosFrame (package:symbolizer/parser.dart:141:25) #2 _CrashExtractor.parseAsIosBacktrace (package:symbolizer/parser.dart:96:19) #3 new _CrashExtractor (package:symbolizer/parser.dart:49:7) #4 CrashExtractor.extractCrashes (package:symbolizer/parser.dart:23:7) #5 Symbolizer._symbolizeImpl (package:symbolizer/symbolizer.dart:53:36) #6 Symbolizer.symbolize (package:symbolizer/symbolizer.dart:41:26) #7 Bot.symbolizeGiven (package:symbolizer/bot.dart:249:28) #8 Bot.executeCommand (package:symbolizer/bot.dart:189:11) #9 serve. (package:symbolizer/server.dart:33:17) #10 serve (package:symbolizer/server.dart:58:52) #11 main (file:///Users/vegorov/src/dart_ci/github-label-notifier/symbolizer/bin/server.dart:46:9) #12 _startIsolate. (dart:isolate-patch/isolate_patch.dart:301:19) #13 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12) ``` See [my documentation](https://github.com/flutter-symbolizer-bot/flutter-symbolizer-bot/blob/main/README.md#commands) for more details.
danagbemava-nc commented 2 years ago

@mraleph looks like the bot is crashing again

mraleph commented 2 years ago

@flutter-symbolizer-bot this force flutter#v2.10.4 ios release arm64

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x99d78 __exceptionPreprocess
1  libobjc.A.dylib                0x16734 objc_exception_throw
2  CoreFoundation                 0xf1024 __CFDictionaryCreateGeneric
3  WebKit                         0x187180 WebKit::CompletionHandlerCallChecker::~CompletionHandlerCallChecker
4  WebKit                         0x27cfb8 WTF::Ref::~Ref
5  WebKit                         0x371374 WTF
6  libsystem_blocks.dylib         0x1804 _Block_release
7  libsystem_blocks.dylib         0x1804 _Block_release
8  libsystem_blocks.dylib         0x1804 _Block_release
9  libsystem_blocks.dylib         0x1804 _Block_release
10 Flutter 0x3a208                whatever         
11 Flutter 0x3a1a8                whatever
12 Flutter 0x4c86a4               whatever
13 Flutter 0x4c810c               whatever
14 Flutter 0x4c7efc               whatever
15 Flutter 0x4fd6b0               whatever
16 Flutter 0x508df8               whatever
17 Flutter 0x508850               whatever
18 Flutter 0x3c7294               whatever
19 Flutter 0x3dd070               whatever
20 Flutter 0x3dd854               whatever
21 Flutter 0x2fbbf0               whatever
22 Flutter 0x2ff1bc               whatever
23 CoreFoundation                 0xaf168 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
24 CoreFoundation                 0x33144 __CFRunLoopDoTimer
25 CoreFoundation                 0x2d8f0 __CFRunLoopDoTimers
26 CoreFoundation                 0xbfa0 __CFRunLoopRun
27 CoreFoundation                 0x1f6b8 CFRunLoopRunSpecific
28 Flutter                      0x2ff088 whatever
29 Flutter                      0x2fe848 whatever
30 libsystem_pthread.dylib        0x19ac _pthread_start
31 libsystem_pthread.dylib        0xe68 thread_start
flutter-symbolizer-bot commented 2 years ago
There were failures processing the request When processing https://github.com/flutter/flutter/issues/102476#issuecomment-1109771960 I found crash ``` Crash(engineVariant: EngineVariant(os: ios, arch: null, mode: release), frames: [CrashFrame.ios(no: 10, binary: Flutter, pc: 238088, symbol: (Missing), offset: null, location: ), CrashFrame.ios(no: 11, binary: Flutter, pc: 237992, symbol: (Missing), offset: null, location: ), CrashFrame.ios(no: 12, binary: Flutter, pc: 5015204, symbol: (Missing), offset: null, location: ), CrashFrame.ios(no: 13, binary: Flutter, pc: 5013772, symbol: (Missing), offset: null, location: ), CrashFrame.ios(no: 14, binary: Flutter, pc: 5013244, symbol: (Missing), offset: null, location: ), CrashFrame.ios(no: 15, binary: Flutter, pc: 5232304, symbol: (Missing), offset: null, location: ), CrashFrame.ios(no: 16, binary: Flutter, pc: 5279224, symbol: (Missing), offset: null, location: ), CrashFrame.ios(no: 17, binary: Flutter, pc: 5277776, symbol: (Missing), offset: null, location: ), CrashFrame.ios(no: 18, binary: Flutter, pc: 3961492, symbol: (Missing), offset: null, location: ), CrashFrame.ios(no: 19, binary: Flutter, pc: 4051056, symbol: (Missing), offset: null, location: ), CrashFrame.ios(no: 20, binary: Flutter, pc: 4053076, symbol: (Missing), offset: null, location: ), CrashFrame.ios(no: 21, binary: Flutter, pc: 3128304, symbol: (Missing), offset: null, location: ), CrashFrame.ios(no: 22, binary: Flutter, pc: 3142076, symbol: (Missing), offset: null, location: ), CrashFrame.ios(no: 28, binary: Flutter, pc: 3141768, symbol: (Missing), offset: null, location: ), CrashFrame.ios(no: 29, binary: Flutter, pc: 3139656, symbol: (Missing), offset: null, location: )], format: native, androidMajorVersion: null) ``` but failed to symbolize it with the following notes: * Unknown engine ABI See [my documentation](https://github.com/flutter-symbolizer-bot/flutter-symbolizer-bot/blob/main/README.md#commands) for more details.
mraleph commented 2 years ago

@flutter-symbolizer-bot this force ios release arm64 flutter#v2.10.4 whatever

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x99d78 __exceptionPreprocess
1  libobjc.A.dylib                0x16734 objc_exception_throw
2  CoreFoundation                 0xf1024 __CFDictionaryCreateGeneric
3  WebKit                         0x187180 WebKit::CompletionHandlerCallChecker::~CompletionHandlerCallChecker
4  WebKit                         0x27cfb8 WTF::Ref::~Ref
5  WebKit                         0x371374 WTF
6  libsystem_blocks.dylib         0x1804 _Block_release
7  libsystem_blocks.dylib         0x1804 _Block_release
8  libsystem_blocks.dylib         0x1804 _Block_release
9  libsystem_blocks.dylib         0x1804 _Block_release
10 Flutter 0x3a208                whatever         
11 Flutter 0x3a1a8                whatever
12 Flutter 0x4c86a4               whatever
13 Flutter 0x4c810c               whatever
14 Flutter 0x4c7efc               whatever
15 Flutter 0x4fd6b0               whatever
16 Flutter 0x508df8               whatever
17 Flutter 0x508850               whatever
18 Flutter 0x3c7294               whatever
19 Flutter 0x3dd070               whatever
20 Flutter 0x3dd854               whatever
21 Flutter 0x2fbbf0               whatever
22 Flutter 0x2ff1bc               whatever
23 CoreFoundation                 0xaf168 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
24 CoreFoundation                 0x33144 __CFRunLoopDoTimer
25 CoreFoundation                 0x2d8f0 __CFRunLoopDoTimers
26 CoreFoundation                 0xbfa0 __CFRunLoopRun
27 CoreFoundation                 0x1f6b8 CFRunLoopRunSpecific
28 Flutter                      0x2ff088 whatever
29 Flutter                      0x2fe848 whatever
30 libsystem_pthread.dylib        0x19ac _pthread_start
31 libsystem_pthread.dylib        0xe68 thread_start
flutter-symbolizer-bot commented 2 years ago

crash from https://github.com/flutter/flutter/issues/102476#issuecomment-1109772852 symbolized using symbols for 57d3bac3dd5cb5b0e464ab70e7bc8a0d8cf083ab ios-arm64-release

#00 000000000003a208 Flutter Flutter + 238088
                             flutter::PlatformMessageResponseDarwin::~PlatformMessageResponseDarwin()
                             flutter/shell/platform/darwin/ios/framework/Source/platform_message_response_darwin.mm:15:63
#01 000000000003a1a8 Flutter Flutter + 237992
                             flutter::PlatformMessageResponseDarwin::~PlatformMessageResponseDarwin()
                             flutter/shell/platform/darwin/ios/framework/Source/platform_message_response_darwin.mm:15:63
                             flutter::PlatformMessageResponseDarwin::~PlatformMessageResponseDarwin()
                             flutter/shell/platform/darwin/ios/framework/Source/platform_message_response_darwin.mm:15:63
#02 00000000004c86a4 Flutter Flutter + 5015204
                             fml::RefCountedThreadSafe<flutter::PlatformMessageResponse>::Release() const
                             flutter/fml/memory/ref_counted.h:73:7
                             fml::RefPtr<flutter::PlatformMessageResponse>::~RefPtr()
                             flutter/fml/memory/ref_ptr.h:111:13
                             fml::RefPtr<flutter::PlatformMessageResponse>::~RefPtr()
                             flutter/fml/memory/ref_ptr.h:109:13
                             std::__1::pair<int const, fml::RefPtr<flutter::PlatformMessageResponse> >::~pair()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/utility:297:29
                             std::__1::pair<int const, fml::RefPtr<flutter::PlatformMessageResponse> >::~pair()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/utility:297:29
                             void std::__1::allocator_traits<std::__1::allocator<std::__1::__hash_node<std::__1::__hash_value_type<int, fml::RefPtr<flutter::PlatformMessageResponse> >, void*> > >::__destroy<std::__1::pair<int const, fml::RefPtr<flutter::PlatformMessageResponse> > >(std::__1::integral_constant<bool, false>, std::__1::allocator<std::__1::__hash_node<std::__1::__hash_value_type<int, fml::RefPtr<flutter::PlatformMessageResponse> >, void*> >&, std::__1::pair<int const, fml::RefPtr<flutter::PlatformMessageResponse> >*)
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:1803:23
                             void std::__1::allocator_traits<std::__1::allocator<std::__1::__hash_node<std::__1::__hash_value_type<int, fml::RefPtr<flutter::PlatformMessageResponse> >, void*> > >::destroy<std::__1::pair<int const, fml::RefPtr<flutter::PlatformMessageResponse> > >(std::__1::allocator<std::__1::__hash_node<std::__1::__hash_value_type<int, fml::RefPtr<flutter::PlatformMessageResponse> >, void*> >&, std::__1::pair<int const, fml::RefPtr<flutter::PlatformMessageResponse> >*)
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:1635:14
                             std::__1::__hash_table<std::__1::__hash_value_type<int, fml::RefPtr<flutter::PlatformMessageResponse> >, std::__1::__unordered_map_hasher<int, std::__1::__hash_value_type<int, fml::RefPtr<flutter::PlatformMessageResponse> >, std::__1::hash<int>, true>, std::__1::__unordered_map_equal<int, std::__1::__hash_value_type<int, fml::RefPtr<flutter::PlatformMessageResponse> >, std::__1::equal_to<int>, true>, std::__1::allocator<std::__1::__hash_value_type<int, fml::RefPtr<flutter::PlatformMessageResponse> > > >::__deallocate_node(std::__1::__hash_node_base<std::__1::__hash_node<std::__1::__hash_value_type<int, fml::RefPtr<flutter::PlatformMessageResponse> >, void*>*>*)
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__hash_table:1602:9
                             std::__1::__hash_table<std::__1::__hash_value_type<int, fml::RefPtr<flutter::PlatformMessageResponse> >, std::__1::__unordered_map_hasher<int, std::__1::__hash_value_type<int, fml::RefPtr<flutter::PlatformMessageResponse> >, std::__1::hash<int>, true>, std::__1::__unordered_map_equal<int, std::__1::__hash_value_type<int, fml::RefPtr<flutter::PlatformMessageResponse> >, std::__1::equal_to<int>, true>, std::__1::allocator<std::__1::__hash_value_type<int, fml::RefPtr<flutter::PlatformMessageResponse> > > >::~__hash_table()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__hash_table:1541:5
                             std::__1::__hash_table<std::__1::__hash_value_type<int, fml::RefPtr<flutter::PlatformMessageResponse> >, std::__1::__unordered_map_hasher<int, std::__1::__hash_value_type<int, fml::RefPtr<flutter::PlatformMessageResponse> >, std::__1::hash<int>, true>, std::__1::__unordered_map_equal<int, std::__1::__hash_value_type<int, fml::RefPtr<flutter::PlatformMessageResponse> >, std::__1::equal_to<int>, true>, std::__1::allocator<std::__1::__hash_value_type<int, fml::RefPtr<flutter::PlatformMessageResponse> > > >::~__hash_table()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__hash_table:1533:1
                             std::__1::unordered_map<int, fml::RefPtr<flutter::PlatformMessageResponse>, std::__1::hash<int>, std::__1::equal_to<int>, std::__1::allocator<std::__1::pair<int const, fml::RefPtr<flutter::PlatformMessageResponse> > > >::~unordered_map()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/unordered_map:970:5
                             std::__1::unordered_map<int, fml::RefPtr<flutter::PlatformMessageResponse>, std::__1::hash<int>, std::__1::equal_to<int>, std::__1::allocator<std::__1::pair<int const, fml::RefPtr<flutter::PlatformMessageResponse> > > >::~unordered_map()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/unordered_map:968:22
                             flutter::PlatformConfiguration::~PlatformConfiguration()
                             flutter/lib/ui/window/platform_configuration.cc:196:50
                             flutter::PlatformConfiguration::~PlatformConfiguration()
                             flutter/lib/ui/window/platform_configuration.cc:196:49
#03 00000000004c810c Flutter Flutter + 5013772
                             std::__1::default_delete<flutter::PlatformConfiguration>::operator()(flutter::PlatformConfiguration*) const
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2368:5
                             std::__1::unique_ptr<flutter::PlatformConfiguration, std::__1::default_delete<flutter::PlatformConfiguration> >::reset(flutter::PlatformConfiguration*)
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2623:7
#04 00000000004c7efc Flutter Flutter + 5013244
                             std::__1::unique_ptr<flutter::PlatformConfiguration, std::__1::default_delete<flutter::PlatformConfiguration> >::~unique_ptr()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2577:19
                             std::__1::unique_ptr<flutter::PlatformConfiguration, std::__1::default_delete<flutter::PlatformConfiguration> >::~unique_ptr()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2577:17
                             flutter::UIDartState::~UIDartState()
                             flutter/lib/ui/ui_dart_state.cc:76:1
#05 00000000004fd6b0 Flutter Flutter + 5232304
                             flutter::DartIsolate::~DartIsolate()
                             flutter/runtime/dart_isolate.cc:296:29
                             flutter::DartIsolate::~DartIsolate()
                             flutter/runtime/dart_isolate.cc:296:29
#06 0000000000508df8 Flutter Flutter + 5279224
                             std::__1::__shared_count::__release_shared()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3445:9
                             std::__1::__shared_weak_count::__release_shared()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3487:27
                             std::__1::shared_ptr<flutter::DartIsolate>::~shared_ptr()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4212:19
                             std::__1::shared_ptr<flutter::DartIsolate>::~shared_ptr()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4210:1
                             flutter::RuntimeController::~RuntimeController()
                             flutter/runtime/runtime_controller.cc:86:1
#07 0000000000508850 Flutter Flutter + 5277776
                             flutter::RuntimeController::~RuntimeController()
                             flutter/runtime/runtime_controller.cc:75:41
                             flutter::RuntimeController::~RuntimeController()
                             flutter/runtime/runtime_controller.cc:75:41
#08 00000000003c7294 Flutter Flutter + 3961492
                             std::__1::default_delete<flutter::RuntimeController>::operator()(flutter::RuntimeController*) const
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2368:5
                             std::__1::unique_ptr<flutter::RuntimeController, std::__1::default_delete<flutter::RuntimeController> >::reset(flutter::RuntimeController*)
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2623:7
                             std::__1::unique_ptr<flutter::RuntimeController, std::__1::default_delete<flutter::RuntimeController> >::~unique_ptr()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2577:19
                             std::__1::unique_ptr<flutter::RuntimeController, std::__1::default_delete<flutter::RuntimeController> >::~unique_ptr()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2577:17
                             flutter::Engine::~Engine()
                             flutter/shell/common/engine.cc:138:17
#09 00000000003dd070 Flutter Flutter + 4051056
                             flutter::Engine::~Engine()
                             flutter/shell/common/engine.cc:138:17
                             std::__1::default_delete<flutter::Engine>::operator()(flutter::Engine*) const
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2368:5
                             std::__1::unique_ptr<flutter::Engine, std::__1::default_delete<flutter::Engine> >::reset(flutter::Engine*)
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2623:7
#10 00000000003dd854 Flutter Flutter + 4053076
                             flutter::Shell::~Shell()::$_3::operator()()
                             flutter/shell/common/shell.cc:446:17
                             auto fml::internal::CopyableLambda<flutter::Shell::~Shell()::$_3>::operator()<>() const
                             flutter/fml/make_copyable.h:24:12
                             decltype(std::__1::forward<fml::internal::CopyableLambda<flutter::Shell::~Shell()::$_3>&>(fp)()) std::__1::__invoke<fml::internal::CopyableLambda<flutter::Shell::~Shell()::$_3>&>(fml::internal::CopyableLambda<flutter::Shell::~Shell()::$_3>&)
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:3545:1
                             void std::__1::__invoke_void_return_wrapper<void>::__call<fml::internal::CopyableLambda<flutter::Shell::~Shell()::$_3>&>(fml::internal::CopyableLambda<flutter::Shell::~Shell()::$_3>&)
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__functional_base:348:9
                             std::__1::__function::__alloc_func<fml::internal::CopyableLambda<flutter::Shell::~Shell()::$_3>, std::__1::allocator<fml::internal::CopyableLambda<flutter::Shell::~Shell()::$_3> >, void ()>::operator()()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1546:16
                             std::__1::__function::__func<fml::internal::CopyableLambda<flutter::Shell::~Shell()::$_3>, std::__1::allocator<fml::internal::CopyableLambda<flutter::Shell::~Shell()::$_3> >, void ()>::operator()()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1720:12
#11 00000000002fbbf0 Flutter Flutter + 3128304
                             std::__1::__function::__value_func<void ()>::operator()() const
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1873:16
                             std::__1::function<void ()>::operator()() const
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:2548:12
                             fml::MessageLoopImpl::FlushTasks(fml::FlushType)
                             flutter/fml/message_loop_impl.cc:130:5
#12 00000000002ff1bc Flutter Flutter + 3142076
                             fml::MessageLoopImpl::RunExpiredTasksNow()
                             flutter/fml/message_loop_impl.cc:143:3
                             fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*)
                             flutter/fml/platform/darwin/message_loop_darwin.mm:80:11
#13 00000000002ff088 Flutter Flutter + 3141768
                             fml::MessageLoopDarwin::Run()
                             flutter/fml/platform/darwin/message_loop_darwin.mm:51:20
#14 00000000002fe848 Flutter Flutter + 3139656
                             fml::MessageLoopImpl::DoRun()
                             flutter/fml/message_loop_impl.cc:96:3
                             fml::MessageLoop::Run()
                             flutter/fml/message_loop.cc:49:10
                             fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0::operator()() const
                             flutter/fml/thread.cc:35:10
                             decltype(std::__1::forward<fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0>(fp)()) std::__1::__invoke<fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0>(fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0&&)
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:3545:1
                             void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0>&, std::__1::__tuple_indices<>)
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/thread:273:5
                             void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0> >(void*)
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/thread:284:5

(Load address missing from the report, detected heuristically: 0000000000000000)

danagbemava-nc commented 2 years ago

@mraleph thanks.

Labeling this for further investigation.

jmagman commented 2 years ago

@mraleph why is that missing the WebKit part of the stack? Why does it show 14 Flutter frames when the original shows 2, then some CoreFoundation, then another 13 frames?

jmagman commented 2 years ago

cc @bparrishMines

bparrishMines commented 2 years ago

I'm assuming this is caused by decisionHandler not being called in https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455641-webview?language=objc.

If possible, @noin-emoto can you provide Dart example code of the WebView.navigationDelegate from where this is happening? This could be a side effect of the WebView.navigationDelegate not returning.

mraleph commented 2 years ago

@mraleph why is that missing the WebKit part of the stack? Why does it show 14 Flutter frames when the original shows 2, then some CoreFoundation, then another 13 frames?

I think there is a bug in the parser loop this code here eats away those other frames.

I can't really understand / recall the logic behind this condition.

noin-emoto commented 2 years ago

Hi @bparrishMines , thank you for request. Our code summary is as follows.

I think our code returns WebView.navigationDelegate in all cases.

class WebViewBody extends StatefulWidget {

...

  @override
  _WebViewBodyState createState() {
    return _WebViewBodyState();
  }
}

class _WebViewBodyState extends State<WebViewBody> {

...

  @override
  void initState() {
    if (Platform.isAndroid) {
      WebView.platform = SurfaceAndroidWebView();
    }
    super.initState();
  }

...

  @override
  Widget build(BuildContext context) {
    return SafeArea(
      child: WebView(
        ...
        navigationDelegate: (request) async {
          return await _navigationDelegate(context, request);
        }
        ...
      )
    );
  }

  Future<NavigationDecision> _navigationDelegate(
    BuildContext context,
    NavigationRequest request,
  ) async {

    if (!request.isForMainFrame) {
      return NavigationDecision.navigate;
    }

    final url = request.url;

    final navigationDecision = await handleWebViewUrl(
      context,
      url: url,
    )

    if ( // url check ) {
      // WebView rebuild for specific url
      return NavigationDecision.prevent;
    }

    return navigationDecision;
  }
}

Future<NavigationDecision> handleWebViewUrl(
  BuildContext context,
  { required String url }
) async {

  final uri = Uri.parse(url);
  var navigation = false;

  switch (uri.host) {
    // some cases
    // update navigation variable
  }

  return navigation ? NavigationDecision.navigate : NavigationDecision.prevent;
}
bparrishMines commented 1 year ago

@noin-emoto The code facilitating this callback has been updated with 2.9.0. When compiled with the latest version of webview_flutter, let me know if you are still seeing this crash.

TimYusR commented 1 year ago

Facing the same issue on version 3.0.0 of webview_flutter

chejdj commented 1 year ago

Have any idea ? I meet too. When I upgrade the Flutter 3.3.8

webview_flutter: 3.0.4

@bparrishMines Hi. Could you please see this?

chejdj commented 1 year ago

Flutter 3.3.8

@bparrishMines @jmagman Hi, Could you see this error?

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x92d1c __exceptionPreprocess
1  libobjc.A.dylib                0x14ee4 objc_exception_throw
2  CoreFoundation                 0xe5f08 __CFDictionaryCreateGeneric
3  WebKit                         0x18b698 WebKit::CompletionHandlerCallChecker::~CompletionHandlerCallChecker()
4  WebKit                         0x250e68 WTF::Ref<WebKit::CompletionHandlerCallChecker, WTF::RawPtrTraits<WebKit::CompletionHandlerCallChecker> >::~Ref()
5  WebKit                         0x35fc48 WTF::BlockPtr<void (WKNavigationActionPolicy)> WTF::BlockPtr<void (WKNavigationActionPolicy)>::fromCallable<WebKit::NavigationState::NavigationClient::decidePolicyForNavigationAction(WebKit::WebPageProxy&, WTF::Ref<API::NavigationAction, WTF::RawPtrTraits<API::NavigationAction> >&&, WTF::Ref<WebKit::WebFramePolicyListenerProxy, WTF::RawPtrTraits<WebKit::WebFramePolicyListenerProxy> >&&, API::Object*)::$_15>(WebKit::NavigationState::NavigationClient::decidePolicyForNavigationAction(WebKit::WebPageProxy&, WTF::Ref<API::NavigationAction, WTF::RawPtrTraits<API::NavigationAction> >&&, WTF::Ref<WebKit::WebFramePolicyListenerProxy, WTF::RawPtrTraits<WebKit::WebFramePolicyListenerProxy> >&&, API::Object*)::$_15)::'lambda'(void const*)::__invoke(void const*)
6  libsystem_blocks.dylib         0x1840 _Block_release
7  libsystem_blocks.dylib         0x1840 _Block_release
8  libsystem_blocks.dylib         0x1840 _Block_release
9  libsystem_blocks.dylib         0x1840 _Block_release
10 Flutter                        0x3cb94 (缺少 UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
11 Flutter                        0x3cb34 (缺少 UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
12 Flutter                        0x4dc498 (缺少 UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
13 Flutter                        0x4dbde0 (缺少 UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
14 Flutter                        0x4dbbd0 (缺少 UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
15 Flutter                        0x5678e4 (缺少 UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
16 Flutter                        0x5738c8 (缺少 UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
17 Flutter                        0x5732fc (缺少 UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
18 Flutter                        0x3cc4a4 (缺少 UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
19 Flutter                        0x3da7a0 (缺少 UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
20 Flutter                        0x3dafcc (缺少 UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
21 Flutter                        0x2f5ec4 (缺少 UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
22 Flutter                        0x2f91fc (缺少 UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
23 CoreFoundation                 0xa7268 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
24 CoreFoundation                 0x30b08 __CFRunLoopDoTimer
25 CoreFoundation                 0x2b6c0 __CFRunLoopDoTimers
26 CoreFoundation                 0xb3b4 __CFRunLoopRun
27 CoreFoundation                 0x1e250 CFRunLoopRunSpecific
28 Flutter                        0x2f90cc (缺少 UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
29 Flutter                        0x2f8acc (缺少 UUID 4aeaca1fde2f3daeb5830cf99fcf86e3)
30 libsystem_pthread.dylib        0x3348 _pthread_start
31 libsystem_pthread.dylib        0x1948 thread_start
GeylanKalafMohe commented 1 year ago

Please investigate in solving this issue. It still exists. I get this as crash in the logs:

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Completion handler passed to -[FWFNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:] was not called'
wishJinit commented 1 year ago

same issue.

Flutter 3.7.7
webview_flutter: 4.0.7
webview_flutter_wkwebview: 3.2.2
webview_flutter_android: 3.4.4

It's an error log

OS Version: iOS 16.3.1 (20D67)
Report Version: 104

Exception Type: EXC_CRASH (SIGABRT)
Crashed Thread: 2

Application Specific Information:
Completion handler passed to -[FWFNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:] was not called

Thread 2 Crashed:
0   CoreFoundation                  0x33936be38         __exceptionPreprocess
1   libobjc.A.dylib                 0x32b68b8d4         objc_exception_throw
2   CoreFoundation                  0x33945bc24         +[NSException raise:format:]
3   WebKit                          0x35e9345b8         <redacted>
4   WebKit                          0x35e9d2bc0         <redacted>
5   WebKit                          0x35eb7720c         <redacted>
6   libsystem_blocks.dylib          0x3d585c120         _call_dispose_helpers_excp
7   libsystem_blocks.dylib          0x3d585bd50         _Block_release
8   libsystem_blocks.dylib          0x3d585c120         _call_dispose_helpers_excp
9   libsystem_blocks.dylib          0x3d585bd50         _Block_release
10  libsystem_blocks.dylib          0x3d585c120         _call_dispose_helpers_excp
11  libsystem_blocks.dylib          0x3d585bd50         _Block_release
12  Flutter                         0x106b52de0         <redacted>
13  libsystem_blocks.dylib          0x3d585c120         _call_dispose_helpers_excp
14  libsystem_blocks.dylib          0x3d585bd50         _Block_release
15  libsystem_blocks.dylib          0x3d585c120         _call_dispose_helpers_excp
16  libsystem_blocks.dylib          0x3d585bd50         _Block_release
17  Flutter                         0x106b7987c         <redacted>
18  Flutter                         0x106b7981c         <redacted>
19  Flutter                         0x106ff6d3c         <redacted>
20  Flutter                         0x106ff6ad8         <redacted>
21  Flutter                         0x106ff69a4         <redacted>
22  Flutter                         0x1070bebac         <redacted>
23  Flutter                         0x1070c7be8         <redacted>
24  Flutter                         0x1070c6ac8         <redacted>
25  Flutter                         0x106efeea8         <redacted>
26  Flutter                         0x106f0b8e8         <redacted>
27  Flutter                         0x106f0c174         <redacted>
28  Flutter                         0x106e12cdc         <redacted>
29  Flutter                         0x106e15e80         <redacted>
30  CoreFoundation                  0x339430328         __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
31  CoreFoundation                  0x3393ec9a4         __CFRunLoopDoTimer
32  CoreFoundation                  0x339390544         __CFRunLoopDoTimers
33  CoreFoundation                  0x3393ddf9c         __CFRunLoopRun
34  CoreFoundation                  0x3393e2eac         CFRunLoopRunSpecific
35  Flutter                         0x106e15f6c         <redacted>
36  Flutter                         0x106e15a5c         <redacted>
37  libsystem_pthread.dylib         0x3d58656c8         _pthread_start
38  libsystem_pthread.dylib         0x3d5864ba0         thread_start

Thread 0
0   libsystem_kernel.dylib          0x3b499d67c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3d586c068         _pthread_cond_wait
2   Flutter                         0x106b84574         <redacted>
3   Flutter                         0x106e145c4         <redacted>
4   Flutter                         0x106f0b1a8         <redacted>
5   Flutter                         0x106b529c8         <redacted>
6   Flutter                         0x106b4d3ec         <redacted>
7   CoreFoundation                  0x3393993b0         __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
8   CoreFoundation                  0x339440440         ___CFXRegistrationPost_block_invoke
9   CoreFoundation                  0x3394236f0         _CFXRegistrationPost
10  CoreFoundation                  0x3393ad9b4         _CFXNotificationPost
11  Foundation                      0x32daa4d08         -[NSNotificationCenter postNotificationName:object:userInfo:]
12  UIKitCore                       0x33e44cb78         -[UIApplication _terminateWithStatus:]
13  UIKitCore                       0x33d99c704         -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]
14  UIKitCore                       0x33ddb3de8         -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:]
15  UIKitCore                       0x33e448f70         -[UIApplication workspaceShouldExit:withTransitionContext:]
16  FrontBoardServices              0x364ea1e70         __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke_2
17  FrontBoardServices              0x364e66c20         -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:]
18  FrontBoardServices              0x364ea1e10         __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke
19  libdispatch.dylib               0x347fa1f84         _dispatch_client_callout
20  libdispatch.dylib               0x347fa5a04         _dispatch_block_invoke_direct
21  FrontBoardServices              0x364e70d3c         __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__
22  FrontBoardServices              0x364e708d8         -[FBSSerialQueue _targetQueue_performNextIfPossible]
23  FrontBoardServices              0x364e73180         -[FBSSerialQueue _performNextFromRunLoopSource]
24  CoreFoundation                  0x339437f20         __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
25  CoreFoundation                  0x3394442f8         __CFRunLoopDoSource0
26  CoreFoundation                  0x3393c81bc         __CFRunLoopDoSources0
27  CoreFoundation                  0x3393ddb78         __CFRunLoopRun
28  CoreFoundation                  0x3393e2eac         CFRunLoopRunSpecific
29  GraphicsServices                0x3ad84d364         GSEventRunModal
30  UIKitCore                       0x33daad664         -[UIApplication _run]
31  UIKitCore                       0x33daad2c8         UIApplicationMain
32  Runner                          0x2046dfe74         <redacted>
33  <unknown>                       0x1d0dac960         <redacted>

Thread 1 name: com.apple.uikit.eventfetch-thread
0   libsystem_kernel.dylib          0x3b499cda8         mach_msg2_trap
1   libsystem_kernel.dylib          0x3b49afa18         mach_msg2_internal
2   libsystem_kernel.dylib          0x3b49afc58         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3b499d2e8         mach_msg
4   CoreFoundation                  0x3393dcac0         __CFRunLoopServiceMachPort
5   CoreFoundation                  0x3393ddd04         __CFRunLoopRun
6   CoreFoundation                  0x3393e2eac         CFRunLoopRunSpecific
7   Foundation                      0x32da8a050         -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
8   Foundation                      0x32da89f38         -[NSRunLoop(NSRunLoop) runUntilDate:]
9   UIKitCore                       0x33dbe26a0         -[UIEventFetcher threadMain]
10  Foundation                      0x32daa3514         __NSThread__start__
11  libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 2 name: io.flutter.1.ui Crashed:
0   CoreFoundation                  0x33936be38         __exceptionPreprocess
1   libobjc.A.dylib                 0x32b68b8d4         objc_exception_throw
2   CoreFoundation                  0x33945bc24         +[NSException raise:format:]
3   WebKit                          0x35e9345b8         <redacted>
4   WebKit                          0x35e9d2bc0         <redacted>
5   WebKit                          0x35eb7720c         <redacted>
6   libsystem_blocks.dylib          0x3d585c120         _call_dispose_helpers_excp
7   libsystem_blocks.dylib          0x3d585bd50         _Block_release
8   libsystem_blocks.dylib          0x3d585c120         _call_dispose_helpers_excp
9   libsystem_blocks.dylib          0x3d585bd50         _Block_release
10  libsystem_blocks.dylib          0x3d585c120         _call_dispose_helpers_excp
11  libsystem_blocks.dylib          0x3d585bd50         _Block_release
12  Flutter                         0x106b52de0         <redacted>
13  libsystem_blocks.dylib          0x3d585c120         _call_dispose_helpers_excp
14  libsystem_blocks.dylib          0x3d585bd50         _Block_release
15  libsystem_blocks.dylib          0x3d585c120         _call_dispose_helpers_excp
16  libsystem_blocks.dylib          0x3d585bd50         _Block_release
17  Flutter                         0x106b7987c         <redacted>
18  Flutter                         0x106b7981c         <redacted>
19  Flutter                         0x106ff6d3c         <redacted>
20  Flutter                         0x106ff6ad8         <redacted>
21  Flutter                         0x106ff69a4         <redacted>
22  Flutter                         0x1070bebac         <redacted>
23  Flutter                         0x1070c7be8         <redacted>
24  Flutter                         0x1070c6ac8         <redacted>
25  Flutter                         0x106efeea8         <redacted>
26  Flutter                         0x106f0b8e8         <redacted>
27  Flutter                         0x106f0c174         <redacted>
28  Flutter                         0x106e12cdc         <redacted>
29  Flutter                         0x106e15e80         <redacted>
30  CoreFoundation                  0x339430328         __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
31  CoreFoundation                  0x3393ec9a4         __CFRunLoopDoTimer
32  CoreFoundation                  0x339390544         __CFRunLoopDoTimers
33  CoreFoundation                  0x3393ddf9c         __CFRunLoopRun
34  CoreFoundation                  0x3393e2eac         CFRunLoopRunSpecific
35  Flutter                         0x106e15f6c         <redacted>
36  Flutter                         0x106e15a5c         <redacted>
37  libsystem_pthread.dylib         0x3d58656c8         _pthread_start
38  libsystem_pthread.dylib         0x3d5864ba0         thread_start

Thread 3 name: io.flutter.1.raster
0   libsystem_kernel.dylib          0x3b499cda8         mach_msg2_trap
1   libsystem_kernel.dylib          0x3b49afa18         mach_msg2_internal
2   libsystem_kernel.dylib          0x3b49afc58         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3b499d2e8         mach_msg
4   CoreFoundation                  0x3393dcac0         __CFRunLoopServiceMachPort
5   CoreFoundation                  0x3393ddd04         __CFRunLoopRun
6   CoreFoundation                  0x3393e2eac         CFRunLoopRunSpecific
7   Flutter                         0x106e15f6c         <redacted>
8   Flutter                         0x106e15a5c         <redacted>
9   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 4 name: io.flutter.1.io
0   libsystem_kernel.dylib          0x3b499cda8         mach_msg2_trap
1   libsystem_kernel.dylib          0x3b49afa18         mach_msg2_internal
2   libsystem_kernel.dylib          0x3b49afc58         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3b499d2e8         mach_msg
4   CoreFoundation                  0x3393dcac0         __CFRunLoopServiceMachPort
5   CoreFoundation                  0x3393ddd04         __CFRunLoopRun
6   CoreFoundation                  0x3393e2eac         CFRunLoopRunSpecific
7   Flutter                         0x106e15f6c         <redacted>
8   Flutter                         0x106e15a5c         <redacted>
9   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 5 name: io.worker.1
0   libsystem_kernel.dylib          0x3b499d67c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3d586c068         _pthread_cond_wait
2   Flutter                         0x106b84574         <redacted>
3   Flutter                         0x106e10174         <redacted>
4   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 6 name: io.worker.2
0   libsystem_kernel.dylib          0x3b499d67c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3d586c068         _pthread_cond_wait
2   Flutter                         0x106b84574         <redacted>
3   Flutter                         0x106e10174         <redacted>
4   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 7 name: io.worker.3
0   libsystem_kernel.dylib          0x3b499d67c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3d586c068         _pthread_cond_wait
2   Flutter                         0x106b84574         <redacted>
3   Flutter                         0x106e10174         <redacted>
4   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 8 name: io.worker.4
0   libsystem_kernel.dylib          0x3b499d67c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3d586c068         _pthread_cond_wait
2   Flutter                         0x106b84574         <redacted>
3   Flutter                         0x106e10174         <redacted>
4   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 9 name: io.worker.5
0   libsystem_kernel.dylib          0x3b499d67c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3d586c068         _pthread_cond_wait
2   Flutter                         0x106b84574         <redacted>
3   Flutter                         0x106e10174         <redacted>
4   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 10 name: io.worker.6
0   libsystem_kernel.dylib          0x3b499d67c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3d586c068         _pthread_cond_wait
2   Flutter                         0x106b84574         <redacted>
3   Flutter                         0x106e10174         <redacted>
4   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 11 name: dart:io EventHandler
0   libsystem_kernel.dylib          0x3b499e6e0         kevent
1   Flutter                         0x106fffe50         <redacted>
2   Flutter                         0x107030108         <redacted>
3   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 12 name: com.google.firebase.crashlytics.MachExceptionServer
0   libsystem_kernel.dylib          0x3b499cda8         mach_msg2_trap
1   libsystem_kernel.dylib          0x3b49afa18         mach_msg2_internal
2   libsystem_kernel.dylib          0x3b49afc58         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3b499d2e8         mach_msg
4   FirebaseCrashlytics             0x1055f4a50         <unknown> + 108
5   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 13
0   libsystem_kernel.dylib          0x3b499d268         __semwait_signal
1   libsystem_c.dylib               0x3480317d4         nanosleep
2   libsystem_c.dylib               0x348045ad4         sleep
3   Sentry                          0x105e9d0d4         <unknown> + 676
4   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 14 name: SentryCrash Exception Handler (Secondary)
0   libsystem_kernel.dylib          0x3b499cda8         mach_msg2_trap
1   libsystem_kernel.dylib          0x3b49afa18         mach_msg2_internal
2   libsystem_kernel.dylib          0x3b49a9984         thread_suspend
3   Sentry                          0x105ea8f8c         <unknown> + 128
4   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 15 name: SentryCrash Exception Handler (Primary)
0   libsystem_kernel.dylib          0x3b499cda8         mach_msg2_trap
1   libsystem_kernel.dylib          0x3b49afa18         mach_msg2_internal
2   libsystem_kernel.dylib          0x3b49afc58         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3b499d2e8         mach_msg
4   Sentry                          0x105ea8fb8         <unknown> + 172
5   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 16 name: com.apple.NSURLConnectionLoader
0   libsystem_kernel.dylib          0x3b499cda8         mach_msg2_trap
1   libsystem_kernel.dylib          0x3b49afa18         mach_msg2_internal
2   libsystem_kernel.dylib          0x3b49afc58         mach_msg_overwrite
3   libsystem_kernel.dylib          0x3b499d2e8         mach_msg
4   CoreFoundation                  0x3393dcac0         __CFRunLoopServiceMachPort
5   CoreFoundation                  0x3393ddd04         __CFRunLoopRun
6   CoreFoundation                  0x3393e2eac         CFRunLoopRunSpecific
7   CFNetwork                       0x33b8e1fec         _CFURLStorageSessionDisableCache
8   Foundation                      0x32daa3514         __NSThread__start__
9   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 17
0   libsystem_kernel.dylib          0x3b499d2b0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3d5864e40         _pthread_wqthread

Thread 18
0   libsystem_kernel.dylib          0x3b499d2b0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3d5864e40         _pthread_wqthread

Thread 19
0   libsystem_kernel.dylib          0x3b499d2b0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3d5864e40         _pthread_wqthread

Thread 20
0   libsystem_pthread.dylib         0x3d5864b90         start_wqthread

Thread 21
0   libsystem_pthread.dylib         0x3d5864b90         start_wqthread

Thread 22
0   libsystem_kernel.dylib          0x3b499d2b0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3d5864e40         _pthread_wqthread

Thread 23
0   libsystem_kernel.dylib          0x3b499d2b0         __workq_kernreturn
1   libsystem_pthread.dylib         0x3d5864e40         _pthread_wqthread

Thread 24
0   libsystem_kernel.dylib          0x3b499d67c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3d586c068         _pthread_cond_wait
2   JavaScriptCore                  0x36021b03c         <redacted>
3   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 26
0   libsystem_kernel.dylib          0x3b499d67c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3d586c094         _pthread_cond_wait
2   Flutter                         0x10717782c         <redacted>
3   Flutter                         0x1071b5370         <redacted>
4   Flutter                         0x1071771f8         <redacted>
5   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 27
0   libsystem_kernel.dylib          0x3b499d67c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3d586c094         _pthread_cond_wait
2   Flutter                         0x10717782c         <redacted>
3   Flutter                         0x1071b5370         <redacted>
4   Flutter                         0x1071771f8         <redacted>
5   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

Thread 28
0   libsystem_kernel.dylib          0x3b499d67c         __psynch_cvwait
1   libsystem_pthread.dylib         0x3d586c094         _pthread_cond_wait
2   Flutter                         0x10717782c         <redacted>
3   Flutter                         0x1071b5370         <redacted>
4   Flutter                         0x1071771f8         <redacted>
5   libsystem_pthread.dylib         0x3d58656c8         _pthread_start

EOF
MobIS1User commented 9 months ago

It's happening for us on this version of flutter: 3.7.12.

Here is a link to our issue in Sentry: https://hunter-industries-mz.sentry.io/share/issue/9db107cf84624e6ca392e464c20743c5/

Like any onNavigationRequest delegate, our delegate can throw an exception, which is one of our hypotheses as to the cause of this issue since that may break the flow of control in dart and not return a NavigationDecision. However, we want some of our exceptions to bubble to the highest level in Dart/Flutter to be handled generically by the guarded zone. We are running an experiment with wrapping exceptions in a Future error to see if that helps (https://api.flutter.dev/flutter/dart-async/Future/Future.error.html).

Thank you for continuing to investigate.

Here is our pubspec.yaml dependencies:

environment: sdk: '>=2.18.2 <3.0.0'

dependencies: flutter: sdk: flutter webview_flutter: 4.2.2 cupertino_icons: 1.0.5 onesignal_flutter: 3.5.1 package_info_plus: 3.1.2 flutter_native_splash: 2.2.19 oauth2: 2.0.1 flutter_secure_storage: 8.0.0 flutter_dotenv: 5.1.0 sentry_flutter: 7.9.0 synchronized: 3.1.0 http: 0.13.5 connectivity_plus: 4.0.1 flutter_launcher_icons: 0.13.1 file_picker: ^5.3.1 webview_flutter_android: ^3.9.1

dependency_overrides: webview_flutter_wkwebview: '3.5.0' webview_flutter_android: '3.9.1'

dev_dependencies: flutter_test: sdk: flutter mockito: 5.4.0 build_runner: 2.3.3 flutter_lints: 2.0.2 plugin_platform_interface: 2.1.5 webview_flutter_platform_interface: 2.4.0 sentry_dart_plugin: ^1.0.0

flutter: uses-material-design: true assets:

flutter_native_splash: color: "#00658A" image: "assets/logo.png" android: true ios: true web: false android_12: color: "#00658A" image: "assets/logo.png"

flutter_launcher_icons: android: "launcher_icon" ios: true image_path: "assets/icon/icon_2048pt.png" min_sdk_android: 21

sentry: upload_debug_symbols: true upload_source_maps: true upload_sources: true project: "flutter" org: "hunter-industries-mz" ignore_missing: true

MobIS1User commented 7 months ago

It's happening for us on this version of flutter: 3.7.12.

Here is a link to our issue in Sentry: https://hunter-industries-mz.sentry.io/share/issue/9db107cf84624e6ca392e464c20743c5/

Like any onNavigationRequest delegate, our delegate can throw an exception, which is one of our hypotheses as to the cause of this issue since that may break the flow of control in dart and not return a NavigationDecision. However, we want some of our exceptions to bubble to the highest level in Dart/Flutter to be handled generically by the guarded zone. We are running an experiment with wrapping exceptions in a Future error to see if that helps (https://api.flutter.dev/flutter/dart-async/Future/Future.error.html).

Thank you for continuing to investigate.

Here is our pubspec.yaml dependencies:

environment: sdk: '>=2.18.2 <3.0.0'

dependencies: flutter: sdk: flutter webview_flutter: 4.2.2 cupertino_icons: 1.0.5 onesignal_flutter: 3.5.1 package_info_plus: 3.1.2 flutter_native_splash: 2.2.19 oauth2: 2.0.1 flutter_secure_storage: 8.0.0 flutter_dotenv: 5.1.0 sentry_flutter: 7.9.0 synchronized: 3.1.0 http: 0.13.5 connectivity_plus: 4.0.1 flutter_launcher_icons: 0.13.1 file_picker: ^5.3.1 webview_flutter_android: ^3.9.1

dependency_overrides: webview_flutter_wkwebview: '3.5.0' webview_flutter_android: '3.9.1'

dev_dependencies: flutter_test: sdk: flutter mockito: 5.4.0 build_runner: 2.3.3 flutter_lints: 2.0.2 plugin_platform_interface: 2.1.5 webview_flutter_platform_interface: 2.4.0 sentry_dart_plugin: ^1.0.0

flutter: uses-material-design: true assets: - .env

flutter_native_splash: color: "#00658A" image: "assets/logo.png" android: true ios: true web: false android_12: color: "#00658A" image: "assets/logo.png"

flutter_launcher_icons: android: "launcher_icon" ios: true image_path: "assets/icon/icon_2048pt.png" min_sdk_android: 21

sentry: upload_debug_symbols: true upload_source_maps: true upload_sources: true project: "flutter" org: "hunter-industries-mz" ignore_missing: true

Hey our logs showed this happened again for us: https://hunter-industries-mz.sentry.io/share/issue/267afade53644154a7ed92f0107f9cf6/

@danagbemava-nc @bparrishMines @mraleph @jmagman, any updates on this? Thanks for your time and help!

MobIS1User commented 7 months ago

FYI, here is our current flutter doctor:

Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.13.6, on Microsoft Windows [Version 10.0.19045.3324], locale en-US) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Visual Studio Enterprise 2022 17.6.4) [√] Android Studio (version 2022.3) [√] VS Code, 64-bit edition (version 1.82.1) [√] Connected device (4 available) [√] Network resources

• No issues found!

GeylanKalafMohe commented 7 months ago

Please fix this issue!!!!!!!!!

MobIS1User commented 7 months ago

This occurred again in our app in production on October 8th, 2023: https://hunter-industries-mz.sentry.io/share/issue/9db107cf84624e6ca392e464c20743c5/

MobIS1User commented 6 months ago

This occurred again in our app in production on November 4th, 2023: https://hunter-industries-mz.sentry.io/share/issue/b3aab56a0d224af4a4256d264973fb50/

MobIS1User commented 6 months ago

We have seen this once again today: https://hunter-industries-mz.sentry.io/share/issue/b3aab56a0d224af4a4256d264973fb50/

dinbtechit commented 5 months ago

This issue happened on Iphone 15 (ios 17.0) simulator. Hunch is this probably happens on read devices as well. I think this issue happens when you try to controller.goBack() when the component is unmounted.

I tried checking for context.mounted before calling the goBack() method. But the error keeps happening.

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: This widget has been unmounted, so the State no longer has a context (and should be considered defunct).
Consider canceling any active work during "dispose" or using the "mounted" getter to determine if the State is still active.
#0      State.context.<anonymous closure> (package:flutter/src/widgets/framework.dart:951:9)
#1      State.context (package:flutter/src/widgets/framework.dart:957:6)
#2      _ServiceWebViewState.initState.<anonymous closure> (package:aps/home/online_services/service_webview.dart:35:17)
#3      WebKitWebViewController._webView.<anonymous closure>.<anonymous closure> (package:webview_flutter_wkwebview/src/webkit_webview_controller.dart:254:31)
#4      NSObjectFlutterApiImpl.observeValue (package:webview_flutter_wkwebview/src/foundation/foundation_api_impls.dart:168:15)
#5      NSObjectFlutterApi.setup.<anonymous closure> (package:webview_flutter_wkwebview/src/common/web_kit.g.dart:2039:17)
#6      BasicMes<…>
MobIS1User commented 5 months ago

FYI: This occurred again: https://hunter-industries-mz.sentry.io/share/issue/b3aab56a0d224af4a4256d264973fb50/

remantou commented 2 months ago

same issue on Flutter 3.13.9 any updates?

OTanTalum commented 2 months ago

has same error

 webview_flutter: ^4.4.4
 Flutter (Channel stable, 3.16.7, on macOS 13.6.4 22G513 darwin-arm64)

Incident Identifier: 0B67373B-08EB-446C-B62E-C14FD7F941C8
CrashReporter Key:   2EA24D5A-8589-4BAA-BBDF-60A73667CF37
Hardware Model:      Mac14,7
Process:             Runner [2850]
Path:                /Users/USER/Library/Developer/CoreSimulator/Devices/2D784609-F597-4D46-B1FE-98D5A763265A/data/Containers/Bundle/Application/4C77D2BF-85D7-4C31-AA3C-3BE9626423D2/Runner.app/Runner
Version:             5.5.1 (515)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd_sim [94600]
Coalition:           com.apple.CoreSimulator.SimDevice.2D784609-F597-4D46-B1FE-98D5A763265A [4670]
Responsible Process: SimulatorTrampoline [812]

Date/Time:           2024-02-29 23:59:41.3905 +0200
Launch Time:         2024-02-29 23:58:55.4991 +0200
OS Version:          macOS 13.6.4 (22G513)
Release Type:        User
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: SIGNAL 6 Abort trap: 6
Terminating Process: Runner [2850]

Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                         0x180437324 __exceptionPreprocess + 160
1   libobjc.A.dylib                        0x180051274 objc_exception_throw + 56
2   Foundation                             0x180ae29b4 _userInfoForFileAndLine + 0
3   webview_flutter_wkwebview              0x1060f487c __63-[FWFNavigationDelegate webView:didStartProvisionalNavigation:]_block_invoke + 156 (FWFNavigationDelegateHostApi.m:169)
4   webview_flutter_wkwebview              0x1060e3538 __125-[FWFWKNavigationDelegateFlutterApi didStartProvisionalNavigationForDelegateWithIdentifier:webViewIdentifier:URL:completion:]_block_invoke + 248 (FWFGeneratedWebKitApis.m:1901)
5   Flutter                                0x10f601700 __48-[FlutterBasicMessageChannel sendMessage:reply:]_block_invoke + 92
6   Flutter                                0x10f01d904 std::_LIBCPP_ABI_NAMESPACE::__function::__func<fml::internal::CopyableLambda<flutter::PlatformMessageResponseDarwin::Complete(std::_LIBCPP_ABI_NAMESPACE::unique_ptr<fml::Mapping, std::_LIBCPP_ABI_NAMESPACE::default_delete<fml::Mapping>>)::$_0>, std::_LIBCPP_ABI_NAMESPACE::allocator<fml::internal::CopyableLambda<flutter::PlatformMessageResponseDarwin::Complete(std::_LIBCPP_ABI_NAMESPACE::unique_ptr<fml::Mapping, std::_LIBCPP_ABI_NAMESPACE::default_delete<fml::Mapping>>)::$_0>>, void ()>::operator()() + 60
7   Flutter                                0x10f2e7ed0 fml::MessageLoopImpl::FlushTasks(fml::FlushType) + 156
8   Flutter                                0x10f2ee8d4 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 32
9   CoreFoundation                         0x18039b31c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
10  CoreFoundation                         0x18039afd8 __CFRunLoopDoTimer + 868
11  CoreFoundation                         0x18039a6c4 __CFRunLoopDoTimers + 284
12  CoreFoundation                         0x180394d58 __CFRunLoopRun + 1772
13  CoreFoundation                         0x180394254 CFRunLoopRunSpecific + 584
14  GraphicsServices                       0x188eb7c9c GSEventRunModal + 160
15  UIKitCore                              0x118e8aff0 -[UIApplication _run] + 868
16  UIKitCore                              0x118e8ef3c UIApplicationMain + 124
17  Runner                                 0x102caf9a4 main + 64 (AppDelegate.swift:9)
18  dyld_sim                               0x1032f5514 start_sim + 20
19  dyld                                   0x1033c9f28 start + 2236
20  ???                             0xa334800000000000 ???

Kernel Triage:
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage
ashtanko commented 2 months ago

Got the same error

description:

The app crashes every time I run the hot reload, even after commenting out NavigationDelegate in my code, I guess the problem in the webview dependency itself.

lib version:

webview_flutter: ^4.4.4

flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.2, on macOS 14.3.1 23D60 darwin-arm64 (Rosetta), locale en-UA)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[!] Android Studio (version unknown)
    ✗ Unable to determine Android Studio version.
[✓] Android Studio (version 2023.1)
[!] Android Studio (version unknown)
    ✗ Unable to determine Android Studio version.
[✓] IntelliJ IDEA Ultimate Edition (version EAP IU-241.13688.18)
[✓] IntelliJ IDEA Community Edition (version EAP IC-241.13688.18)
[✓] VS Code (version 1.86.2)
[✓] Connected device (4 available)
[✓] Network resources

Mac os crash report:

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

Incident Identifier: 05908D36-4447-43C2-9188-8A2D882FF6A1
CrashReporter Key:   62C16CDF-447C-3676-5FC0-386B67A0B240
Hardware Model:      MacBookPro18,3
Process:             Runner [14881]
Path:                /Users/USER/Library/Developer/CoreSimulator/Devices/36D017C4-1170-47A7-8859-CAE6C79FF829/data/Containers/Bundle/Application/2DA4F4AC-CA7A-42D7-868D-C11993513D38/Runner.app/Runner
Identifier:          com.zeely.app
Version:             5.5.1 (519)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd_sim [24448]
Coalition:           com.apple.CoreSimulator.SimDevice.36D017C4-1170-47A7-8859-CAE6C79FF829 [97021]
Responsible Process: SimulatorTrampoline [1062]

Date/Time:           2024-03-01 13:16:54.0405 +0000
Launch Time:         2024-03-01 13:01:48.9925 +0000
OS Version:          macOS 14.3.1 (23D60)
Release Type:        User
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: SIGNAL 6 Abort trap: 6
Terminating Process: Runner [14881]

Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                         0x18049111c __exceptionPreprocess + 160
1   libobjc.A.dylib                        0x18008412c objc_exception_throw + 56
2   Foundation                             0x180d1163c _userInfoForFileAndLine + 0
3   webview_flutter_wkwebview              0x104143a2c __49+[FLTWebViewFlutterPlugin registerWithRegistrar:]_block_invoke_3 + 156 (FLTWebViewFlutterPlugin.m:66)
4   webview_flutter_wkwebview              0x104156c34 __64-[FWFNSObjectFlutterApi disposeObjectWithIdentifier:completion:]_block_invoke + 392 (FWFGeneratedWebKitApis.m:2287)
5   Flutter                                0x108b0858c __48-[FlutterBasicMessageChannel sendMessage:reply:]_block_invoke + 92
6   Flutter                                0x108807178 fml::MessageLoopImpl::FlushTasks(fml::FlushType) + 156
7   Flutter                                0x10880dd48 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 32
8   CoreFoundation                         0x1803f2618 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
9   CoreFoundation                         0x1803f22d4 __CFRunLoopDoTimer + 948
10  CoreFoundation                         0x1803f1970 __CFRunLoopDoTimers + 284
11  CoreFoundation                         0x1803ec0bc __CFRunLoopRun + 1796
12  CoreFoundation                         0x1803eb5a4 CFRunLoopRunSpecific + 572
13  GraphicsServices                       0x18e9fbae4 GSEventRunModal + 160
14  UIKitCore                              0x1852f02e4 -[UIApplication _run] + 868
15  UIKitCore                              0x1852f3f5c UIApplicationMain + 124
16  Runner                                 0x10087a210 main + 64 (AppDelegate.swift:9)
17  dyld_sim                               0x1014f1544 start_sim + 20
18  dyld                                   0x100fee0e0 start + 2360
19  ???                             0x6552000000000000 ???
barilki commented 1 month ago

Any updates?

niklaesAtMonta commented 2 weeks ago

Have anyone had any workarounds that have worked? :)

DoubleLihui commented 1 week ago

i meet this too. is there a solution for this now? the webView_flutter version is 3.0.4. flutter sdk is 3.3.10 dart is 2.18.6

the below is my crash log:

`# Crashlytics - Stack trace

Application: com.pplingo.connect

Platform: apple

Version: 3.10.26 (3)

Issue: 3026857a07c1cdfd1150f61d394f4b4f

Session: 4babf97da3554b5d9b938664731d5e0e_DNE_7_v2

Date: Wed Apr 17 2024 20:04:53 GMT+0800 (中国标准时间)

com.apple.main-thread 0 libsystem_kernel.dylib 0xda8 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x13a1c mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x13c5c mach_msg_overwrite + 388 3 libsystem_kernel.dylib 0x12ec mach_msg + 24 4 CoreFoundation 0x7aac4 CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x7bd08 CFRunLoopRun + 1232 6 CoreFoundation 0x80eb0 CFRunLoopRunSpecific + 612 7 GraphicsServices 0x1368 GSEventRunModal + 164 8 UIKitCore 0x3a1668 -[UIApplication _run] + 888 9 UIKitCore 0x3a12cc UIApplicationMain + 340 10 Runner 0xdb00 main + 22 (AppDelegate.swift:22) 11 ??? 0x1eff7c960 (缺少)

com.apple.uikit.eventfetch-thread 0 libsystem_kernel.dylib 0xda8 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x13a1c mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x13c5c mach_msg_overwrite + 388 3 libsystem_kernel.dylib 0x12ec mach_msg + 24 4 CoreFoundation 0x7aac4 CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x7bd08 CFRunLoopRun + 1232 6 CoreFoundation 0x80eb0 CFRunLoopRunSpecific + 612 7 Foundation 0x42054 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 8 Foundation 0x41f3c -[NSRunLoop(NSRunLoop) runUntilDate:] + 64 9 UIKitCore 0x4d66a4 -[UIEventFetcher threadMain] + 436 10 Foundation 0x5b518 NSThreadstart__ + 716 11 libsystem_pthread.dylib 0x16cc _pthread_start + 148 12 libsystem_pthread.dylib 0xba4 thread_start + 8

io.flutter.1.ui 0 libsystem_kernel.dylib 0xda8 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x13a1c mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x13c5c mach_msg_overwrite + 388 3 libsystem_kernel.dylib 0x12ec mach_msg + 24 4 CoreFoundation 0x7aac4 CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x7bd08 CFRunLoopRun + 1232 6 CoreFoundation 0x80eb0 CFRunLoopRunSpecific + 612 7 Flutter 0x2f90cc (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 8 Flutter 0x2f8acc (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 9 libsystem_pthread.dylib 0x16cc _pthread_start + 148 10 libsystem_pthread.dylib 0xba4 thread_start + 8

io.flutter.1.raster 0 libsystem_kernel.dylib 0xda8 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x13a1c mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x13c5c mach_msg_overwrite + 388 3 libsystem_kernel.dylib 0x12ec mach_msg + 24 4 CoreFoundation 0x7aac4 CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x7bd08 CFRunLoopRun + 1232 6 CoreFoundation 0x80eb0 CFRunLoopRunSpecific + 612 7 Flutter 0x2f90cc (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 8 Flutter 0x2f8acc (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 9 libsystem_pthread.dylib 0x16cc _pthread_start + 148 10 libsystem_pthread.dylib 0xba4 thread_start + 8

io.flutter.1.io 0 libsystem_kernel.dylib 0xda8 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x13a1c mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x13c5c mach_msg_overwrite + 388 3 libsystem_kernel.dylib 0x12ec mach_msg + 24 4 CoreFoundation 0x7aac4 CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x7bd08 CFRunLoopRun + 1232 6 CoreFoundation 0x80eb0 CFRunLoopRunSpecific + 612 7 Flutter 0x2f90cc (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 8 Flutter 0x2f8acc (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 9 libsystem_pthread.dylib 0x16cc _pthread_start + 148 10 libsystem_pthread.dylib 0xba4 thread_start + 8

io.worker.1 0 libsystem_kernel.dylib 0x167c psynch_cvwait + 8 1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232 2 libc++.1.dylib 0xcacc std::__1::condition_variable::wait(std::1::unique_lock&) + 28 3 Flutter 0x2f3840 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 4 libsystem_pthread.dylib 0x16cc _pthread_start + 148 5 libsystem_pthread.dylib 0xba4 thread_start + 8

io.worker.2 0 libsystem_kernel.dylib 0x167c psynch_cvwait + 8 1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232 2 libc++.1.dylib 0xcacc std::__1::condition_variable::wait(std::1::unique_lock&) + 28 3 Flutter 0x2f3840 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 4 libsystem_pthread.dylib 0x16cc _pthread_start + 148 5 libsystem_pthread.dylib 0xba4 thread_start + 8

io.worker.3 0 libsystem_kernel.dylib 0x167c psynch_cvwait + 8 1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232 2 libc++.1.dylib 0xcacc std::__1::condition_variable::wait(std::1::unique_lock&) + 28 3 Flutter 0x2f3840 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 4 libsystem_pthread.dylib 0x16cc _pthread_start + 148 5 libsystem_pthread.dylib 0xba4 thread_start + 8

io.worker.4 0 libsystem_kernel.dylib 0x167c psynch_cvwait + 8 1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232 2 libc++.1.dylib 0xcacc std::__1::condition_variable::wait(std::1::unique_lock&) + 28 3 Flutter 0x2f3840 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 4 libsystem_pthread.dylib 0x16cc _pthread_start + 148 5 libsystem_pthread.dylib 0xba4 thread_start + 8

io.worker.5 0 libsystem_kernel.dylib 0x167c psynch_cvwait + 8 1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232 2 libc++.1.dylib 0xcacc std::__1::condition_variable::wait(std::1::unique_lock&) + 28 3 Flutter 0x2f3840 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 4 libsystem_pthread.dylib 0x16cc _pthread_start + 148 5 libsystem_pthread.dylib 0xba4 thread_start + 8

io.worker.6 0 libsystem_kernel.dylib 0x167c psynch_cvwait + 8 1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232 2 libc++.1.dylib 0xcacc std::__1::condition_variable::wait(std::1::unique_lock&) + 28 3 Flutter 0x2f3840 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 4 libsystem_pthread.dylib 0x16cc _pthread_start + 148 5 libsystem_pthread.dylib 0xba4 thread_start + 8

dart:io EventHandler 0 libsystem_kernel.dylib 0x26e0 kevent + 8 1 Flutter 0x4e432c (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 2 Flutter 0x513414 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 3 libsystem_pthread.dylib 0x16cc _pthread_start + 148 4 libsystem_pthread.dylib 0xba4 thread_start + 8

com.google.firebase.crashlytics.MachExceptionServer 0 FirebaseCrashlytics 0x1e2e8 FIRCLSProcessRecordAllThreads + 184 1 FirebaseCrashlytics 0x1e6c8 FIRCLSProcessRecordAllThreads + 1176 2 FirebaseCrashlytics 0x15764 FIRCLSHandler + 48 3 FirebaseCrashlytics 0x17fc0 FIRCLSMachExceptionServer + 688 4 libsystem_pthread.dylib 0x16cc _pthread_start + 148 5 libsystem_pthread.dylib 0xba4 thread_start + 8

com.apple.CoreMotion.MotionThread 0 libsystem_kernel.dylib 0xda8 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x13a1c mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x13c5c mach_msg_overwrite + 388 3 libsystem_kernel.dylib 0x12ec mach_msg + 24 4 CoreFoundation 0x7aac4 CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x7bd08 CFRunLoopRun + 1232 6 CoreFoundation 0x80eb0 CFRunLoopRunSpecific + 612 7 CoreFoundation 0xc4cd4 CFRunLoopRun + 64 8 CoreMotion 0x13ef8 CLMotionActivity::isTypeInVehicle(CLMotionActivity::Type) + 22908 9 libsystem_pthread.dylib 0x16cc _pthread_start + 148 10 libsystem_pthread.dylib 0xba4 thread_start + 8

com.apple.NSURLConnectionLoader 0 libsystem_kernel.dylib 0xda8 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x13a1c mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x13c5c mach_msg_overwrite + 388 3 libsystem_kernel.dylib 0x12ec mach_msg + 24 4 CoreFoundation 0x7aac4 CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x7bd08 CFRunLoopRun + 1232 6 CoreFoundation 0x80eb0 CFRunLoopRunSpecific + 612 7 CFNetwork 0x257ff0 _CFURLStorageSessionDisableCache + 61088 8 Foundation 0x5b518 NSThreadstart__ + 716 9 libsystem_pthread.dylib 0x16cc _pthread_start + 148 10 libsystem_pthread.dylib 0xba4 thread_start + 8

Thread 0 libsystem_kernel.dylib 0x12b0 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0xe44 _pthread_wqthread + 364 2 libsystem_pthread.dylib 0xb98 start_wqthread + 8

Crashed: com.apple.privacyaccounting.PAAccessLogger 0 libdispatch.dylib 0x194a8 dispatch_source_set_timer + 32 1 libdispatch.dylib 0x194a8 _dispatch_source_set_runloop_timer_4CF + 32 2 PrivacyAccounting 0xf1e8 -[PACoalescingIntervalTracker coalesce:] + 424 3 PrivacyAccounting 0x3d34 __22-[PAAccessLogger log:]_block_invoke + 360 4 libdispatch.dylib 0x13114 _dispatch_block_async_invoke2 + 148 5 libdispatch.dylib 0x3f88 _dispatch_client_callout + 20 6 libdispatch.dylib 0xb640 _dispatch_lane_serial_drain + 672 7 libdispatch.dylib 0xc1c0 _dispatch_lane_invoke + 436 8 libdispatch.dylib 0x16e10 _dispatch_workloop_worker_thread + 652 9 libsystem_pthread.dylib 0xdf8 _pthread_wqthread + 288 10 libsystem_pthread.dylib 0xb98 start_wqthread + 8

Thread 0 libsystem_kernel.dylib 0x167c psynch_cvwait + 8 1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232 2 StickerPoseDetector_iOS 0x8b3368 kmp_suspend_64 + 328 3 StickerPoseDetector_iOS 0x8ab060 kmp_flag_64::wait(kmp_info, int) + 632 4 StickerPoseDetector_iOS 0x8a8e4c __kmp_hyper_barrier_release(barrier_type, kmp_info, int, int, int) + 132 5 StickerPoseDetector_iOS 0x8aac94 kmp_fork_barrier(int, int) + 248 6 StickerPoseDetector_iOS 0x898834 __kmp_launch_thread + 188 7 StickerPoseDetector_iOS 0x8b2034 kmp_launch_worker(void*) + 136 8 libsystem_pthread.dylib 0x16cc _pthread_start + 148 9 libsystem_pthread.dylib 0xba4 thread_start + 8

Thread 0 libsystem_kernel.dylib 0x167c psynch_cvwait + 8 1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232 2 StickerPoseDetector_iOS 0x8b3368 kmp_suspend_64 + 328 3 StickerPoseDetector_iOS 0x8ab060 kmp_flag_64::wait(kmp_info, int) + 632 4 StickerPoseDetector_iOS 0x8a8e4c __kmp_hyper_barrier_release(barrier_type, kmp_info, int, int, int) + 132 5 StickerPoseDetector_iOS 0x8aac94 kmp_fork_barrier(int, int) + 248 6 StickerPoseDetector_iOS 0x898834 __kmp_launch_thread + 188 7 StickerPoseDetector_iOS 0x8b2034 kmp_launch_worker(void*) + 136 8 libsystem_pthread.dylib 0x16cc _pthread_start + 148 9 libsystem_pthread.dylib 0xba4 thread_start + 8

Thread 0 libsystem_kernel.dylib 0x167c psynch_cvwait + 8 1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232 2 StickerPoseDetector_iOS 0x8b3368 kmp_suspend_64 + 328 3 StickerPoseDetector_iOS 0x8ab060 kmp_flag_64::wait(kmp_info, int) + 632 4 StickerPoseDetector_iOS 0x8a8e4c __kmp_hyper_barrier_release(barrier_type, kmp_info, int, int, int) + 132 5 StickerPoseDetector_iOS 0x8aac94 kmp_fork_barrier(int, int) + 248 6 StickerPoseDetector_iOS 0x898834 __kmp_launch_thread + 188 7 StickerPoseDetector_iOS 0x8b2034 kmp_launch_worker(void*) + 136 8 libsystem_pthread.dylib 0x16cc _pthread_start + 148 9 libsystem_pthread.dylib 0xba4 thread_start + 8

Thread 0 libsystem_kernel.dylib 0x167c psynch_cvwait + 8 1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232 2 StickerPoseDetector_iOS 0x8b3368 kmp_suspend_64 + 328 3 StickerPoseDetector_iOS 0x8ab060 kmp_flag_64::wait(kmp_info, int) + 632 4 StickerPoseDetector_iOS 0x8a8e4c __kmp_hyper_barrier_release(barrier_type, kmp_info, int, int, int) + 132 5 StickerPoseDetector_iOS 0x8aac94 kmp_fork_barrier(int, int) + 248 6 StickerPoseDetector_iOS 0x898834 __kmp_launch_thread + 188 7 StickerPoseDetector_iOS 0x8b2034 kmp_launch_worker(void*) + 136 8 libsystem_pthread.dylib 0x16cc _pthread_start + 148 9 libsystem_pthread.dylib 0xba4 thread_start + 8

Thread 0 libsystem_kernel.dylib 0x167c psynch_cvwait + 8 1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232 2 StickerPoseDetector_iOS 0x8b3368 kmp_suspend_64 + 328 3 StickerPoseDetector_iOS 0x8ab060 kmp_flag_64::wait(kmp_info, int) + 632 4 StickerPoseDetector_iOS 0x8a8e4c __kmp_hyper_barrier_release(barrier_type, kmp_info, int, int, int) + 132 5 StickerPoseDetector_iOS 0x8aac94 kmp_fork_barrier(int, int) + 248 6 StickerPoseDetector_iOS 0x898834 __kmp_launch_thread + 188 7 StickerPoseDetector_iOS 0x8b2034 kmp_launch_worker(void*) + 136 8 libsystem_pthread.dylib 0x16cc _pthread_start + 148 9 libsystem_pthread.dylib 0xba4 thread_start + 8

Thread 0 libsystem_kernel.dylib 0x12b0 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0xe44 _pthread_wqthread + 364 2 libsystem_pthread.dylib 0xb98 start_wqthread + 8

Thread 0 libsystem_kernel.dylib 0x12b0 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0xe44 _pthread_wqthread + 364 2 libsystem_pthread.dylib 0xb98 start_wqthread + 8

Thread 0 libsystem_pthread.dylib 0xb90 start_wqthread + 254

Thread 0 libsystem_kernel.dylib 0x12b0 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0xe44 _pthread_wqthread + 364 2 libsystem_pthread.dylib 0xb98 start_wqthread + 8

DartWorker 0 libsystem_kernel.dylib 0x167c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x8098 _pthread_cond_wait + 1276 2 Flutter 0x62a8fc (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 3 Flutter 0x66b9a0 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 4 Flutter 0x62a224 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 5 libsystem_pthread.dylib 0x16cc _pthread_start + 148 6 libsystem_pthread.dylib 0xba4 thread_start + 8

DartWorker 0 libsystem_kernel.dylib 0x167c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x8098 _pthread_cond_wait + 1276 2 Flutter 0x62a8fc (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 3 Flutter 0x66b9a0 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 4 Flutter 0x62a224 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 5 libsystem_pthread.dylib 0x16cc _pthread_start + 148 6 libsystem_pthread.dylib 0xba4 thread_start + 8

DartWorker 0 libsystem_kernel.dylib 0x167c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x8098 _pthread_cond_wait + 1276 2 Flutter 0x62a8fc (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 3 Flutter 0x66b9a0 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 4 Flutter 0x62a224 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 5 libsystem_pthread.dylib 0x16cc _pthread_start + 148 6 libsystem_pthread.dylib 0xba4 thread_start + 8

DartWorker 0 libsystem_kernel.dylib 0x167c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x8098 _pthread_cond_wait + 1276 2 Flutter 0x62a8fc (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 3 Flutter 0x66b9a0 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 4 Flutter 0x62a224 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 5 libsystem_pthread.dylib 0x16cc _pthread_start + 148 6 libsystem_pthread.dylib 0xba4 thread_start + 8

DartWorker 0 libsystem_kernel.dylib 0x167c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x8098 _pthread_cond_wait + 1276 2 Flutter 0x62a8fc (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 3 Flutter 0x66b9a0 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 4 Flutter 0x62a224 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 5 libsystem_pthread.dylib 0x16cc _pthread_start + 148 6 libsystem_pthread.dylib 0xba4 thread_start + 8

DartWorker 0 libsystem_kernel.dylib 0x167c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x8098 _pthread_cond_wait + 1276 2 Flutter 0x62a8fc (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 3 Flutter 0x66b9a0 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 4 Flutter 0x62a224 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 5 libsystem_pthread.dylib 0x16cc _pthread_start + 148 6 libsystem_pthread.dylib 0xba4 thread_start + 8

DartWorker 0 libsystem_kernel.dylib 0x167c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x8098 _pthread_cond_wait + 1276 2 Flutter 0x62a8fc (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 3 Flutter 0x66b9a0 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 4 Flutter 0x62a224 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 5 libsystem_pthread.dylib 0x16cc _pthread_start + 148 6 libsystem_pthread.dylib 0xba4 thread_start + 8

DartWorker 0 libsystem_kernel.dylib 0x167c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x8098 _pthread_cond_wait + 1276 2 Flutter 0x62a8fc (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 3 Flutter 0x66b9a0 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 4 Flutter 0x62a224 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 5 libsystem_pthread.dylib 0x16cc _pthread_start + 148 6 libsystem_pthread.dylib 0xba4 thread_start + 8

DartWorker 0 libsystem_kernel.dylib 0x167c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x8098 _pthread_cond_wait + 1276 2 Flutter 0x62a8fc (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 3 Flutter 0x66b9a0 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 4 Flutter 0x62a224 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 5 libsystem_pthread.dylib 0x16cc _pthread_start + 148 6 libsystem_pthread.dylib 0xba4 thread_start + 8

DartWorker 0 libsystem_kernel.dylib 0x167c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x8098 _pthread_cond_wait + 1276 2 Flutter 0x62a8fc (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 3 Flutter 0x66b9a0 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 4 Flutter 0x62a224 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 5 libsystem_pthread.dylib 0x16cc _pthread_start + 148 6 libsystem_pthread.dylib 0xba4 thread_start + 8

DartWorker 0 libsystem_kernel.dylib 0x167c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x8098 _pthread_cond_wait + 1276 2 Flutter 0x62a8fc (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 3 Flutter 0x66b9a0 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 4 Flutter 0x62a224 (缺少 UUID 3adbf2891ee63561a26df1652313df7e) 5 libsystem_pthread.dylib 0x16cc _pthread_start + 148 6 libsystem_pthread.dylib 0xba4 thread_start + 8`

GeylanKalafMohe commented 1 week ago

I recommend to use this package: extended_image cause we can't wait until they fix it.