Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Open
2 tasks done
MarsLeo opened this issue Mar 4, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@MarsLeo
Copy link

MarsLeo commented Mar 4, 2024

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

  • I have read the Getting Started section
  • 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 MarsLeo added the bug Something isn't working label Mar 4, 2024
Copy link

github-actions bot commented Mar 4, 2024

👋 @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!

@dev3-tech
Copy link

dev3-tech commented Jul 25, 2024

i also get same exception.
any update?

@GerardBizagi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants