flutter_inappwebview icon indicating copy to clipboard operation
flutter_inappwebview copied to clipboard

NSInternalInconsistencyException Completion handler passed to -[flutter_inappwebview.InAppWebView webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:] was not called CoreFoundation ___exceptionPreprocess

Open MarsLeo opened this issue 1 year ago • 3 comments

CoreFoundation ___exceptionPreprocess + 164

1 libobjc.A.dylib _objc_exception_throw + 60 2 CoreFoundation ___CFDictionaryCreateGeneric 3 WebKit WebKit::CompletionHandlerCallChecker::~CompletionHandlerCallChecker() + 172 4 WebKit WTF::Ref<WebKit::CompletionHandlerCallChecker, WTF::RawPtrTraitsWebKit::CompletionHandlerCallChecker >::~Ref() + 76 5 WebKit WTF::BlockPtr<void (bool)> WTF::BlockPtr<void (bool)>::fromCallable<WebKit::UIDelegate::UIClient::runJavaScriptConfirm(WebKit::WebPageProxy&, WTF::String const&, WebKit::WebFrameProxy*, WebKit::FrameInfoData&&, WTF::Function<void (bool)>&&)::$_2>(WebKit::UIDelegate::UIClient::runJavaScriptConfirm(WebKit::WebPageProxy&, WTF::String const&, WebKit::WebFrameProxy*, WebKit::FrameInfoData&&, WTF::Function<void (bool)>&&)::$_2)::{lambda(void const*)#1}::__invoke(void const*) + 28 6 libsystem_blocks.dylib __call_dispose_helpers_excp + 48 7 libsystem_blocks.dylib __Block_release + 252 8 flutter_inappwebview partial apply forwarder for closure #1 @Swift.MainActor () -> () in flutter_inappwebview.InAppWebView.replaceGestureHandlerIfNeeded() -> () + 16 9 libswiftCore.dylib __swift_release_dealloc + 56 10 flutter_inappwebview outlined copy of (@escaping @callee_guaranteed (@unowned Swift.Bool, @guaranteed Swift.Error?) -> ())? + 16 11 libswiftCore.dylib __swift_release_dealloc + 56

12 libsystem_blocks.dylib __call_dispose_helpers_excp + 48 13 libsystem_blocks.dylib __Block_release + 252 14 UIKitCore -[UIAlertController _clearActionHandlers] + 156 15 UIKitCore -[UIAlertController dealloc] + 304 16 libobjc.A.dylib AutoreleasePoolPage::releaseUntil(objc_object**) + 196 17 libobjc.A.dylib _objc_autoreleasePoolPop + 256 18 CoreFoundation _CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 32 19 CoreFoundation ___CFRunLoopDoTimer + 940 20 CoreFoundation ___CFRunLoopDoTimers + 288 21 CoreFoundation ___CFRunLoopRun + 1896 22 CoreFoundation _CFRunLoopRunSpecific + 612 23 GraphicsServices _GSEventRunModal + 164 24 UIKitCore -[UIApplication _run] + 888 25 UIKitCore _UIApplicationMain + 340 26 channelZaitu main (main.m:10) 27 dyld 0x00000001a629b000 + 88416

  • [x] I have read the Getting Started section
  • [x] I have already searched for the same problem

Environment

Technology Version
Flutter version 3.13.8
Plugin version 5.7.2+3
iOS version 16.1.2

Device information: iPhone 12 Pro

MarsLeo avatar Mar 04 '24 03:03 MarsLeo

👋 @MarsLeo

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

github-actions[bot] avatar Mar 04 '24 03:03 github-actions[bot]

i also get same exception. any update?

dev3-tech avatar Jul 25 '24 04:07 dev3-tech

Hi, i have the same issue. any update? i'm using.

Technology | Version Flutter version | 3.24.3 Plugin version | 6.0.0 iOS version | 16.7.8

GerardBizagi avatar Sep 20 '24 16:09 GerardBizagi

This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it.

github-actions[bot] avatar Sep 21 '25 00:09 github-actions[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

github-actions[bot] avatar Oct 06 '25 00:10 github-actions[bot]