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

Flutter app crashed after local_auth #191

Open
chunghei0116 opened this issue May 28, 2024 · 1 comment
Open

Flutter app crashed after local_auth #191

chunghei0116 opened this issue May 28, 2024 · 1 comment

Comments

@chunghei0116
Copy link

chunghei0116 commented May 28, 2024

Recently working on the face id feature, i would like to trigger the oauth2helper after user passed the biometric login.

Got this error. After investigating, it seems the flutter_web_auth_2 got a bug on iOS device
` warning: flutter_web_auth_2 was compiled with optimization - stepping may behave oddly; variables may not be available.

  • thread Flutter Web and openid? #1, queue = 'com.apple.main-thread', stop reason = Swift runtime failure: Unexpectedly found nil while unwrapping an Optional value
    frame Flutter Web and openid? #1: 0x00000001032d86d8 flutter_web_auth_2closure #1 in SwiftFlutterWebAuth2Plugin.handle(url=nil, err=(error = 0x0000000280bf8750), self=0x00000002805ce9e0, sessionToKeepAlive=nil, result=0x00000001032da6e8 flutter_web_auth_2partial apply forwarder for reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>) -> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> () at ) at SwiftFlutterWebAuth2Plugin.swift:29:22 [opt]

    `

@CesarRN
Copy link

CesarRN commented Sep 10, 2024

Same issue:

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 flutter_web_auth_2 0x1055850f4 closure #1 in SwiftFlutterWebAuth2Plugin.handle(_:result:) + 1312
1 flutter_web_auth_2 0x10558559c thunk for @escaping @callee_guaranteed (@in_guaranteed URL?, @guaranteed Error?) -> () + 192
2 AuthenticationServices 0x21d49f554 -[ASWebAuthenticationSession cancelWithError:] + 40
3 AuthenticationServices 0x21d49f3d8 -[ASWebAuthenticationSession startDryRun:] + 644
4 flutter_web_auth_2 0x105586c0c specialized SwiftFlutterWebAuth2Plugin.handle(
:result:) + 3048
5 flutter_web_auth_2 0x10558514c @objc SwiftFlutterWebAuth2Plugin.handle(
:result:) + 84
6 Flutter 0x105e4191c 0x105860000 + 6166812
7 Flutter 0x1058a3a44 0x105860000 + 277060
8 libdispatch.dylib 0x1ac45d13c _dispatch_call_block_and_release + 32
9 libdispatch.dylib 0x1ac45edd4 _dispatch_client_callout + 20
10 libdispatch.dylib 0x1ac46d5a4 _dispatch_main_queue_drain + 988
11 libdispatch.dylib 0x1ac46d1b8 _dispatch_main_queue_callback_4CF + 44
12 CoreFoundation 0x1a458b710 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16
13 CoreFoundation 0x1a4588914 __CFRunLoopRun + 1996
14 CoreFoundation 0x1a4587cd8 CFRunLoopRunSpecific + 608
15 GraphicsServices 0x1e8fd51a8 GSEventRunModal + 164
16 UIKitCore 0x1a6bc1ae8 -[UIApplication _run] + 888
17 UIKitCore 0x1a6c75d98 UIApplicationMain + 340
18 Home Komfort 0x102e708dc 0x102e68000 + 35036
19 dyld 0x1c7d5f154 start + 2356

Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants