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

Amplify.Auth.updateUserAttribute crashes app #2361

Closed
2 of 13 tasks
adam-fpc opened this issue Nov 15, 2022 · 21 comments
Closed
2 of 13 tasks

Amplify.Auth.updateUserAttribute crashes app #2361

adam-fpc opened this issue Nov 15, 2022 · 21 comments
Assignees
Labels
auth Issues related to the Auth Category bug Something is not working; the issue has reproducible steps and has been reproduced fixed-in-release-candidate Issues that have been addressed in the current release-candidate branch found-in-release-candidate An issue that was found in the current release candidate pending-close-response-required The issue will be closed if details necessary to reproduce the issue are not provided within 7 days.

Comments

@adam-fpc
Copy link

adam-fpc commented Nov 15, 2022

Description

Calling Amplify.Auth.updateUserAttribute or Amplify.Auth.updateUserAttributes causes an immediate app crash

Categories

  • Analytics
  • API (REST)
  • API (GraphQL)
  • Auth
  • Authenticator
  • DataStore
  • Storage

Steps to Reproduce

  1. Authenticate with Cognito through a Cloudfront proxy (as described here)
  2. Call Amplify.Auth.updateUserAttribute(userAttributeKey: CognitoUserAttributeKey.email, value: 'mynewemail@email.com');
  3. Observe crash

Screenshots

No response

Platforms

  • iOS
  • Android
  • Web
  • macOS
  • Windows
  • Linux

Android Device/Emulator API Level

API 32+

Environment

[✓] Flutter (Channel stable, 3.3.7, on macOS 12.5.1 21G83 darwin-arm, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] Connected device (4 available)
[✓] HTTP Host Availability

Dependencies

Dart SDK 2.18.4
Flutter SDK 3.3.7

dependencies:
- amplify_auth_cognito 1.0.0-next.0+7 [amplify_auth_cognito_android amplify_auth_cognito_dart amplify_auth_cognito_ios amplify_core amplify_flutter amplify_secure_storage async flutter flutter_web_plugins meta path plugin_platform_interface]
- amplify_flutter 1.0.0-next.0+5 [amplify_core amplify_datastore_plugin_interface amplify_flutter_android amplify_flutter_ios amplify_secure_storage aws_common collection flutter meta plugin_platform_interface]
- confetti 0.7.0 [flutter vector_math]
- connectivity_plus 2.3.9 [flutter connectivity_plus_platform_interface connectivity_plus_linux connectivity_plus_macos connectivity_plus_web connectivity_plus_windows]
- cupertino_icons 1.0.5
- device_info_plus 8.0.0 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta win32]
- email_validator 2.1.17
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- flutter_launcher_icons 0.10.0 [args checked_yaml cli_util image json_annotation path yaml]
- flutter_multi_formatter 2.8.2 [flutter collection base58check bech32]
- flutter_native_splash 2.2.11 [args flutter flutter_web_plugins html image js meta path universal_io xml yaml]
- flutter_riverpod 1.0.4 [collection flutter meta riverpod state_notifier]
- flutter_secure_storage 6.0.0 [flutter flutter_secure_storage_linux flutter_secure_storage_macos flutter_secure_storage_platform_interface flutter_secure_storage_web flutter_secure_storage_windows meta]
- flutter_svg 1.1.5 [flutter meta path_drawing vector_math xml]
- flutter_switch 0.3.2 [flutter]
- freezed_annotation 2.2.0 [collection json_annotation meta]
- gif 2.2.0 [flutter]
- google_fonts 3.0.1 [flutter http path_provider crypto]
- http 0.13.5 [async http_parser meta path]
- json_annotation 4.7.0 [meta]
- local_auth 2.1.2 [flutter intl local_auth_android local_auth_ios local_auth_platform_interface local_auth_windows]
- local_session_timeout 2.1.1 [flutter]
- logger 1.1.0
- mockito 5.3.2 [analyzer build code_builder collection dart_style matcher meta path source_gen test_api]
- package_info_plus 1.4.3+1 [flutter package_info_plus_platform_interface package_info_plus_linux package_info_plus_macos package_info_plus_windows package_info_plus_web]
- pinput 2.2.16 [flutter smart_auth]
- quiver 3.1.0 [matcher]
- scroll_to_index 3.0.1 [flutter]
- smooth_page_indicator 1.0.0+2 [flutter]
- url_launcher 6.1.6 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
- uuid 3.0.6 [crypto]
- webview_flutter 3.0.4 [flutter webview_flutter_android webview_flutter_platform_interface webview_flutter_wkwebview]

transitive dependencies:
- _fe_analyzer_shared 49.0.0 [meta]
- amplify_auth_cognito_android 1.0.0-next.0+3 [flutter]
- amplify_auth_cognito_dart 0.2.2 [amplify_core amplify_secure_storage_dart async aws_common aws_signature_v4 built_collection built_value collection convert crypto fixnum http intl js json_annotation meta oauth2 path smithy smithy_aws stream_transform uuid worker_bee]
- amplify_auth_cognito_ios 1.0.0-next.0+4 [amplify_core flutter]
- amplify_core 1.0.0-next.0+3 [async aws_common aws_signature_v4 collection intl json_annotation logging meta uuid]
- amplify_datastore_plugin_interface 1.0.0-next.0+2 [amplify_core collection flutter meta]
- amplify_flutter_android 1.0.0-next.0 [flutter]
- amplify_flutter_ios 1.0.0-next.0+2 [amplify_core flutter]
- amplify_secure_storage 0.1.3 [amplify_secure_storage_dart async file flutter meta path path_provider]
- amplify_secure_storage_dart 0.1.3 [async aws_common built_collection built_value ffi file js meta path win32 worker_bee]
- analyzer 5.1.0 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
- archive 3.3.2 [crypto path]
- args 2.3.1
- async 2.9.0 [collection meta]
- aws_common 0.3.0 [async built_collection built_value collection http2 js json_annotation logging meta os_detect path stream_transform uuid]
- aws_signature_v4 0.3.0 [async aws_common collection convert crypto json_annotation meta path]
- base58check 2.0.0 [crypto collection]
- bech32 0.2.1 [convert]
- boolean_selector 2.1.0 [source_span string_scanner]
- build 2.3.1 [analyzer async convert crypto glob logging meta path]
- built_collection 5.1.1
- built_value 8.4.1 [built_collection collection fixnum meta]
- characters 1.2.1
- checked_yaml 2.0.1 [json_annotation source_span yaml]
- cli_util 0.3.5 [meta path]
- clock 1.1.1
- code_builder 4.3.0 [built_collection built_value collection matcher meta]
- collection 1.16.0
- connectivity_plus_linux 1.3.1 [flutter connectivity_plus_platform_interface meta nm]
- connectivity_plus_macos 1.2.6 [connectivity_plus_platform_interface flutter]
- connectivity_plus_platform_interface 1.2.3 [flutter meta plugin_platform_interface]
- connectivity_plus_web 1.2.5 [connectivity_plus_platform_interface flutter_web_plugins flutter js]
- connectivity_plus_windows 1.2.2 [connectivity_plus_platform_interface flutter]
- convert 3.0.2 [typed_data]
- crclib 3.0.0 [meta tuple]
- crypto 3.0.2 [typed_data]
- csslib 0.17.2 [source_span]
- dart_style 2.2.4 [analyzer args path pub_semver source_span]
- dbus 0.7.8 [args ffi meta xml]
- device_info_plus_platform_interface 7.0.0 [flutter meta plugin_platform_interface]
- ffi 2.0.1
- file 6.1.4 [meta path]
- fixnum 1.0.1
- flutter_plugin_android_lifecycle 2.0.7 [flutter]
- flutter_secure_storage_linux 1.1.1 [flutter flutter_secure_storage_platform_interface]
- flutter_secure_storage_macos 1.1.1 [flutter flutter_secure_storage_platform_interface]
- flutter_secure_storage_platform_interface 1.0.0 [flutter plugin_platform_interface]
- flutter_secure_storage_web 1.0.2 [flutter flutter_web_plugins flutter_secure_storage_platform_interface js]
- flutter_secure_storage_windows 1.1.2 [flutter flutter_secure_storage_platform_interface]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math]
- glob 2.1.0 [async collection file path string_scanner]
- html 0.15.1 [csslib source_span]
- http2 2.0.1
- http_parser 4.0.2 [collection source_span string_scanner typed_data]
- image 3.2.2 [archive meta xml]
- intl 0.17.0 [clock path]
- js 0.6.4
- local_auth_android 1.0.13 [flutter flutter_plugin_android_lifecycle intl local_auth_platform_interface]
- local_auth_ios 1.0.10 [flutter intl local_auth_platform_interface]
- local_auth_platform_interface 1.0.5 [flutter intl plugin_platform_interface]
- local_auth_windows 1.0.4 [flutter local_auth_platform_interface]
- logging 1.1.0
- matcher 0.12.12 [stack_trace]
- material_color_utilities 0.1.5
- meta 1.8.0
- nm 0.5.0 [dbus]
- oauth2 2.0.1 [collection crypto http http_parser]
- os_detect 2.0.1
- package_config 2.1.0 [path]
- package_info_plus_linux 1.0.5 [package_info_plus_platform_interface flutter path]
- package_info_plus_macos 1.3.0 [flutter]
- package_info_plus_platform_interface 1.0.2 [flutter meta plugin_platform_interface]
- package_info_plus_web 1.0.6 [flutter flutter_web_plugins http meta package_info_plus_platform_interface]
- package_info_plus_windows 2.1.0 [package_info_plus_platform_interface ffi flutter win32]
- path 1.8.2
- path_drawing 1.0.1 [vector_math meta path_parsing flutter]
- path_parsing 1.0.1 [vector_math meta]
- path_provider 2.0.11 [flutter path_provider_android path_provider_ios path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows]
- path_provider_android 2.0.20 [flutter path_provider_platform_interface]
- path_provider_ios 2.0.11 [flutter path_provider_platform_interface]
- path_provider_linux 2.1.7 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_macos 2.0.6 [flutter path_provider_platform_interface]
- path_provider_platform_interface 2.0.5 [flutter platform plugin_platform_interface]
- path_provider_windows 2.1.3 [ffi flutter path path_provider_platform_interface win32]
- petitparser 5.0.0 [meta]
- platform 3.1.0
- plugin_platform_interface 2.1.3 [meta]
- process 4.2.4 [file path platform]
- pub_semver 2.1.2 [collection meta]
- retry 3.1.0
- riverpod 1.0.3 [collection meta state_notifier]
- shelf 1.4.0 [async collection http_parser path stack_trace stream_channel]
- sky_engine 0.0.99
- smart_auth 1.0.6 [flutter flutter_web_plugins]
- smithy 0.3.0 [async aws_common built_collection built_value collection convert crypto fixnum http_parser intl json_annotation meta path retry shelf typed_data xml]
- smithy_aws 0.3.0 [aws_common aws_signature_v4 built_collection built_value collection convert crclib crypto intl json_annotation meta path smithy xml]
- source_gen 1.2.6 [analyzer async build dart_style glob meta path source_span yaml]
- source_span 1.9.0 [collection path term_glyph]
- stack_trace 1.10.0 [path]
- state_notifier 0.7.2+1 [meta]
- stream_channel 2.1.0 [async]
- stream_transform 2.0.1
- string_scanner 1.1.1 [source_span]
- term_glyph 1.2.1
- test_api 0.4.12 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- tuple 2.0.1
- typed_data 1.3.1 [collection]
- universal_io 2.0.4 [collection crypto meta typed_data]
- url_launcher_android 6.0.19 [flutter url_launcher_platform_interface]
- url_launcher_ios 6.0.17 [flutter url_launcher_platform_interface]
- url_launcher_linux 3.0.1 [flutter url_launcher_platform_interface]
- url_launcher_macos 3.0.1 [flutter url_launcher_platform_interface]
- url_launcher_platform_interface 2.1.1 [flutter plugin_platform_interface]
- url_launcher_web 2.0.13 [flutter flutter_web_plugins url_launcher_platform_interface]
- url_launcher_windows 3.0.1 [flutter url_launcher_platform_interface]
- vector_math 2.1.2
- watcher 1.0.2 [async path]
- webview_flutter_android 2.10.4 [flutter webview_flutter_platform_interface]
- webview_flutter_platform_interface 1.9.5 [flutter meta plugin_platform_interface]
- webview_flutter_wkwebview 2.9.5 [flutter path webview_flutter_platform_interface]
- win32 3.0.1 [ffi]
- worker_bee 0.1.2 [async aws_common built_collection built_value collection js meta path stack_trace stream_channel stream_transform]
- xdg_directories 0.2.0+2 [meta path process]
- xml 6.1.0 [collection meta petitparser]
- yaml 3.1.1 [collection source_span string_scanner]

Device

iPhone XR, iPhone 14 Simulator, Pixel 5 Emulator

OS

iOS 14.1, iOS 16.1, Android 12, Android 13d

Deployment Method

Custom Pipeline

CLI Version

10.0.0

Additional Context

No response

Amplify Config

    "UserAgent": "aws-amplify-cli/2.0",
    "Version": "1.0",
    "auth": {
        "plugins": {
            "awsCognitoAuthPlugin": {
                "UserAgent": "aws-amplify-cli/0.1.0",
                "Version": "0.1.0",
                "IdentityManager": {
                    "Default": {}
                },
                "CognitoUserPool": {
                    "Default": {
                        "PoolId": "...",
                        "AppClientId": "...",
                        "Endpoint": "proxy_endpoint_here",
                        "Region": "..."
                    }
                },
                "Auth": {
                    "Default": {
                        "authenticationFlowType": "USER_SRP_AUTH",
                        "socialProviders": [],
                        "usernameAttributes": [],
                        "signupAttributes": [
                            "EMAIL"
                        ],
                        "passwordProtectionSettings": {
                            "passwordPolicyMinLength": 8,
                            "passwordPolicyCharacters": [
                                "REQUIRES_LOWERCASE",
                                "REQUIRES_UPPERCASE",
                                "REQUIRES_NUMBERS",
                                "REQUIRES_SYMBOLS"
                            ]
                        },
                        "mfaConfiguration": "OPTIONAL",
                        "mfaTypes": [
                            "SMS",
                            "TOTP"
                        ],
                        "verificationMechanisms": [
                            "EMAIL"
                        ]
                    }
                }
            }
        }
    }
}
@fjnoyp fjnoyp added the auth Issues related to the Auth Category label Nov 15, 2022
@fjnoyp
Copy link
Contributor

fjnoyp commented Nov 15, 2022

Hi can you please provide the crash message you are receiving in the logs?

@fjnoyp fjnoyp added the pending-triage This issue is in the backlog of issues to triage label Nov 15, 2022
@adam-fpc
Copy link
Author

version=2.18.4 (stable) (Tue Nov 1 15:15:07 2022 +0000) on "ios_arm64"
pid=11655, thread=22787, isolate_group=main(0x153034000), isolate=main(0x1530c5e00)
isolate_instructions=10b872600, vm_instructions=10b872600
pc 0x000000010b9876c0 fp 0x000000016c146870 dart::Profiler::DumpStackTrace(void*)+0x68
pc 0x000000010b872784 fp 0x000000016c146890 dart::Assert::Fail(char const*, ...) const+0x28
pc 0x000000010ba60194 fp 0x000000016c146910 dart::FlowGraphCompiler::GenerateTTSCall(dart::InstructionSource const&, long, dart::Environment*, dart::Register, dart::AbstractType const&, dart::String const&, dart::LocationSummary*)+0x0
pc 0x000000010ba5fca8 fp 0x000000016c146990 dart::FlowGraphCompiler::GenerateAssertAssignable(dart::CompileType*, dart::InstructionSource const&, long, dart::Environment*, dart::String const&, dart::LocationSummary*)+0xe0
pc 0x000000010ba75300 fp 0x000000016c1469d0 dart::AssertAssignableInstr::EmitNativeCode(dart::FlowGraphCompiler*)+0x70
pc 0x000000010ba5a560 fp 0x000000016c146b90 dart::FlowGraphCompiler::VisitBlocks()+0x5c8
pc 0x000000010ba59f40 fp 0x000000016c146bc0 dart::FlowGraphCompiler::CompileGraph()+0x90
pc 0x000000010bae84b8 fp 0x000000016c146bd0 dart::CompilerPass_GenerateCode::DoBody(dart::CompilerPassState*) const+0x10
pc 0x000000010bae74d8 fp 0x000000016c146cc0 dart::CompilerPass::Run(dart::CompilerPassState*) const+0x1b0
pc 0x000000010ba0b9c4 fp 0x000000016c147450 dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*)+0x60c
pc 0x000000010ba0c0fc fp 0x000000016c147b50 dart::CompileFunctionHelper(dart::CompilationPipeline*, dart::Function const&, bool, long)+0x334
pc 0x000000010ba0bda0 fp 0x000000016c147bd0 dart::Compiler::CompileFunction(dart::Thread*, dart::Function const&)+0x100
pc 0x000000010b9345b4 fp 0x000000016c147c20 dart::Function::EnsureHasCode() const+0x4c
pc 0x000000010ba0abf8 fp 0x000000016c1481a0 dart::DRT_CompileFunction(dart::NativeArguments)+0x18c
pc 0x0000000114f0295c fp 0x000000016c1481e8 Unknown symbol
pc 0x0000000114f029e0 fp 0x000000016c148218 Unknown symbol
pc 0x0000000154450088 fp 0x000000016c148298 Unknown symbol
pc 0x000000015444fd1c fp 0x000000016c148310 Unknown symbol
pc 0x000000015444e7d4 fp 0x000000016c1483b0 Unknown symbol
pc 0x000000015444e47c fp 0x000000016c148400 Unknown symbol
pc 0x00000001370417b0 fp 0x000000016c148450 Unknown symbol
pc 0x00000001370413b0 fp 0x000000016c148488 Unknown symbol
pc 0x0000000125934994 fp 0x000000016c148548 Unknown symbol
pc 0x0000000125938b34 fp 0x000000016c1485d0 Unknown symbol
pc 0x000000012592d534 fp 0x000000016c148620 Unknown symbol
pc 0x0000000125932fd4 fp 0x000000016c148658 Unknown symbol
pc 0x0000000125932138 fp 0x000000016c1486a8 Unknown symbol
pc 0x000000012591c230 fp 0x000000016c1486f0 Unknown symbol
pc 0x0000000134472f7c fp 0x000000016c148770 Unknown symbol
pc 0x0000000134471ef8 fp 0x000000016c1487c0 Unknown symbol
pc 0x0000000134471740 fp 0x000000016c148810 Unknown symbol
pc 0x000000013446e81c fp 0x000000016c148850 Unknown symbol
pc 0x0000000132002c1c fp 0x000000016c148890 Unknown symbol
pc 0x00000001334d15a4 fp 0x000000016c1488c8 Unknown symbol
pc 0x0000000132b50158 fp 0x000000016c148908 Unknown symbol
pc 0x00000001196b403c fp 0x000000016c148958 Unknown symbol
pc 0x00000001334cb14c fp 0x000000016c1489a8 Unknown symbol
pc 0x00000001334cd5a8 fp 0x000000016c1489e0 Unknown symbol
pc 0x0000000114f02ed8 fp 0x000000016c148ab0 Unknown symbol
pc 0x000000010b8b18b0 fp 0x000000016c148b50 dart::DartEntry::InvokeCode(dart::Code const&, unsigned long, dart::Array const&, dart::Array const&, dart::Thread*)+0x138
pc 0x000000010b8b171c fp 0x000000016c148bb0 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long)+0x134
pc 0x000000010b93e0cc fp 0x000000016c148c60 dart::Library::Invoke(dart::String const&, dart::Array const&, dart::Array const&, bool, bool) const+0x234
pc 0x000000010bb96950 fp 0x000000016c148d80 Dart_Invoke+0x5c8
pc 0x000000010b7d8070 fp 0x000000016c148df0 flutter::Window::DispatchPointerDataPacket(flutter::PointerDataPacket const&)+0xc8
pc 0x000000010b8660fc fp 0x000000016c148e30 flutter::RuntimeController::DispatchPointerDataPacket(flutter::PointerDataPacket const&)+0x58
pc 0x000000010b6b5c9c fp 0x000000016c148e70 flutter::DefaultPointerDataDispatcher::DispatchPacket(std::__1::unique_ptr<flutter::PointerDataPacket, std::__1::default_deleteflutter::PointerDataPacket >, unsigned long long)+0x70
pc 0x000000010b6b5d6c fp 0x000000016c148eb0 flutter::SmoothPointerDataDispatcher::DispatchPacket(std::__1::unique_ptr<flutter::PointerDataPacket, std::__1::default_deleteflutter::PointerDataPacket >, unsigned long long)+0x9c
pc 0x000000010b6b3484 fp 0x000000016c148ef0 flutter::Engine::DispatchPointerDataPacket(std::__1::unique_ptr<flutter::PointerDataPacket, std::__1::default_deleteflutter::PointerDataPacket >, unsigned long long)+0x70
pc 0x000000010b6cbc94 fp 0x000000016c148f20 std::__1::__function::__func<fml::internal::CopyableLambda<flutter::Shell::OnPlatformViewDispatchPointerDataPacket(std::__1::unique_ptr<flutter::PointerDataPacket, std::__1::default_deleteflutter::PointerDataPacket >)::$_10>, std::__1::allocator<fml::internal::CopyableLambda<flutter::Shell::OnPlatformViewDispatchPointerDataPacket(std::__1::unique_ptr<flutter::PointerDataPacket, std::__1::default_deleteflutter::PointerDataPacket >)::$_10> >, void ()>::operator()()+0x54
pc 0x000000010b5cd878 fp 0x000000016c148fb0 fml::MessageLoopImpl::FlushTasks(fml::FlushType)+0x98
pc 0x000000010b5d4130 fp 0x000000016c148fd0 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*)+0x20
pc 0x000000018037388c fp 0x000000016c148fe0 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION+0x1c
pc 0x0000000180373548 fp 0x000000016c14a0b0 __CFRunLoopDoTimer+0x364
pc 0x0000000180372c34 fp 0x000000016c14a110 __CFRunLoopDoTimers+0x11c
pc 0x000000018036d324 fp 0x000000016c14ae80 __CFRunLoopRun+0x718
pc 0x000000018036c7f4 fp 0x000000016c14af30 CFRunLoopRunSpecific+0x248
pc 0x000000010b5d4260 fp 0x000000016c14af70 fml::MessageLoopDarwin::Run()+0x58
pc 0x000000010b5cd790 fp 0x000000016c14af90 fml::MessageLoopImpl::DoRun()+0x28
pc 0x000000010b5d2f3c fp 0x000000016c14afc0 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*)+0xd0
pc 0x00000001af2586c8 fp 0x000000016c14afe0 _pthread_start+0x74
-- End of DumpStackTrace
pc 0x0000000000000000 fp 0x000000016c1481e8 sp 0x0000000000000000 [Stub] CallToRuntime
pc 0x0000000114f029e0 fp 0x000000016c148218 sp 0x000000016c1481f8 [Stub] LazyCompile
pc 0x0000000154450088 fp 0x000000016c148298 sp 0x000000016c148228 [Unoptimized] CognitoAuthRepo.updateEmailAndPhoneNumber
pc 0x000000015444fd1c fp 0x000000016c148310 sp 0x000000016c1482a8 [Unoptimized] AuthService.updateUserInformation
pc 0x000000015444e7d4 fp 0x000000016c1483b0 sp 0x000000016c148320 [Unoptimized] _EditAccountInfoState@96387229.saveInformation
pc 0x000000015444e47c fp 0x000000016c148400 sp 0x000000016c1483c0 [Unoptimized] _EditAccountInfoState@96387229.build.
pc 0x00000001370417b0 fp 0x000000016c148450 sp 0x000000016c148410 [Unoptimized] _InkResponseState@1508059085.handleTap
pc 0x00000001370413b0 fp 0x000000016c148488 sp 0x000000016c148460 [Unoptimized] _InkResponseState@1508059085.handleTap
pc 0x0000000125934994 fp 0x000000016c148548 sp 0x000000016c148498 [Unoptimized] GestureRecognizer.invokeCallback
pc 0x0000000125938b34 fp 0x000000016c1485d0 sp 0x000000016c148558 [Unoptimized] TapGestureRecognizer.handleTapUp
pc 0x000000012592d534 fp 0x000000016c148620 sp 0x000000016c1485e0 [Unoptimized] BaseTapGestureRecognizer._checkUp@1429069716
pc 0x0000000125932fd4 fp 0x000000016c148658 sp 0x000000016c148630 [Unoptimized] BaseTapGestureRecognizer.acceptGesture
pc 0x0000000125932138 fp 0x000000016c1486a8 sp 0x000000016c148668 [Unoptimized] GestureArenaManager.sweep
pc 0x000000012591c230 fp 0x000000016c1486f0 sp 0x000000016c1486b8 [Unoptimized] _WidgetsFlutterBinding&BindingBase&GestureBinding@1011399801.handleEvent
pc 0x0000000134472f7c fp 0x000000016c148770 sp 0x000000016c148700 [Unoptimized] _WidgetsFlutterBinding&BindingBase&GestureBinding@1011399801.dispatchEvent
pc 0x0000000134471ef8 fp 0x000000016c1487c0 sp 0x000000016c148780 [Unoptimized] _WidgetsFlutterBinding&BindingBase&GestureBinding&SchedulerBinding&ServicesBinding&PaintingBinding&SemanticsBinding&RendererBinding@1011399801.dispatchEvent
pc 0x0000000134471740 fp 0x000000016c148810 sp 0x000000016c1487d0 [Unoptimized] _WidgetsFlutterBinding&BindingBase&GestureBinding@1011399801._handlePointerEventImmediately@1408304576
pc 0x000000013446e81c fp 0x000000016c148850 sp 0x000000016c148820 [Unoptimized] _WidgetsFlutterBinding&BindingBase&GestureBinding@1011399801.handlePointerEvent
pc 0x0000000132002c1c fp 0x000000016c148890 sp 0x000000016c148860 [Unoptimized] _WidgetsFlutterBinding&BindingBase&GestureBinding@1011399801._flushPointerEventQueue@1408304576
pc 0x00000001334d15a4 fp 0x000000016c1488c8 sp 0x000000016c1488a0 [Unoptimized] _WidgetsFlutterBinding&BindingBase&GestureBinding@1011399801._handlePointerDataPacket@1408304576
pc 0x0000000132b50158 fp 0x000000016c148908 sp 0x000000016c1488d8 [Unoptimized] _WidgetsFlutterBinding&BindingBase&GestureBinding@1011399801._handlePointerDataPacket@1408304576
pc 0x00000001196b403c fp 0x000000016c148958 sp 0x000000016c148918 [Unoptimized] _invoke1@15065589
pc 0x00000001334cb14c fp 0x000000016c1489a8 sp 0x000000016c148968 [Unoptimized] PlatformDispatcher._dispatchPointerDataPacket@15065589
pc 0x00000001334cd5a8 fp 0x000000016c1489e0 sp 0x000000016c1489b8 [Unoptimized] _dispatchPointerDataPacket@15065589
pc 0x0000000114f02ed8 fp 0x000000016c148ab0 sp 0x000000016c1489f0 [Stub] InvokeDartCode
=== Crash occured when compiling package:amplify_core/src/category/amplify_auth_category.dart_AuthCategory_updateUserAttribute in unoptimized JIT mode in GenerateCode pass
=== When compiling block B9[target]:84
=== When compiling instruction t0 <- AssertAssignable:56(t0, t1, 'options', instantiator_type_args(t2), function_type_args(t3))
*** BEGIN CFG
GenerateCode
==== package:amplify_core/src/category/amplify_auth_category.dart_AuthCategory_updateUserAttribute (RegularFunction)
B0[graph]:0
B1[function entry]:2
t0 <- Constant(#0)
StoreLocal(:entry_points_temp @-7, t0)
goto:72 B6
B7[function entry]:74
t0 <- Constant(#2)
StoreLocal(:entry_points_temp @-7, t0)
goto:76 B6
B6[join]:70 pred(B1, B7)
t0 <- LoadLocal(:arg_desc @-4)
t0 <- LoadField(t0 . ArgumentsDescriptor.positional_count {final})
t1 <- LoadLocal(:arg_desc @-4)
t1 <- LoadField(t1 . ArgumentsDescriptor.count {final})
t2 <- LoadLocal(:t1 @-10)
t3 <- Constant(#1)
t2 <- BinarySmiOp:4(- [tr], t2, t3)
t3 <- LoadLocal(:t2 @-11)
t3 <- LoadIndexedUnsafe(fp[t3 + 16]) T{?}
StoreLocal(this @0, t3)
t3 <- Constant(#0)
StoreLocal(:expr_temp @-6, t3)
t3 <- Constant(#2)
t4 <- LoadLocal(:expr_temp @-6)
t3 <- BinarySmiOp:6(
[tr], t3, t4)
t4 <- LoadLocal(:arg_desc @-4) T{*?}
t5 <- Constant(#4)
t6 <-<…>
Lost connection to device.

@fjnoyp
Copy link
Contributor

fjnoyp commented Nov 15, 2022

Thanks for sharing that. Doesn't provide very useful debug information unfortunately.

Based on your first comment it sounds like you have a rather specific custom setup here. Do you feel comfortable sharing the git repository of your project with me? github: fjnoyp

With that access I could run your project locally and run the debugger and see what is happening. This would help me determine where the error is happening, on the iOS native side (seems likely) and if so what the failure line is.

@fjnoyp fjnoyp added the to-be-reproduced Issues that have not been reproduced yet, but have reproduction steps provided label Nov 15, 2022
@fjnoyp fjnoyp self-assigned this Nov 15, 2022
@adam-fpc
Copy link
Author

Unfortunately I can't share this repo.

Is this crash message more helpful?

2022-11-15 13:12:43.498543-0700 Runner[94127:16697866] version=2.18.4 (stable) (Tue Nov 1 15:15:07 2022 +0000) on "ios_arm64"
2022-11-15 13:12:43.498750-0700 Runner[94127:16697866] pid=94127, thread=41731, isolate_group=main(0x11a013800), isolate=main(0x11a029800)
2022-11-15 13:12:43.498865-0700 Runner[94127:16697866] isolate_instructions=1080e2600, vm_instructions=1080e2600
2022-11-15 13:12:43.499625-0700 Runner[94127:16697866]   pc 0x00000001081f76c0 fp 0x000000016fb4e870 dart::Profiler::DumpStackTrace(void*)+0x68
2022-11-15 13:12:43.500166-0700 Runner[94127:16697866]   pc 0x00000001080e2784 fp 0x000000016fb4e890 dart::Assert::Fail(char const*, ...) const+0x28
2022-11-15 13:12:43.500592-0700 Runner[94127:16697866]   pc 0x00000001082d0194 fp 0x000000016fb4e910 dart::FlowGraphCompiler::GenerateTTSCall(dart::InstructionSource const&, long, dart::Environment*, dart::Register, dart::AbstractType const&, dart::String const&, dart::LocationSummary*)+0x0
2022-11-15 13:12:43.500984-0700 Runner[94127:16697866]   pc 0x00000001082cfca8 fp 0x000000016fb4e990 dart::FlowGraphCompiler::GenerateAssertAssignable(dart::CompileType*, dart::InstructionSource const&, long, dart::Environment*, dart::String const&, dart::LocationSummary*)+0xe0
2022-11-15 13:12:43.501357-0700 Runner[94127:16697866]   pc 0x00000001082e5300 fp 0x000000016fb4e9d0 dart::AssertAssignableInstr::EmitNativeCode(dart::FlowGraphCompiler*)+0x70
2022-11-15 13:12:43.501707-0700 Runner[94127:16697866]   pc 0x00000001082ca560 fp 0x000000016fb4eb90 dart::FlowGraphCompiler::VisitBlocks()+0x5c8
2022-11-15 13:12:43.502043-0700 Runner[94127:16697866]   pc 0x00000001082c9f40 fp 0x000000016fb4ebc0 dart::FlowGraphCompiler::CompileGraph()+0x90
2022-11-15 13:12:43.502386-0700 Runner[94127:16697866]   pc 0x00000001083584b8 fp 0x000000016fb4ebd0 dart::CompilerPass_GenerateCode::DoBody(dart::CompilerPassState*) const+0x10
2022-11-15 13:12:43.502760-0700 Runner[94127:16697866]   pc 0x00000001083574d8 fp 0x000000016fb4ecc0 dart::CompilerPass::Run(dart::CompilerPassState*) const+0x1b0
2022-11-15 13:12:43.503111-0700 Runner[94127:16697866]   pc 0x000000010827b9c4 fp 0x000000016fb4f450 dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*)+0x60c
2022-11-15 13:12:43.503461-0700 Runner[94127:16697866]   pc 0x000000010827c0fc fp 0x000000016fb4fb50 dart::CompileFunctionHelper(dart::CompilationPipeline*, dart::Function const&, bool, long)+0x334
2022-11-15 13:12:43.503808-0700 Runner[94127:16697866]   pc 0x000000010827bda0 fp 0x000000016fb4fbd0 dart::Compiler::CompileFunction(dart::Thread*, dart::Function const&)+0x100
2022-11-15 13:12:43.504190-0700 Runner[94127:16697866]   pc 0x00000001081a45b4 fp 0x000000016fb4fc20 dart::Function::EnsureHasCode() const+0x4c
2022-11-15 13:12:43.504552-0700 Runner[94127:16697866]   pc 0x000000010827abf8 fp 0x000000016fb501a0 dart::DRT_CompileFunction(dart::NativeArguments)+0x18c
2022-11-15 13:12:43.504663-0700 Runner[94127:16697866]   pc 0x000000011400295c fp 0x000000016fb501e8 Unknown symbol
2022-11-15 13:12:43.504806-0700 Runner[94127:16697866]   pc 0x00000001140029e0 fp 0x000000016fb50218 Unknown symbol
2022-11-15 13:12:43.504942-0700 Runner[94127:16697866]   pc 0x000000016ab097a8 fp 0x000000016fb50298 Unknown symbol
2022-11-15 13:12:43.505061-0700 Runner[94127:16697866]   pc 0x000000016ab0935c fp 0x000000016fb50310 Unknown symbol
2022-11-15 13:12:43.505178-0700 Runner[94127:16697866]   pc 0x000000016ab07e14 fp 0x000000016fb503b0 Unknown symbol
2022-11-15 13:12:43.505313-0700 Runner[94127:16697866]   pc 0x000000016ab07abc fp 0x000000016fb50400 Unknown symbol
2022-11-15 13:12:43.505448-0700 Runner[94127:16697866]   pc 0x0000000168304140 fp 0x000000016fb50450 Unknown symbol
2022-11-15 13:12:43.505572-0700 Runner[94127:16697866]   pc 0x0000000168303d40 fp 0x000000016fb50488 Unknown symbol
2022-11-15 13:12:43.505679-0700 Runner[94127:16697866]   pc 0x000000016806e6d4 fp 0x000000016fb50548 Unknown symbol
2022-11-15 13:12:43.505798-0700 Runner[94127:16697866]   pc 0x0000000168302994 fp 0x000000016fb505d0 Unknown symbol
2022-11-15 13:12:43.505991-0700 Runner[94127:16697866]   pc 0x000000016806a9a4 fp 0x000000016fb50620 Unknown symbol
2022-11-15 13:12:43.506124-0700 Runner[94127:16697866]   pc 0x000000016806cad4 fp 0x000000016fb50658 Unknown symbol
2022-11-15 13:12:43.506230-0700 Runner[94127:16697866]   pc 0x000000016806bc38 fp 0x000000016fb506a8 Unknown symbol
2022-11-15 13:12:43.506344-0700 Runner[94127:16697866]   pc 0x000000016805d0a0 fp 0x000000016fb506f0 Unknown symbol
2022-11-15 13:12:43.506465-0700 Runner[94127:16697866]   pc 0x0000000168041d3c fp 0x000000016fb50770 Unknown symbol
2022-11-15 13:12:43.506592-0700 Runner[94127:16697866]   pc 0x0000000168040cb8 fp 0x000000016fb507c0 Unknown symbol
2022-11-15 13:12:43.506720-0700 Runner[94127:16697866]   pc 0x0000000168040500 fp 0x000000016fb50810 Unknown symbol
2022-11-15 13:12:43.506846-0700 Runner[94127:16697866]   pc 0x000000016803d51c fp 0x000000016fb50850 Unknown symbol
2022-11-15 13:12:43.506969-0700 Runner[94127:16697866]   pc 0x000000014d10728c fp 0x000000016fb50890 Unknown symbol
2022-11-15 13:12:43.507084-0700 Runner[94127:16697866]   pc 0x000000016802c9e4 fp 0x000000016fb508c8 Unknown symbol
2022-11-15 13:12:43.507197-0700 Runner[94127:16697866]   pc 0x000000014ee22708 fp 0x000000016fb50908 Unknown symbol
2022-11-15 13:12:43.507303-0700 Runner[94127:16697866]   pc 0x000000011e3b8fec fp 0x000000016fb50958 Unknown symbol
2022-11-15 13:12:43.507450-0700 Runner[94127:16697866]   pc 0x000000016802570c fp 0x000000016fb509a8 Unknown symbol
2022-11-15 13:12:43.507595-0700 Runner[94127:16697866]   pc 0x000000016801ac48 fp 0x000000016fb509e0 Unknown symbol
2022-11-15 13:12:43.507717-0700 Runner[94127:16697866]   pc 0x0000000114002ed8 fp 0x000000016fb50ab0 Unknown symbol
2022-11-15 13:12:43.508086-0700 Runner[94127:16697866]   pc 0x00000001081218b0 fp 0x000000016fb50b50 dart::DartEntry::InvokeCode(dart::Code const&, unsigned long, dart::Array const&, dart::Array const&, dart::Thread*)+0x138
2022-11-15 13:12:43.508452-0700 Runner[94127:16697866]   pc 0x000000010812171c fp 0x000000016fb50bb0 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long)+0x134
2022-11-15 13:12:43.508841-0700 Runner[94127:16697866]   pc 0x00000001081ae0cc fp 0x000000016fb50c60 dart::Library::Invoke(dart::String const&, dart::Array const&, dart::Array const&, bool, bool) const+0x234
2022-11-15 13:12:43.509199-0700 Runner[94127:16697866]   pc 0x0000000108406950 fp 0x000000016fb50d80 Dart_Invoke+0x5c8
2022-11-15 13:12:43.509575-0700 Runner[94127:16697866]   pc 0x0000000108048070 fp 0x000000016fb50df0 flutter::Window::DispatchPointerDataPacket(flutter::PointerDataPacket const&)+0xc8
2022-11-15 13:12:43.509930-0700 Runner[94127:16697866]   pc 0x00000001080d60fc fp 0x000000016fb50e30 flutter::RuntimeController::DispatchPointerDataPacket(flutter::PointerDataPacket const&)+0x58
2022-11-15 13:12:43.510274-0700 Runner[94127:16697866]   pc 0x0000000107f25c9c fp 0x000000016fb50e70 flutter::DefaultPointerDataDispatcher::DispatchPacket(std::__1::unique_ptr<flutter::PointerDataPacket, std::__1::default_delete<flutter::PointerDataPacket> >, unsigned long long)+0x70
2022-11-15 13:12:43.510614-0700 Runner[94127:16697866]   pc 0x0000000107f25d6c fp 0x000000016fb50eb0 flutter::SmoothPointerDataDispatcher::DispatchPacket(std::__1::unique_ptr<flutter::PointerDataPacket, std::__1::default_delete<flutter::PointerDataPacket> >, unsigned long long)+0x9c
2022-11-15 13:12:43.510960-0700 Runner[94127:16697866]   pc 0x0000000107f23484 fp 0x000000016fb50ef0 flutter::Engine::DispatchPointerDataPacket(std::__1::unique_ptr<flutter::PointerDataPacket, std::__1::default_delete<flutter::PointerDataPacket> >, unsigned long long)+0x70
2022-11-15 13:12:43.511316-0700 Runner[94127:16697866]   pc 0x0000000107f3bc94 fp 0x000000016fb50f20 std::__1::__function::__func<fml::internal::CopyableLambda<flutter::Shell::OnPlatformViewDispatchPointerDataPacket(std::__1::unique_ptr<flutter::PointerDataPacket, std::__1::default_delete<flutter::PointerDataPacket> >)::$_10>, std::__1::allocator<fml::internal::CopyableLambda<flutter::Shell::OnPlatformViewDispatchPointerDataPacket(std::__1::unique_ptr<flutter::PointerDataPacket, std::__1::default_delete<flutter::PointerDataPacket> >)::$_10> >, void ()>::operator()()+0x54
2022-11-15 13:12:43.511657-0700 Runner[94127:16697866]   pc 0x0000000107e3d878 fp 0x000000016fb50fb0 fml::MessageLoopImpl::FlushTasks(fml::FlushType)+0x98
2022-11-15 13:12:43.512007-0700 Runner[94127:16697866]   pc 0x0000000107e44130 fp 0x000000016fb50fd0 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*)+0x20
2022-11-15 13:12:43.512163-0700 Runner[94127:16697866]   pc 0x000000018037388c fp 0x000000016fb50fe0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__+0x1c
2022-11-15 13:12:43.512275-0700 Runner[94127:16697866]   pc 0x0000000180373548 fp 0x000000016fb520b0 __CFRunLoopDoTimer+0x364
2022-11-15 13:12:43.512388-0700 Runner[94127:16697866]   pc 0x0000000180372c34 fp 0x000000016fb52110 __CFRunLoopDoTimers+0x11c
2022-11-15 13:12:43.512499-0700 Runner[94127:16697866]   pc 0x000000018036d324 fp 0x000000016fb52e80 __CFRunLoopRun+0x718
2022-11-15 13:12:43.512646-0700 Runner[94127:16697866]   pc 0x000000018036c7f4 fp 0x000000016fb52f30 CFRunLoopRunSpecific+0x248
2022-11-15 13:12:43.512999-0700 Runner[94127:16697866]   pc 0x0000000107e44260 fp 0x000000016fb52f70 fml::MessageLoopDarwin::Run()+0x58
2022-11-15 13:12:43.513348-0700 Runner[94127:16697866]   pc 0x0000000107e3d790 fp 0x000000016fb52f90 fml::MessageLoopImpl::DoRun()+0x28
2022-11-15 13:12:43.513693-0700 Runner[94127:16697866]   pc 0x0000000107e42f3c fp 0x000000016fb52fc0 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::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0> >(void*)+0xd0
2022-11-15 13:12:43.513824-0700 Runner[94127:16697866]   pc 0x00000001af2586c8 fp 0x000000016fb52fe0 _pthread_start+0x74
2022-11-15 13:12:43.513904-0700 Runner[94127:16697866] -- End of DumpStackTrace
2022-11-15 13:12:43.514014-0700 Runner[94127:16697866]   pc 0x0000000000000000 fp 0x000000016fb501e8 sp 0x0000000000000000 [Stub] CallToRuntime
2022-11-15 13:12:43.514151-0700 Runner[94127:16697866]   pc 0x00000001140029e0 fp 0x000000016fb50218 sp 0x000000016fb501f8 [Stub] LazyCompile
2022-11-15 13:12:43.514256-0700 Runner[94127:16697866]   pc 0x000000016ab097a8 fp 0x000000016fb50298 sp 0x000000016fb50228 [Unoptimized] CognitoAuthRepo.updateEmailAndPhoneNumber
2022-11-15 13:12:43.514352-0700 Runner[94127:16697866]   pc 0x000000016ab0935c fp 0x000000016fb50310 sp 0x000000016fb502a8 [Unoptimized] AuthService.updateUserInformation
2022-11-15 13:12:43.514443-0700 Runner[94127:16697866]   pc 0x000000016ab07e14 fp 0x000000016fb503b0 sp 0x000000016fb50320 [Unoptimized] _EditAccountInfoState@453387229.saveInformation
2022-11-15 13:12:43.514542-0700 Runner[94127:16697866]   pc 0x000000016ab07abc fp 0x000000016fb50400 sp 0x000000016fb503c0 [Unoptimized] _EditAccountInfoState@453387229.build.<anonymous closure>
2022-11-15 13:12:43.514642-0700 Runner[94127:16697866]   pc 0x0000000168304140 fp 0x000000016fb50450 sp 0x000000016fb50410 [Unoptimized] _InkResponseState@1508059085.handleTap
2022-11-15 13:12:43.514748-0700 Runner[94127:16697866]   pc 0x0000000168303d40 fp 0x000000016fb50488 sp 0x000000016fb50460 [Unoptimized] _InkResponseState@1508059085.handleTap
2022-11-15 13:12:43.514832-0700 Runner[94127:16697866]   pc 0x000000016806e6d4 fp 0x000000016fb50548 sp 0x000000016fb50498 [Unoptimized] GestureRecognizer.invokeCallback
2022-11-15 13:12:43.514940-0700 Runner[94127:16697866]   pc 0x0000000168302994 fp 0x000000016fb505d0 sp 0x000000016fb50558 [Unoptimized] TapGestureRecognizer.handleTapUp
2022-11-15 13:12:43.515035-0700 Runner[94127:16697866]   pc 0x000000016806a9a4 fp 0x000000016fb50620 sp 0x000000016fb505e0 [Unoptimized] BaseTapGestureRecognizer._checkUp@1429069716
2022-11-15 13:12:43.515126-0700 Runner[94127:16697866]   pc 0x000000016806cad4 fp 0x000000016fb50658 sp 0x000000016fb50630 [Unoptimized] BaseTapGestureRecognizer.acceptGesture
2022-11-15 13:12:43.515226-0700 Runner[94127:16697866]   pc 0x000000016806bc38 fp 0x000000016fb506a8 sp 0x000000016fb50668 [Unoptimized] GestureArenaManager.sweep
2022-11-15 13:12:43.515331-0700 Runner[94127:16697866]   pc 0x000000016805d0a0 fp 0x000000016fb506f0 sp 0x000000016fb506b8 [Unoptimized] _WidgetsFlutterBinding&BindingBase&GestureBinding@1011399801.handleEvent
2022-11-15 13:12:43.515427-0700 Runner[94127:16697866]   pc 0x0000000168041d3c fp 0x000000016fb50770 sp 0x000000016fb50700 [Unoptimized] _WidgetsFlutterBinding&BindingBase&GestureBinding@1011399801.dispatchEvent
2022-11-15 13:12:43.515520-0700 Runner[94127:16697866]   pc 0x0000000168040cb8 fp 0x000000016fb507c0 sp 0x000000016fb50780 [Unoptimized] _WidgetsFlutterBinding&BindingBase&GestureBinding&SchedulerBinding&ServicesBinding&PaintingBinding&SemanticsBinding&RendererBinding@1011399801.dispatchEvent
2022-11-15 13:12:43.515607-0700 Runner[94127:16697866]   pc 0x0000000168040500 fp 0x000000016fb50810 sp 0x000000016fb507d0 [Unoptimized] _WidgetsFlutterBinding&BindingBase&GestureBinding@1011399801._handlePointerEventImmediately@1408304576
2022-11-15 13:12:43.515703-0700 Runner[94127:16697866]   pc 0x000000016803d51c fp 0x000000016fb50850 sp 0x000000016fb50820 [Unoptimized] _WidgetsFlutterBinding&BindingBase&GestureBinding@1011399801.handlePointerEvent
2022-11-15 13:12:43.515807-0700 Runner[94127:16697866]   pc 0x000000014d10728c fp 0x000000016fb50890 sp 0x000000016fb50860 [Unoptimized] _WidgetsFlutterBinding&BindingBase&GestureBinding@1011399801._flushPointerEventQueue@1408304576
2022-11-15 13:12:43.515911-0700 Runner[94127:16697866]   pc 0x000000016802c9e4 fp 0x000000016fb508c8 sp 0x000000016fb508a0 [Unoptimized] _WidgetsFlutterBinding&BindingBase&GestureBinding@1011399801._handlePointerDataPacket@1408304576
2022-11-15 13:12:43.516004-0700 Runner[94127:16697866]   pc 0x000000014ee22708 fp 0x000000016fb50908 sp 0x000000016fb508d8 [Unoptimized] _WidgetsFlutterBinding&BindingBase&GestureBinding@1011399801._handlePointerDataPacket@1408304576
2022-11-15 13:12:43.516123-0700 Runner[94127:16697866]   pc 0x000000011e3b8fec fp 0x000000016fb50958 sp 0x000000016fb50918 [Unoptimized] _invoke1@15065589
2022-11-15 13:12:43.516220-0700 Runner[94127:16697866]   pc 0x000000016802570c fp 0x000000016fb509a8 sp 0x000000016fb50968 [Unoptimized] PlatformDispatcher._dispatchPointerDataPacket@15065589
2022-11-15 13:12:43.516314-0700 Runner[94127:16697866]   pc 0x000000016801ac48 fp 0x000000016fb509e0 sp 0x000000016fb509b8 [Unoptimized] _dispatchPointerDataPacket@15065589
2022-11-15 13:12:43.516412-0700 Runner[94127:16697866]   pc 0x0000000114002ed8 fp 0x000000016fb50ab0 sp 0x000000016fb509f0 [Stub] InvokeDartCode
2022-11-15 13:12:43.516507-0700 Runner[94127:16697866] === Crash occured when compiling package:amplify_core/src/category/amplify_auth_category.dart_AuthCategory_updateUserAttribute in unoptimized JIT mode in GenerateCode pass
2022-11-15 13:12:43.516600-0700 Runner[94127:16697866] === When compiling block B9[target]:84
2022-11-15 13:12:43.516693-0700 Runner[94127:16697866] === When compiling instruction t0 <- AssertAssignable:56(t0, t1, 'options', instantiator_type_args(t2), function_type_args(t3))
2022-11-15 13:12:43.516982-0700 Runner[94127:16697866] *** BEGIN CFG
GenerateCode
==== package:amplify_core/src/category/amplify_auth_category.dart_AuthCategory_updateUserAttribute (RegularFunction)
B0[graph]:0
B1[function entry]:2
    t0 <- Constant(#0)
    StoreLocal(:entry_points_temp @-7, t0)
    goto:72 B6
B7[function entry]:74
    t0 <- Constant(#2)
    StoreLocal(:entry_points_temp @-7, t0)
    goto:76 B6
B6[join]:70 pred(B1, B7)
    t0 <- LoadLocal(:arg_desc @-4)
    t0 <- LoadField(t0 . ArgumentsDescriptor.positional_count {final})
    t1 <- LoadLocal(:arg_desc @-4)
    t1 <- LoadField(t1 . ArgumentsDescriptor.count {final})
    t2 <- LoadLocal(:t1 @-10)
    t3 <- Constant(#1)
    t2 <- BinarySmiOp:4(- [tr], t2, t3)
    t3 <- LoadLocal(:t2 @-11)
    t3 <- LoadIndexedUnsafe(fp[t3 + 16]) T{*?}
    StoreLocal(this @0, t3)
    t3 <- Constant(#0)
    StoreLocal(:expr_temp @-6, t3)
    t3 <- Constant(#2)
    t4 <- LoadLocal(:expr_temp @-6)
    t3 <- BinarySmiOp:6(* [tr], t3, t4)
    t4 <- LoadLocal(:arg_desc @-4) T{*?}
    t5 <- Constant(#4)
    t6 <- LoadLocal(:t3 @-12)
    t5 <- BinarySmiOp:14(+ [tr], t5, t6)
    t4 <- LoadIndexed(t4, t5) T{*?}
    t5 <- Constant(#options)
    Branch if StrictCompare:16(===, t4, t5) goto (2, 3)
B2[target]:20
    t4 <- LoadLocal(:t1 @-10)
    t5 <- LoadLocal(:arg_desc @-4)
    t6 <- Constant(#5)
    t7 <- LoadLocal(:t3 @-12)
    t6 <- BinarySmiOp:8(+ [tr], t6, t7)
    t5 <- LoadIndexed(t5, t6)
    t4 <- BinarySmiOp:10(- [tr], t4, t5)
    t4 <- LoadIndexedUnsafe(fp[t4 + 8]) T{*?}
    StoreLocal(options @-3, t4)
    t4 <- LoadLocal(:expr_temp @-6)
    t5 <- Constant(#1)
    t4 <- BinarySmiOp:12(+ [tr], t4, t5)
    StoreLocal(:expr_temp @-6, t4)
    goto:26 B4
B3[target]:22
    t4 <- Constant(#null)
    StoreLocal(options @-3, t4)
    goto:28 B4
B4[join]:24 pred(B2, B3)
    DropTemps(1)
    t3 <- Constant(#2)
    t4 <- LoadLocal(:expr_temp @-6)
    t3 <- BinarySmiOp:30(* [tr], t3, t4)
    t4 <- LoadLocal(:t1 @-10)
    t5 <- LoadLocal(:arg_desc @-4)
    t6 <- Constant(#5)
    t7 <- LoadLocal(:t3 @-12)
    t6 <- BinarySmiOp:32(+ [tr], t6, t7)
    t5 <- LoadIndexed(t5, t6)
    t4 <- BinarySmiOp:34(- [tr], t4, t5)
    t4 <- LoadIndexedUnsafe(fp[t4 + 8]) T{*?}
    StoreLocal(userAttributeKey @-1, t4)
    t4 <- LoadLocal(:expr_temp @-6)
    t5 <- Constant(#1)
    t4 <- BinarySmiOp:36(+ [tr], t4, t5)
    StoreLocal(:expr_temp @-6, t4)
    DropTemps(1)
    t3 <- Constant(#2)
    t4 <- LoadLocal(:expr_temp @-6)
    t3 <- BinarySmiOp:38(* [tr], t3, t4)
    t4 <- LoadLocal(:t1 @-10)
    t5 <- LoadLocal(:arg_desc @-4)
    t6 <- Constant(#5)
    t7 <- LoadLocal(:t3 @-12)
    t6 <- BinarySmiOp:40(+ [tr], t6, t7)
    t5 <- LoadIndexed(t5, t6)
    t4 <- BinarySmiOp:42(- [tr], t4, t5)
    t4 <- LoadIndexedUnsafe(fp[t4 + 8]) T{String}
    StoreLocal(value @-2, t4)
    t4 <- LoadLocal(:expr_temp @-6)
    t5 <- Constant(#1)
    t4 <- BinarySmiOp:44(+ [tr], t4, t5)
    StoreLocal(:expr_temp @-6, t4)
    DropTemps(1)
    DropTemps(1)
    DropTemps(1)
    DropTemps(1)
    goto:48 B5
B5[join]:46 pred(B4)
    CheckStackOverflow:50(stack=0, loop=0)
    DebugStepCheck:52()
    t0 <- LoadLocal(:entry_points_temp @-7)
    DropTemps(1)
    t0 <- LoadLocal(:entry_points_temp @-7) T{*?}
    t1 <- Constant(#2)
    Branch if StrictCompare:78(===, t0, t1) goto (8, 9)
B8[target]:82
    goto:90 B10
B9[target]:84
    t0 <- LoadLocal(userAttributeKey @-1) T{*?}
    t1 <- Constant(#TypeParameter: C1X1; bound: UserAttributeKey)
    t2 <- LoadLocal(this @0)
    t2 <- LoadField(t2 . :type_arguments {final})
    t3 <- Constant(#null)
    t0 <- AssertAssignable:54(t0, t1, 'userAttributeKey', instantiator_type_args(t2), function_type_args(t3))
    StoreLocal(userAttributeKey @-1, t0)
    t0 <- LoadLocal(options @-3) T{*?}
    t1 <- Constant(#TypeParameter: C1X28?; bound: UpdateUserAttributeOptions)
    t2 <- LoadLocal(this @0)
    t2 <- LoadField(t2 . :type_arguments {final})
    t3 <- Constant(#null)
    t0 <- AssertAssignable:56(t0, t1, 'options', instantiator_type_args(t2), function_type_args(t3))
    StoreLocal(options @-3, t0)
    goto:88 B10
B10[join]:86 pred(B8, B9)
    t0 <- LoadLocal(this @0)
    t0 <- LoadField(t0 . :type_arguments {final})
    t1 <- Constant(#null)
    t2 <- Constant(#TypeArguments: (H18328e50) [TypeParameter: C1X1; bound: UserAttributeKey] [TypeParameter: C1X28; bound: UpdateUserAttributeOptions])
    t0 <- InstantiateTypeArguments:58(t2, instantiator_type_args(t0), function_type_args(t1), instantiator_class(Library:'package:amplify_core/src/category/amplify_auth_category.dart' Class: AuthCategory))
    t1 <- LoadLocal(userAttributeKey @-1)
    t2 <- LoadLocal(value @-2)
    t3 <- LoadLocal(options @-3)
    t0 <- StaticCall:60( UpdateUserAttributeRequest.<0> t0, t1, t2, t3)
    StoreLocal(request @-8, t0)
    t0 <- LoadLocal(this @0)
    t0 <- InstanceCall:62( get:plugin<0>, t0)
    t1 <- LoadLocal(request @-8)
    t0 <- InstanceCall:64( updateUserAttribute<0>, t0, t1)
    DebugStepCheck:66()
    Return:68(t0)
*** END CFG
CoreSimulator 857.13 - Device: iPhone 14 (B13797AC-21AC-478B-BC9B-92473B70A654) - Runtime: iOS 16.1 (20B72) - DeviceType: iPhone 14
(lldb) 

@fjnoyp
Copy link
Contributor

fjnoyp commented Nov 16, 2022

Unfortunately it's not that helpful because it's mostly dart and flutter system code logs that aren't related to the code of Amplify Flutter.

The only relevant logs mention the name of the method that's failing but we already know that :)

(Please ignore my previous comment about running on Swift - I failed to realize you were using the Dart first preview version of Auth)

@fjnoyp
Copy link
Contributor

fjnoyp commented Nov 16, 2022

Can you confirm that you are in fact on auth next :

  • amplify_auth_cognito 1.0.0-next.0+7 [amplify_auth_cognito_android amplify_auth_cognito_dart amplify_auth_cognito_ios amplify_core amplify_flutter amplify_secure_storage async flutter flutter_web_plugins meta path plugin_platform_interface]

@fjnoyp
Copy link
Contributor

fjnoyp commented Nov 16, 2022

Also could you provide the code that calls into updateUserInformation? We see CognitoAuthRepo.updateEmailAndPhoneNumber so getting a stacktrace of the code that is called before that method would be helpful.

@fjnoyp fjnoyp added the pending-community-response Pending response from the issue opener or other community members label Nov 16, 2022
@fjnoyp
Copy link
Contributor

fjnoyp commented Nov 17, 2022

Hi @adam-fpc we have tried to replicate this on our side by calling updateUserInformation for email and phone number but encounter no crashes. Would be good for us to see how to call updateUserInformation in your code.

@adam-fpc
Copy link
Author

Hey @fjnoyp - thanks for trying. I can confirm I was on amplify_auth_cognito 1.0.0-next.0+7. I saw there was a new release and have since updated again. (Now amplify_flutter 1.0.0-next.1+1 and amplify_auth_cognito 1.0.0-next.1)

I pulled the call to updateUserAttribute directly into the callback instead of going through updateUserInformation to rule out any issues in the middle. Here is that code - at time of execution the text controller holding the email has been validated. This call is now placed directly in the onPressed of an ElevatedButton so updateUserInformation isn't called and this causes the crash on iPhone still

onPressed: () {                                                
 Amplify.Auth.updateUserAttribute(                 
    userAttributeKey: CognitoUserAttributeKey.email,
    value: editEmailTextField.text.trim(),          
  ).then((value) {                                  
    Logger().i(value);                              
  }).catchError((e) {                               
    Logger().e(e);                                  
  });                                               
}                                         

@Jordan-Nelson
Copy link
Member

Hi @adam-fpc - I wasn't able to reproduce this in a standard auth test app. I noticed you called out using Cognito through a Cloudfront proxy in your repro steps. Have you tested this without the proxy? If you are able to test without it, it would be helpful to determine if that is the issue here.

@Jordan-Nelson
Copy link
Member

Can you confirm if you are seeing only seeing this on iOS? Have you attempted to reproduce it on other platforms?

@adam-fpc
Copy link
Author

Hi @Jordan-Nelson - thanks for trying. And yes, I have not encountered this issue without the proxy in place.

I realize I selected both Android and iOS in the issue, I have only observed on iOS (physical device and simulator). Android is working as expected for me. (No other platforms tested / supported in the Flutter project)

@Jordan-Nelson
Copy link
Member

Thanks @adam-fpc. We will attempt to repro this with a Cloudfront proxy.

@Jordan-Nelson Jordan-Nelson removed the pending-community-response Pending response from the issue opener or other community members label Nov 18, 2022
@likeconan
Copy link

likeconan commented Dec 9, 2022

Hi @Jordan-Nelson I can reproduce this in ios 13.4.1 in real device but it's working in ios 16.0.1 simulator

amplify_flutter: ^1.0.0-next.2
amplify_auth_cognito: ^1.0.0-next.2
amplify_authenticator: ^1.0.0-next.1+2

here is the error:

../../third_party/dart/runtime/vm/compiler/assembler/assembler_arm64.h: 218: error: unreachable code
version=2.17.6 (stable) (Tue Jul 12 12:54:37 2022 +0200) on "ios_arm64"
pid=63023, thread=42499, isolate_group=main(0x11d010600), isolate=main(0x11d00d800)
isolate_instructions=107a83a00, vm_instructions=107a83a00
  pc 0x00000001083fb810 fp 0x000000016b216290 Dart_DumpNativeStackTrace+0x18
  pc 0x0000000107fe4f34 fp 0x000000016b2162b0 dart::Assert::Fail(char const*, ...) const+0x30
  pc 0x0000000108263b50 fp 0x000000016b216390 dart::AssertAssignableInstr::EmitNativeCode(dart::FlowGraphCompiler*)+0x8c8
  pc 0x0000000108308e40 fp 0x000000016b2165b0 dart::CompilerPass_GenerateCode::DoBody(dart::CompilerPassState*) const+0x17c8
  pc 0x000000010831a6ec fp 0x000000016b2166b0 dart::CompilerPass::Run(dart::CompilerPassState*) const+0x1cc
  pc 0x00000001081f9b44 fp 0x000000016b217110 dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*)+0x195c
  pc 0x00000001081fb208 fp 0x000000016b217360 dart::CompileFunctionHelper(dart::CompilationPipeline*, dart::Function const&, bool, long)+0x658
  pc 0x00000001081faae0 fp 0x000000016b217400 dart::Compiler::CompileFunction(dart::Thread*, dart::Function const&)+0x2b0
  pc 0x00000001080fb15c fp 0x000000016b217460 dart::Function::EnsureHasCode() const+0x58
  pc 0x00000001081f4fa0 fp 0x000000016b217500 dart::DRT_CompileFunction(dart::NativeArguments)+0x18c
  pc 0x000000010d702a4c fp 0x000000016b217540 Unknown symbol
  pc 0x000000010d702ad0 fp 0x000000016b217570 Unknown symbol
  pc 0x000000012ae83f64 fp 0x000000016b2175e0 Unknown symbol
  pc 0x0000000123aec1ac fp 0x000000016b217628 Unknown symbol
  pc 0x0000000123aebdfc fp 0x000000016b2176a0 Unknown symbol
  pc 0x0000000123aebc0c fp 0x000000016b217708 Unknown symbol
  pc 0x0000000123aeb7b4 fp 0x000000016b2177a0 Unknown symbol
  pc 0x0000000123aeb28c fp 0x000000016b2177f0 Unknown symbol
  pc 0x0000000123aeae9c fp 0x000000016b217850 Unknown symbol
  pc 0x0000000123ae9df0 fp 0x000000016b2178d0 Unknown symbol
  pc 0x0000000123ae84d0 fp 0x000000016b217918 Unknown symbol
  pc 0x0000000123aec314 fp 0x000000016b217950 Unknown symbol
  pc 0x000000012aedbecc fp 0x000000016b2179b8 Unknown symbol
  pc 0x0000000123aec1ac fp 0x000000016b217a00 Unknown symbol
  pc 0x0000000123aebdfc fp 0x000000016b217a78 Unknown symbol
  pc 0x0000000123aebc0c fp 0x000000016b217ae0 Unknown symbol
  pc 0x0000000123aeb7b4 fp 0x000000016b217b78 Unknown symbol
  pc 0x0000000123aeb28c fp 0x000000016b217bc8 Unknown symbol
  pc 0x0000000123aeae9c fp 0x000000016b217c28 Unknown symbol
  pc 0x0000000123ae9df0 fp 0x000000016b217ca8 Unknown symbol
  pc 0x0000000123ae84d0 fp 0x000000016b217cf0 Unknown symbol
  pc 0x0000000123ae73d4 fp 0x000000016b217d30 Unknown symbol
  pc 0x000000012aee6f28 fp 0x000000016b217da0 Unknown symbol
  pc 0x0000000123aec1ac fp 0x000000016b217de8 Unknown symbol
  pc 0x0000000123aebdfc fp 0x000000016b217e60 Unknown symbol
  pc 0x0000000123aebc0c fp 0x000000016b217ec8 Unknown symbol
  pc 0x0000000123aeb7b4 fp 0x000000016b217f60 Unknown symbol
  pc 0x0000000123aeb28c fp 0x000000016b217fb0 Unknown symbol
  pc 0x0000000123aeae9c fp 0x000000016b218010 Unknown symbol
  pc 0x0000000123ae9df0 fp 0x000000016b218090 Unknown symbol
  pc 0x0000000123ae84d0 fp 0x000000016b2180d8 Unknown symbol
  pc 0x0000000123aec314 fp 0x000000016b218110 Unknown symbol
  pc 0x000000012aef50d4 fp 0x000000016b218178 Unknown symbol
  pc 0x0000000123aec1ac fp 0x000000016b2181c0 Unknown symbol
  pc 0x0000000123aebdfc fp 0x000000016b218238 Unknown symbol
  pc 0x0000000123aebc0c fp 0x000000016b2182a0 Unknown symbol
  pc 0x0000000123aeb7b4 fp 0x000000016b218338 Unknown symbol
  pc 0x0000000123aeb28c fp 0x000000016b218388 Unknown symbol
  pc 0x0000000123aeae9c fp 0x000000016b2183e8 Unknown symbol
  pc 0x0000000123ae9df0 fp 0x000000016b218468 Unknown symbol
  pc 0x0000000123ae84d0 fp 0x000000016b2184b0 Unknown symbol
  pc 0x0000000123ae81a4 fp 0x000000016b2184f0 Unknown symbol
  pc 0x0000000118443cfc fp 0x000000016b218560 Unknown symbol
  pc 0x0000000118443974 fp 0x000000016b2185c0 Unknown symbol
  pc 0x000000011844308c fp 0x000000016b218650 Unknown symbol
  pc 0x0000000123ae04e4 fp 0x000000016b2186c0 Unknown symbol
  pc 0x0000000123ae0394 fp 0x000000016b218700 Unknown symbol
  pc 0x0000000123ae0074 fp 0x000000016b218748 Unknown symbol
  pc 0x0000000123adfc04 fp 0x000000016b218788 Unknown symbol
  pc 0x0000000123adfafc fp 0x000000016b2187b0 Unknown symbol
  pc 0x000000010d702fc8 fp 0x000000016b218880 Unknown symbol
  pc 0x000000010803b7c0 fp 0x000000016b218d20 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long)+0x2a4
  pc 0x00000001083f4bdc fp 0x000000016b218e40 Dart_InvokeClosure+0x618
  pc 0x0000000107e81240 fp 0x000000016b218ed0 tonic::DartMicrotaskQueue::RunMicrotasks()+0x8c
  pc 0x0000000107d82348 fp 0x000000016b219020 fml::MessageLoopImpl::FlushTasks(fml::FlushType)+0x80c
  pc 0x0000000107d85c8c fp 0x000000016b219040 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*)+0x20
  pc 0x000000018d5d01c0 fp 0x000000016b219050 <redacted>+0x1c
  pc 0x000000018d5cfedc fp 0x000000016b21a100 <redacted>+0x370
  pc 0x000000018d5cf5b8 fp 0x000000016b21a190 <redacted>+0x114
  pc 0x000000018d5ca5c8 fp 0x000000016b21aeb0 <redacted>+0x668
  pc 0x000000018d5c9c34 fp 0x000000016b21af40 CFRunLoopRunSpecific+0x1a8
  pc 0x0000000107d85b5c fp 0x000000016b21af80 fml::MessageLoopDarwin::Run()+0x58
  pc 0x0000000107d84c18 fp 0x000000016b21afc0 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::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0> >(void*)+0xd0
  pc 0x000000018d367d98 fp 0x000000016b21afe0 _pthread_start+0x9c
-- End of DumpStackTrace
  pc 0x0000000000000000 fp 0x000000016b217540 sp 0x0000000000000000 [Stub] CallToRuntime
  pc 0x000000010d702ad0 fp 0x000000016b217570 sp 0x000000016b217550 [Stub] LazyCompile
  pc 0x000000012ae83f64 fp 0x000000016b2175e0 sp 0x000000016b217580 [Unoptimized] _MeUpdatePageState@1096235208._pickImageClick@1096235208
  pc 0x0000000123aec1ac fp 0x000000016b217628 sp 0x000000016b2175f0 [Unoptimized] _asyncThenWrapperHelper@4048458.thenWrapper
  pc 0x0000000123aebdfc fp 0x000000016b2176a0 sp 0x000000016b217638 [Unoptimized] _rootRunUnary@4048458
  pc 0x0000000123aebc0c fp 0x000000016b217708 sp 0x000000016b2176b0 [Unoptimized] _rootRunUnary@4048458
  pc 0x0000000123aeb7b4 fp 0x000000016b2177a0 sp 0x000000016b217718 [Unoptimized] _CustomZone@4048458.runUnary
  pc 0x0000000123aeb28c fp 0x000000016b2177f0 sp 0x000000016b2177b0 [Unoptimized] _FutureListener@4048458.handleValue
  pc 0x0000000123aeae9c fp 0x000000016b217850 sp 0x000000016b217800 [Unoptimized] _Future@4048458._propagateToListeners@4048458.handleValueCallback
  pc 0x0000000123ae9df0 fp 0x000000016b2178d0 sp 0x000000016b217860 [Unoptimized] _Future@4048458._propagateToListeners@4048458
  pc 0x0000000123ae84d0 fp 0x000000016b217918 sp 0x000000016b2178e0 [Unoptimized] _Future@4048458._completeWithValue@4048458
  pc 0x0000000123aec314 fp 0x000000016b217950 sp 0x000000016b217928 [Unoptimized] _completeWithNoFutureOnAsyncReturn@4048458
  pc 0x000000012aedbecc fp 0x000000016b2179b8 sp 0x000000016b217960 [Unoptimized] uploadImage
  pc 0x0000000123aec1ac fp 0x000000016b217a00 sp 0x000000016b2179c8 [Unoptimized] _asyncThenWrapperHelper@4048458.thenWrapper
  pc 0x0000000123aebdfc fp 0x000000016b217a78 sp 0x000000016b217a10 [Unoptimized] _rootRunUnary@4048458
  pc 0x0000000123aebc0c fp 0x000000016b217ae0 sp 0x000000016b217a88 [Unoptimized] _rootRunUnary@4048458
  pc 0x0000000123aeb7b4 fp 0x000000016b217b78 sp 0x000000016b217af0 [Unoptimized] _CustomZone@4048458.runUnary
  pc 0x0000000123aeb28c fp 0x000000016b217bc8 sp 0x000000016b217b88 [Unoptimized] _FutureListener@4048458.handleValue
  pc 0x0000000123aeae9c fp 0x000000016b217c28 sp 0x000000016b217bd8 [Unoptimized] _Future@4048458._propagateToListeners@4048458.handleValueCallback
  pc 0x0000000123ae9df0 fp 0x000000016b217ca8 sp 0x000000016b217c38 [Unoptimized] _Future@4048458._propagateToListeners@4048458
  pc 0x0000000123ae84d0 fp 0x000000016b217cf0 sp 0x000000016b217cb8 [Unoptimized] _Future@4048458._completeWithValue@4048458
  pc 0x0000000123ae73d4 fp 0x000000016b217d30 sp 0x000000016b217d00 [Unoptimized] _completeOnAsyncReturn@4048458
  pc 0x000000012aee6f28 fp 0x000000016b217da0 sp 0x000000016b217d40 [Unoptimized] _withClient@162447473
  pc 0x0000000123aec1ac fp 0x000000016b217de8 sp 0x000000016b217db0 [Unoptimized] _asyncThenWrapperHelper@4048458.thenWrapper
  pc 0x0000000123aebdfc fp 0x000000016b217e60 sp 0x000000016b217df8 [Unoptimized] _rootRunUnary@4048458
  pc 0x0000000123aebc0c fp 0x000000016b217ec8 sp 0x000000016b217e70 [Unoptimized] _rootRunUnary@4048458
  pc 0x0000000123aeb7b4 fp 0x000000016b217f60 sp 0x000000016b217ed8 [Unoptimized] _CustomZone@4048458.runUnary
  pc 0x0000000123aeb28c fp 0x000000016b217fb0 sp 0x000000016b217f70 [Unoptimized] _FutureListener@4048458.handleValue
  pc 0x0000000123aeae9c fp 0x000000016b218010 sp 0x000000016b217fc0 [Unoptimized] _Future@4048458._propagateToListeners@4048458.handleValueCallback
  pc 0x0000000123ae9df0 fp 0x000000016b218090 sp 0x000000016b218020 [Unoptimized] _Future@4048458._propagateToListeners@4048458
  pc 0x0000000123ae84d0 fp 0x000000016b2180d8 sp 0x000000016b2180a0 [Unoptimized] _Future@4048458._completeWithValue@4048458
  pc 0x0000000123aec314 fp 0x000000016b218110 sp 0x000000016b2180e8 [Unoptimized] _completeWithNoFutureOnAsyncReturn@4048458
  pc 0x000000012aef50d4 fp 0x000000016b218178 sp 0x000000016b218120 [Unoptimized] Response.fromStream
  pc 0x0000000123aec1ac fp 0x000000016b2181c0 sp 0x000000016b218188 [Unoptimized] _asyncThenWrapperHelper@4048458.thenWrapper
  pc 0x0000000123aebdfc fp 0x000000016b218238 sp 0x000000016b2181d0 [Unoptimized] _rootRunUnary@4048458
  pc 0x0000000123aebc0c fp 0x000000016b2182a0 sp 0x000000016b218248 [Unoptimized] _rootRunUnary@4048458
  pc 0x0000000123aeb7b4 fp 0x000000016b218338 sp 0x000000016b2182b0 [Unoptimized] _CustomZone@4048458.runUnary
  pc 0x0000000123aeb28c fp 0x000000016b218388 sp 0x000000016b218348 [Unoptimized] _FutureListener@4048458.handleValue
  pc 0x0000000123aeae9c fp 0x000000016b2183e8 sp 0x000000016b218398 [Unoptimized] _Future@4048458._propagateToListeners@4048458.handleValueCallback
  pc 0x0000000123ae9df0 fp 0x000000016b218468 sp 0x000000016b2183f8 [Unoptimized] _Future@4048458._propagateToListeners@4048458
  pc 0x0000000123ae84d0 fp 0x000000016b2184b0 sp 0x000000016b218478 [Unoptimized] _Future@4048458._completeWithValue@4048458
  pc 0x0000000123ae81a4 fp 0x000000016b2184f0 sp 0x000000016b2184c0 [Unoptimized] _Future@4048458._asyncCompleteWithValue@4048458.<anonymous closure>
  pc 0x0000000118443cfc fp 0x000000016b218560 sp 0x000000016b218500 [Unoptimized] _rootRun@4048458
  pc 0x0000000118443974 fp 0x000000016b2185c0 sp 0x000000016b218570 [Unoptimized] _rootRun@4048458
  pc 0x000000011844308c fp 0x000000016b218650 sp 0x000000016b2185d0 [Unoptimized] _CustomZone@4048458.run
  pc 0x0000000123ae04e4 fp 0x000000016b2186c0 sp 0x000000016b218660 [Unoptimized] _CustomZone@4048458.runGuarded
  pc 0x0000000123ae0394 fp 0x000000016b218700 sp 0x000000016b2186d0 [Unoptimized] _CustomZone@4048458.bindCallbackGuarded.<anonymous closure>
  pc 0x0000000123ae0074 fp 0x000000016b218748 sp 0x000000016b218710 [Unoptimized] _microtaskLoop@4048458
  pc 0x0000000123adfc04 fp 0x000000016b218788 sp 0x000000016b218758 [Unoptimized] _startMicrotaskLoop@4048458
  pc 0x0000000123adfafc fp 0x000000016b2187b0 sp 0x000000016b218798 [Unoptimized] _startMicrotaskLoop@4048458
  pc 0x000000010d702fc8 fp 0x000000016b218880 sp 0x000000016b2187c0 [Stub] InvokeDartCode
=== Crash occured when compiling package:amplify_core/src/category/amplify_auth_category.dart_AuthCategory_updateUserAttribute in unoptimized JIT mode in GenerateCode pass
=== When compiling block B9[target]:84
=== When compiling instruction t0 <- AssertAssignable:56(t0, t1, 'options', instantiator_type_args(t2), function_type_args(t3))
*** BEGIN CFG
GenerateCode
==== package:amplify_core/src/category/amplify_auth_category.dart_AuthCategory_updateUserAttribute (RegularFunction)
B0[graph]:0
B1[function entry]:2
    t0 <- Constant(#0)
    StoreLocal(:entry_points_temp @-7, t0)
    goto:72 B6
B7[function entry]:74
    t0 <- Constant(#2)
    StoreLocal(:entry_points_temp @-7, t0)
    goto:76 B6
B6[join]:70 pred(B1, B7)
    t0 <- LoadLocal(:arg_desc @-4)
    t0 <- LoadField(t0 . ArgumentsDescriptor.positional_count {final})
    t1 <- LoadLocal(:arg_desc @-4)
    t1 <- LoadField(t1 . ArgumentsDescriptor.count {final})
    t2 <- LoadLocal(:t1 @-10)
    t3 <- Constant(#1)
    t2 <- BinarySmiOp:4(- [tr], t2, t3)
    t3 <- LoadLocal(:t2 @-11)
    t3 <- LoadIndexedUnsafe(fp[t3 + 16]) T{*?}
    StoreLocal(this @0, t3)
    t3 <- Constant(#0)
    StoreLocal(:expr_temp @-6, t3)
    t3 <- Constant(#2)
    t4 <- LoadLocal(:expr_temp @-6)
    t3 <- BinarySmiOp:6(* [tr], t3, t4)

    t4 <- LoadLocal(:arg_desc @-4) T{*?}
    t5 <- Constant(#4)
    t6 <- LoadLocal(:t3 @-12)
    t5 <- BinarySmiOp:14(+ [tr], t5, t6)
    t4 <- LoadIndexed(t4, t5) T{*?}
    t5 <- Constant(#options)
    Branch if StrictCompare:16(===, t4, t5) goto (2, 3)
B2[target]:20
    t4 <- LoadLocal(:t1 @-10)
    t5 <- LoadLocal(:arg_desc @-4)
    t6 <- Constant(#5)
    t7 <- LoadLocal(:t3 @-12)
    t6 <- BinarySmiOp:8(+ [tr], t6, t7)
    t5 <- LoadIndexed(t5, t6)
    t4 <- BinarySmiOp:10(- [tr], t4, t5)
    t4 <- LoadIndexedUnsafe(fp[t4 + 8]) T{*?}
    StoreLocal(options @-3, t4)
    t4 <- LoadLocal(:expr_temp @-6)
    t5 <- Constant(#1)
    t4 <- BinarySmiOp:12(+ [tr], t4, t5)
    StoreLocal(:expr_temp @-6, t4)
    goto:26 B4
B3[target]:22
    t4 <- Constant(#null)
    StoreLocal(options @-3, t4)
    goto:28 B4
B4[join]:24 pred(B2, B3)
    DropTemps(1)
    t3 <- Constant(#2)
    t4 <- LoadLocal(:expr_temp @-6)
    t3 <- BinarySmiOp:30(* [tr], t3, t4)
    t4 <- LoadLocal(:t1 @-10)
    t5 <- LoadLocal(:arg_desc @-4)
    t6 <- Constant(#5)
    t7 <- LoadLocal(:t3 @-12)
    t6 <- BinarySmiOp:32(+ [tr], t6, t7)
    t5 <- LoadIndexed(t5, t6)
    t4 <- BinarySmiOp:34(- [tr], t4, t5)
    t4 <- LoadIndexedUnsafe(fp[t4 + 8]) T{*?}
    StoreLocal(userAttributeKey @-1, t4)
    t4 <- LoadLocal(:expr_temp @-6)
    t5 <- Constant(#1)
    t4 <- BinarySmiOp:36(+ [tr], t4, t5)
    StoreLocal(:expr_temp @-6, t4)
    DropTemps(1)
    t3 <- Constant(#2)
    t4 <- LoadLocal(:expr_temp @-6)
    t3 <- BinarySmiOp:38(* [tr], t3, t4)
    t4 <- LoadLocal(:t1 @-10)
    t5 <- LoadLocal(:arg_desc @-4)
    t6 <- Constant(#5)
    t7 <- LoadLocal(:t3 @-12)
    t6 <- BinarySmiOp:40(+ [tr], t6, t7)
    t5 <- LoadIndexed(t5, t6)
    t4 <- BinarySmiOp:42(- [tr], t4, t5)
    t4 <- LoadIndexedUnsafe(fp[t4 + 8]) T{String}
    StoreLocal(value @-2, t4)
    t4 <- LoadLocal(:expr_temp @-6)
    t5 <- Constant(#1)
    t4 <- BinarySmiOp:44(+ [tr], t4, t5)
    StoreLocal(:expr_temp @-6, t4)
    DropTemps(1)
    DropTemps(1)
    DropTemps(1)
    DropTemps(1)
    goto:48 B5
B5[join]:46 pred(B4)
    CheckStackOverflow:50(stack=0, loop=0)
    DebugStepCheck:52()
    t0 <- LoadLocal(:entry_points_temp @-7)
    DropTemps(1)
    t0 <- LoadLocal(:entry_points_temp @-7) T{*?}
    t1 <- Constant(#2)
    Branch if StrictCompare:78(===, t0, t1) goto (8, 9)
B8[target]:82
    goto:90 B10
B9[target]:84
    t0 <- LoadLocal(userAttributeKey @-1) T{*?}
    t1 <- Constant(#TypeParameter: C1X1; bound: UserAttributeKey)
    t2 <- LoadLocal(this @0)
    t2 <- LoadField(t2 . :type_arguments {final})
    t3 <- Constant(#null)
    t0 <- AssertAssignable:54(t0, t1, 'userAttributeKey', instantiator_type_args(t2), function_type_args(t3))
    StoreLocal(userAttributeKey @-1, t0)
    t0 <- LoadLocal(options @-3) T{*?}
    t1 <- Constant(#TypeParameter: C1X28?; bound: UpdateUserAttributeOptions)
    t2 <- LoadLocal(this @0)
    t2 <- LoadField(t2 . :type_arguments {final})
    t3 <- Constant(#null)
    t0 <- AssertAssignable:56(t0, t1, 'options', instantiator_type_args(t2), function_type_args(t3))
    StoreLocal(options @-3, t0)
    goto:88 B10
B10[join]:86 pred(B8, B9)
    t0 <- LoadLocal(this @0)
    t0 <- LoadField(t0 . :type_arguments {final})
    t1 <- Constant(#null)
    t2 <- Constant(#TypeArguments: (H2f10de2a) [TypeParameter: C1X1; bound: UserAttributeKey] [TypeParameter: C1X28; bound: UpdateUserAttributeOptions])
    t0 <- InstantiateTypeArguments:58(t2, instantiator_type_args(t0), function_type_args(t1), instantiator_class(Library:'package:amplify_core/src/category/amplify_auth_category.dart' Class: AuthCategory))
    t1 <- LoadLocal(userAttributeKey @-1)
    t2 <- LoadLocal(value @-2)
    t3 <- LoadLocal(options @-3)
    t0 <- StaticCall:60( UpdateUserAttributeRequest.<0> t0, t1, t2, t3)
    StoreLocal(request @-8, t0)
    t0 <- LoadLocal(this @0)
    t0 <- InstanceCall:62( get:plugin<0>, t0)
    t1 <- LoadLocal(request @-8)
    t0 <- InstanceCall:64( updateUserAttribute<0>, t0, t1)
    DebugStepCheck:66()
    Return:68(t0)
*** END CFG
* thread #8, name = 'io.flutter.1.ui', stop reason = signal SIGABRT
    frame #0: 0x000000018d446d88 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`:
->  0x18d446d88 <+8>:  b.lo   0x18d446da4               ; <+36>
    0x18d446d8c <+12>: stp    x29, x30, [sp, #-0x10]!
    0x18d446d90 <+16>: mov    x29, sp
    0x18d446d94 <+20>: bl     0x18d425ad0               ; cerror_nocancel

@Jordan-Nelson
Copy link
Member

@likeconan - Are you also using a Cloudfront proxy?

@dnys1
Copy link
Contributor

dnys1 commented Dec 9, 2022

Hi all - sorry for the lack of updates on this thread. I did attempt to reproduce the issue but was unsuccessful. I've opened a ticket with the Dart team here. Hopefully, they can help shed some light on what may be happening.

@likeconan
Copy link

@likeconan - Are you also using a Cloudfront proxy?

Hi Jordan, no I did not.

@fjnoyp fjnoyp removed their assignment Feb 2, 2023
@theartofnonso
Copy link

theartofnonso commented Feb 10, 2023

Hello, the issue still exists in the following versions:

amplify_flutter: 1.0.0-next.4
amplify_auth_cognito: 1.0.0-next.4

@Jordan-Nelson Jordan-Nelson added the found-in-release-candidate An issue that was found in the current release candidate label Feb 15, 2023
@dnys1
Copy link
Contributor

dnys1 commented Feb 16, 2023

@theartofnonso - I'm sorry to hear this is not resolved for you. We did attempt to resolve it in our library, but ultimately it is an issue in the Dart SDK. We will leave this issue open until the Dart fix makes its way to stable.

@dnys1 dnys1 self-assigned this Feb 16, 2023
@Jordan-Nelson Jordan-Nelson added bug Something is not working; the issue has reproducible steps and has been reproduced not-reproducible Issues that cannot be reproduced using the steps provided and removed to-be-reproduced Issues that have not been reproduced yet, but have reproduction steps provided pending-triage This issue is in the backlog of issues to triage labels Mar 28, 2023
@dnys1
Copy link
Contributor

dnys1 commented Apr 10, 2023

This issue should be resolved in version 1.0.0-next.7. Can anyone still experiencing this issue please let us know? Otherwise, we will be closing it soon.

Thanks for your patience as we investigated this.

@dnys1 dnys1 added pending-close-response-required The issue will be closed if details necessary to reproduce the issue are not provided within 7 days. and removed not-reproducible Issues that cannot be reproduced using the steps provided labels Apr 10, 2023
@dnys1 dnys1 added the fixed-in-release-candidate Issues that have been addressed in the current release-candidate branch label Apr 17, 2023
@dnys1
Copy link
Contributor

dnys1 commented Apr 17, 2023

This issue has been addressed in v1.0.0 of Amplify Flutter, which is now stable. This release also includes web and desktop support for Auth, API, Analytics, and Storage. You can see the list of new features and bug fixes in the release notes, and see more details on how to migrate in the upgrade guide.

@dnys1 dnys1 closed this as completed Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Issues related to the Auth Category bug Something is not working; the issue has reproducible steps and has been reproduced fixed-in-release-candidate Issues that have been addressed in the current release-candidate branch found-in-release-candidate An issue that was found in the current release candidate pending-close-response-required The issue will be closed if details necessary to reproduce the issue are not provided within 7 days.
Projects
None yet
Development

No branches or pull requests

6 participants