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

webView:didReceiveAuthenticationChallenge:completionHandler #1128

Closed
cj3479 opened this issue Mar 22, 2022 · 5 comments
Closed

webView:didReceiveAuthenticationChallenge:completionHandler #1128

cj3479 opened this issue Mar 22, 2022 · 5 comments

Comments

@cj3479
Copy link

cj3479 commented Mar 22, 2022

I receive some crash "Completion handler passed to -[flutter_inappwebview.InAppWebView webView:didReceiveAuthenticationChallenge:completionHandler:] was not called" from crash platform

but it can not reproduce it

@github-actions
Copy link

👋 @cj3479

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!

@vijaybhat-dev
Copy link

I am also facing the same issue
Attaching stack trace for this.

Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x119180 __exceptionPreprocess
1 libobjc.A.dylib 0x59f8 objc_exception_throw
2 CoreFoundation 0x233a0 -[NSCache init]
3 WebKit 0xeb150 (Missing UUID 3a7b114aadeb3ae2b02caf882114d8ef)
4 WebKit 0x14ae08 (Missing UUID 3a7b114aadeb3ae2b02caf882114d8ef)
5 WebKit 0x17474c (Missing UUID 3a7b114aadeb3ae2b02caf882114d8ef)
6 libsystem_blocks.dylib 0xa44 _Block_release
7 flutter_inappwebview 0x56bb0 _hidden#1158 + 1876 (_hidden#3723:1876)
8 libswiftCore.dylib 0x28ac68 _swift_release_dealloc
9 flutter_inappwebview 0x5a8e0 (_hidden#708)
10 libswiftCore.dylib 0x28ac68 _swift_release_dealloc
11 libsystem_blocks.dylib 0xa44 _Block_release
12 libsystem_blocks.dylib 0xa44 _Block_release
13 libsystem_blocks.dylib 0xa44 _Block_release
14 Flutter 0x3cf9c flutter::PlatformMessageResponseDarwin::~PlatformMessageResponseDarwin() + 15 (platform_message_response_darwin.mm:15)
15 Flutter 0x3cf3c flutter::PlatformMessageResponseDarwin::~PlatformMessageResponseDarwin() + 15 (platform_message_response_darwin.mm:15)
16 Flutter 0x4e5ca0 flutter::PlatformConfiguration::~PlatformConfiguration() + 334 (new:334)
17 Flutter 0x4e54cc std::__1::unique_ptr<flutter::PlatformConfiguration, std::__1::default_deleteflutter::PlatformConfiguration >::reset(flutter::PlatformConfiguration*) + 2267 (memory:2267)
18 Flutter 0x4e52bc flutter::UIDartState::~UIDartState() + 1423 (string:1423)
19 Flutter 0x54c3f4 flutter::DartIsolate::~DartIsolate() + 296 (dart_isolate.cc:296)
20 Flutter 0x557e28 flutter::RuntimeController::~RuntimeController() + 3389 (memory:3389)
21 Flutter 0x55785c flutter::RuntimeController::~RuntimeController() + 76 (runtime_controller.cc:76)
22 Flutter 0x3db858 flutter::Engine::~Engine() + 2519 (memory:2519)
23 Flutter 0x3e934c std::__1::unique_ptr<flutter::Engine, std::__1::default_deleteflutter::Engine >::reset(flutter::Engine*) + 2267 (memory:2267)
24 Flutter 0x3e9b78 std::__1::__function::__func<fml::internal::CopyableLambdaflutter::Shell::~Shell()::$_3, std::__1::allocator<fml::internal::CopyableLambdaflutter::Shell::~Shell()::$_3 >, void ()>::operator()() + 466 (shell.cc:466)
25 Flutter 0x306514 fml::MessageLoopImpl::FlushTasks(fml::FlushType) + 124 (ref_ptr.h:124)
26 Flutter 0x309810 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 81 (message_loop_darwin.mm:81)
27 CoreFoundation 0xab554 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION
28 CoreFoundation 0xab284 __CFRunLoopDoTimer
29 CoreFoundation 0xaaab8 __CFRunLoopDoTimers
30 CoreFoundation 0xa5a08 __CFRunLoopRun
31 CoreFoundation 0xa4fb4 CFRunLoopRunSpecific
32 Flutter 0x3096e0 fml::MessageLoopDarwin::Run() + 52 (message_loop_darwin.mm:52)
33 Flutter 0x3090c0 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, fml::Thread::Thread(std::__1::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0> >(void*) + 96 (message_loop_impl.cc:96)
34 libsystem_pthread.dylib 0xb2c0 (Missing UUID f2fc232af6aa31629b5fa70c5e5d1f86)
35 libsystem_pthread.dylib 0xb220 (Missing UUID f2fc232af6aa31629b5fa70c5e5d1f86)
36 libsystem_pthread.dylib 0xecdc (Missing UUID f2fc232af6aa31629b5fa70c5e5d1f86)

Crashed: FlutterAppHome.1.ui
0 FirebaseCrashlytics 0x1f42c FIRCLSProcessRecordAllThreads + 393 (FIRCLSProcess.c:393)
1 FirebaseCrashlytics 0x1f80c FIRCLSProcessRecordAllThreads + 424 (FIRCLSProcess.c:424)
2 FirebaseCrashlytics 0x1678c FIRCLSHandler + 34 (FIRCLSHandler.m:34)
3 FirebaseCrashlytics 0x10c34 __FIRCLSExceptionRecord_block_invoke + 215 (FIRCLSException.mm:215)
4 libdispatch.dylib 0x607d4 _dispatch_client_callout + 16
5 libdispatch.dylib 0xec1c _dispatch_lane_barrier_sync_invoke_and_complete + 56
6 FirebaseCrashlytics 0x103d4 FIRCLSExceptionRecord + 219 (FIRCLSException.mm:219)
7 FirebaseCrashlytics 0x106dc FIRCLSExceptionRecordNSException + 109 (FIRCLSException.mm:109)
8 FirebaseCrashlytics 0xffd4 FIRCLSTerminateHandler + 273 (FIRCLSException.mm:273)
9 libc++abi.dylib 0xd838 std::__terminate(void ()()) + 16
10 libc++abi.dylib 0xd1a8 __cxa_get_exception_ptr + 30
11 libc++abi.dylib 0xd168 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception
) + 122
12 libobjc.A.dylib 0x5b3c _objc_exception_destructor(void*) + 378
13 CoreFoundation 0x233a0 -[NSCache init] + 114
14 WebKit 0xeb150 + 144
15 WebKit 0x14ae08 + 40
16 WebKit 0x17474c + 28
17 libsystem_blocks.dylib 0xa44 _Block_release + 152
18 flutter_inappwebview 0x56bb0 _hidden#1158 + 1876 (_hidden#3723:1876)
19 libswiftCore.dylib 0x28ac68 _swift_release_dealloc + 28
20 flutter_inappwebview 0x5a8e0 + 4370802912 (_hidden#708:4370802912)
21 libswiftCore.dylib 0x28ac68 _swift_release_dealloc + 28
22 libsystem_blocks.dylib 0xa44 _Block_release + 152
23 libsystem_blocks.dylib 0xa44 _Block_release + 152
24 libsystem_blocks.dylib 0xa44 _Block_release + 152
25 Flutter 0x3cf9c flutter::PlatformMessageResponseDarwin::~PlatformMessageResponseDarwin() + 15 (platform_message_response_darwin.mm:15)
26 Flutter 0x3cf3c flutter::PlatformMessageResponseDarwin::~PlatformMessageResponseDarwin() + 15 (platform_message_response_darwin.mm:15)
27 Flutter 0x4e5ca0 flutter::PlatformConfiguration::~PlatformConfiguration() + 334 (new:334)
28 Flutter 0x4e54cc std::__1::unique_ptr<flutter::PlatformConfiguration, std::__1::default_deleteflutter::PlatformConfiguration >::reset(flutter::PlatformConfiguration*) + 2267 (memory:2267)
29 Flutter 0x4e52bc flutter::UIDartState::~UIDartState() + 1423 (string:1423)
30 Flutter 0x54c3f4 flutter::DartIsolate::~DartIsolate() + 296 (dart_isolate.cc:296)
31 Flutter 0x557e28 flutter::RuntimeController::~RuntimeController() + 3389 (memory:3389)
32 Flutter 0x55785c flutter::RuntimeController::~RuntimeController() + 76 (runtime_controller.cc:76)
33 Flutter 0x3db858 flutter::Engine::~Engine() + 2519 (memory:2519)
34 Flutter 0x3e934c std::__1::unique_ptr<flutter::Engine, std::__1::default_deleteflutter::Engine >::reset(flutter::Engine*) + 2267 (memory:2267)
35 Flutter 0x3e9b78 std::__1::__function::__func<fml::internal::CopyableLambdaflutter::Shell::~Shell()::$_3, std::__1::allocator<fml::internal::CopyableLambdaflutter::Shell::~Shell()::$_3 >, void ()>::operator()() + 466 (shell.cc:466)
36 Flutter 0x306514 fml::MessageLoopImpl::FlushTasks(fml::FlushType) + 124 (ref_ptr.h:124)
37 Flutter 0x309810 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 81 (message_loop_darwin.mm:81)
38 CoreFoundation 0xab554 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 28
39 CoreFoundation 0xab284 __CFRunLoopDoTimer + 864
40 CoreFoundation 0xaaab8 __CFRunLoopDoTimers + 248
41 CoreFoundation 0xa5a08 __CFRunLoopRun + 1844
42 CoreFoundation 0xa4fb4 CFRunLoopRunSpecific + 436
43 Flutter 0x3096e0 fml::MessageLoopDarwin::Run() + 52 (message_loop_darwin.mm:52)
44 Flutter 0x3090c0 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, fml::Thread::Thread(std::__1::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0> >(void*) + 96 (message_loop_impl.cc:96)
45 libsystem_pthread.dylib 0xb2c0 + 128
46 libsystem_pthread.dylib 0xb220 _pthread_start + 44
47 libsystem_pthread.dylib 0xecdc thread_start + 4

@frankteller-de
Copy link

frankteller-de commented Jun 13, 2022

Same problem here. Today I got hundreds of crashes. It's only an iOS problem.

v.5.3.2

@pichillilorenzo
Copy link
Owner

It should be fixed now with release 5.5.0+4

Copy link

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 github-actions bot locked as resolved and limited conversation to collaborators Oct 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants