Repository: aws-amplify/amplify-flutter

Issue #2361: Amplify.Auth.updateUserAttribute crashes app
Created: 2022-11-15T01:27:49Z
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

Authenticate with Cognito through a Cloudfront proxy (as described here)
Call Amplify.Auth.updateUserAttribute(userAttributeKey: CognitoUserAttributeKey.email, value: 'mynewemail@email.com');
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"
                        ]
                    }
                }
            }
        }
    }
}

Duplicate issue #2740: Crash when calling updateUserAttribute
Created: 2023-03-09T07:53:05Z
Description
Calling updateUserAttribute will crash the native app. Test on my iOS simulator.
I'm using following packages:
  amplify_flutter: ^1.0.0-next.0
  amplify_auth_cognito: ^1.0.0-next.0

Because there was issue during verficiation so I was forced to bump 1.0.0-next.0.
Categories

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

Steps to Reproduce

Call something like:

    await _auth.updateUserAttribute(userAttributeKey: CognitoUserAttributeKey.preferredUsername, value: 'JohnDoe');


Observe the crash with the following logs:

[+28553 ms] version=2.19.0 (stable) (Mon Jan 23 11:29:09 2023 -0800) on "ios_arm64"
[        ] pid=5303, thread=23811, isolate_group=main(0x14f03d400), isolate=main(0x14f02c400)
[        ] os=ios, arch=arm64, comp=no, sim=no
[        ] isolate_instructions=10c7c1e80, vm_instructions=10c7c1e80
[   +1 ms]   pc 0x000000010c8e3538 fp 0x000000016b4c6480 dart::Profiler::DumpStackTrace(void*)+0x68
[        ]   pc 0x000000010c7c2048 fp 0x000000016b4c64a0 dart::Assert::Fail(char const*, ...) const+0x28
[        ]   pc 0x000000010c966c58 fp 0x000000016b4c64d0 dart::compiler::Assembler::EmitUnconditionalBranch(dart::UnconditionalBranchOp, dart::compiler::Label*)+0x0
[        ]   pc 0x000000010c992998 fp 0x000000016b4c6550 dart::compiler::Assembler::ldr(dart::Register, dart::compiler::Address, dart::compiler::OperandSize)+0x144
[        ]   pc 0x000000010c9a356c fp 0x000000016b4c6570 dart::compiler::Assembler::LoadCompressedField(dart::Register, dart::compiler::FieldAddress const&)+0x28
[        ]   pc 0x000000010c9bfcb0 fp 0x000000016b4c65c0 dart::FlowGraphCompiler::GenerateCallerChecksForAssertAssignable(dart::CompileType*, dart::AbstractType const&, dart::compiler::Label*)+0x264
[        ]   pc 0x000000010c9bf9e0 fp 0x000000016b4c6640 dart::FlowGraphCompiler::GenerateAssertAssignable(dart::CompileType*, dart::InstructionSource const&, long, dart::Environment*, dart::String const&, dart::LocationSummary*)+0xf8
[   +5 ms]   pc 0x000000010c9d64a4 fp 0x000000016b4c6680 dart::AssertAssignableInstr::EmitNativeCode(dart::FlowGraphCompiler*)+0x70
[        ]   pc 0x000000010c9ba834 fp 0x000000016b4c6840 dart::FlowGraphCompiler::VisitBlocks()+0x71c
[        ]   pc 0x000000010c9ba0bc fp 0x000000016b4c6870 dart::FlowGraphCompiler::CompileGraph()+0x90
[  +22 ms]   pc 0x000000010ca6b788 fp 0x000000016b4c6880 dart::CompilerPass_GenerateCode::DoBody(dart::CompilerPassState*) const+0x10
[        ]   pc 0x000000010ca6a758 fp 0x000000016b4c6970 dart::CompilerPass::Run(dart::CompilerPassState*) const+0x1b0
[        ]   pc 0x000000010c96bf08 fp 0x000000016b4c7150 dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*)+0x6ec
[        ]   pc 0x000000010c96c654 fp 0x000000016b4c7850 dart::CompileFunctionHelper(dart::CompilationPipeline*, dart::Function const&, bool, long)+0x324
[        ]   pc 0x000000010c96c308 fp 0x000000016b4c78e0 dart::Compiler::CompileFunction(dart::Thread*, dart::Function const&)+0x100
[        ]   pc 0x000000010c888d3c fp 0x000000016b4c7930 dart::Function::EnsureHasCode() const+0x4c
[        ]   pc 0x000000010c96b03c fp 0x000000016b4c7eb0 dart::DRT_CompileFunction(dart::NativeArguments)+0x17c
[        ]   pc 0x0000000119f02f8c fp 0x000000016b4c7ef8 Unknown symbol
[        ]   pc 0x0000000119f03010 fp 0x000000016b4c7f28 Unknown symbol
[        ]   pc 0x000000012f89a38c fp 0x000000016b4c7f80 Unknown symbol
[        ]   pc 0x000000012f89a0ec fp 0x000000016b4c7fc8 Unknown symbol
[        ]   pc 0x000000012f899ec0 fp 0x000000016b4c8000 Unknown symbol
[        ]   pc 0x000000012f8985bc fp 0x000000016b4c80a8 Unknown symbol
[        ]   pc 0x000000012f897efc fp 0x000000016b4c80e8 Unknown symbol
[        ]   pc 0x0000000131dbeb5c fp 0x000000016b4c8150 Unknown symbol
[        ]   pc 0x000000012b6acb10 fp 0x000000016b4c81a0 Unknown symbol
[        ]   pc 0x000000012b6ac7a0 fp 0x000000016b4c8220 Unknown symbol
[        ]   pc 0x000000012b6ac5ac fp 0x000000016b4c8288 Unknown symbol
[        ]   pc 0x000000012b6ac2f4 fp 0x000000016b4c8320 Unknown symbol
[        ]   pc 0x000000012b6ada24 fp 0x000000016b4c8370 Unknown symbol
[        ]   pc 0x000000012b6ad62c fp 0x000000016b4c83d0 Unknown symbol
[        ]   pc 0x000000012b6ab030 fp 0x000000016b4c8450 Unknown symbol
[        ]   pc 0x000000012b6a9758 fp 0x000000016b4c8498 Unknown symbol
[        ]   pc 0x000000012b6b2e18 fp 0x000000016b4c84e0 Unknown symbol
[        ]   pc 0x0000000119f07de0 fp 0x000000016b4c8510 Unknown symbol
[        ]   pc 0x000000012b6acb10 fp 0x000000016b4c8560 Unknown symbol
[        ]   pc 0x000000012b6ac7a0 fp 0x000000016b4c85e0 Unknown symbol
[        ]   pc 0x000000012b6ac5ac fp 0x000000016b4c8648 Unknown symbol
[        ]   pc 0x000000012b6ac2f4 fp 0x000000016b4c86e0 Unknown symbol
[        ]   pc 0x000000012b6ada24 fp 0x000000016b4c8730 Unknown symbol
[        ]   pc 0x000000012b6ad62c fp 0x000000016b4c8790 Unknown symbol
[        ]   pc 0x000000012b6ab030 fp 0x000000016b4c8810 Unknown symbol
[        ]   pc 0x000000012b6a9758 fp 0x000000016b4c8858 Unknown symbol
[        ]   pc 0x000000012b6c04e4 fp 0x000000016b4c8898 Unknown symbol
[        ]   pc 0x0000000123c4af70 fp 0x000000016b4c8910 Unknown symbol
[        ]   pc 0x0000000123c4abe4 fp 0x000000016b4c8970 Unknown symbol
[        ]   pc 0x0000000123c4a2ec fp 0x000000016b4c8a00 Unknown symbol
[        ]   pc 0x000000012b6a3598 fp 0x000000016b4c8a70 Unknown symbol
[        ]   pc 0x000000012b6a3444 fp 0x000000016b4c8ab0 Unknown symbol
[        ]   pc 0x000000012b6a3124 fp 0x000000016b4c8af8 Unknown symbol
[        ]   pc 0x000000012b6a2cb4 fp 0x000000016b4c8b38 Unknown symbol
[        ]   pc 0x000000012b6a2bac fp 0x000000016b4c8b60 Unknown symbol
[        ]   pc 0x0000000119f03518 fp 0x000000016b4c8c30 Unknown symbol
[        ]   pc 0x000000010c806598 fp 0x000000016b4c8cd0 dart::DartEntry::InvokeCode(dart::Code const&, unsigned long, dart::Array const&, dart::Array const&, dart::Thread*)+0x138
[        ]   pc 0x000000010c80640c fp 0x000000016b4c8d30 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long)+0x128
[        ]   pc 0x000000010c806bd0 fp 0x000000016b4c8d80 dart::DartEntry::InvokeCallable(dart::Thread*, dart::Function const&, dart::Array const&, dart::Array const&)+0x174
[        ]   pc 0x000000010cb2c204 fp 0x000000016b4c8e90 Dart_InvokeClosure+0x438
[   +9 ms]   pc 0x000000010c60c42c fp 0x000000016b4c8f20 tonic::DartMicrotaskQueue::RunMicrotasks()+0x84
[        ]   pc 0x000000010c4e6770 fp 0x000000016b4c8fb0 fml::MessageLoopImpl::FlushTasks(fml::FlushType)+0xc8
[        ]   pc 0x000000010c4ecd94 fp 0x000000016b4c8fd0 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*)+0x20
[        ]   pc 0x000000018037383c fp 0x000000016b4c8fe0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__+0x1c
[        ]   pc 0x00000001803734f8 fp 0x000000016b4ca0b0 __CFRunLoopDoTimer+0x364
[        ]   pc 0x0000000180372be4 fp 0x000000016b4ca110 __CFRunLoopDoTimers+0x11c
[        ]   pc 0x000000018036d2d4 fp 0x000000016b4cae80 __CFRunLoopRun+0x718
[        ]   pc 0x000000018036c7a4 fp 0x000000016b4caf30 CFRunLoopRunSpecific+0x248
[        ]   pc 0x000000010c4ecec4 fp 0x000000016b4caf70 fml::MessageLoopDarwin::Run()+0x58
[        ]   pc 0x000000010c4e6658 fp 0x000000016b4caf90 fml::MessageLoopImpl::DoRun()+0x28
[        ]   pc 0x000000010c4ebcc4 fp 0x000000016b4cafc0 void* std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<std::_LIBCPP_ABI_NAMESPACE::tuple<std::_LIBCPP_ABI_NAMESPACE::unique_ptr<std::_LIBCPP_ABI_NAMESPACE::__thread_struct, std::_LIBCPP_ABI_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::Thread::Thread(std::_LIBCPP_ABI_NAMESPACE::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0>>(void*)+0xd0
[        ]   pc 0x00000001b059e4e4 fp 0x000000016b4cafe0 _pthread_start+0x74
[        ] -- End of DumpStackTrace
[        ]   pc 0x0000000000000000 fp 0x000000016b4c7ef8 sp 0x0000000000000000 [Stub] CallToRuntime
[        ]   pc 0x0000000119f03010 fp 0x000000016b4c7f28 sp 0x000000016b4c7f08 [Stub] LazyCompile
[        ]   pc 0x000000012f89a38c fp 0x000000016b4c7f80 sp 0x000000016b4c7f38 [Unoptimized] AuthRepositoryImpl.deleteAccount
[        ]   pc 0x000000012f89a0ec fp 0x000000016b4c7fc8 sp 0x000000016b4c7f90 [Unoptimized] DeleteAccountInteractor.deleteAccount
[        ]   pc 0x000000012f899ec0 fp 0x000000016b4c8000 sp 0x000000016b4c7fd8 [Unoptimized] DeleteAccountRequestNotifier.deleteAccount.<anonymous closure>
[        ]   pc 0x000000012f8985bc fp 0x000000016b4c80a8 sp 0x000000016b4c8010 [Unoptimized] RequestNotifier.executeRequest
[        ]   pc 0x000000012f897efc fp 0x000000016b4c80e8 sp 0x000000016b4c80b8 [Unoptimized] DeleteAccountRequestNotifier.deleteAccount
[        ]   pc 0x0000000131dbeb5c fp 0x000000016b4c8150 sp 0x000000016b4c80f8 [Unoptimized] ProfileDeleteAccountRow._onAccountDeletePressed@121350347
[        ]   pc 0x000000012b6acb10 fp 0x000000016b4c81a0 sp 0x000000016b4c8160 [Unoptimized] _SuspendState@4048458._createAsyncCallbacks@4048458.thenCallback
[        ]   pc 0x000000012b6ac7a0 fp 0x000000016b4c8220 sp 0x000000016b4c81b0 [Unoptimized] _rootRunUnary@4048458
[        ]   pc 0x000000012b6ac5ac fp 0x000000016b4c8288 sp 0x000000016b4c8230 [Unoptimized] _rootRunUnary@4048458
[        ]   pc 0x000000012b6ac2f4 fp 0x000000016b4c8320 sp 0x000000016b4c8298 [Unoptimized] _CustomZone@4048458.runUnary
[        ]   pc 0x000000012b6ada24 fp 0x000000016b4c8370 sp 0x000000016b4c8330 [Unoptimized] _FutureListener@4048458.handleValue
[        ]   pc 0x000000012b6ad62c fp 0x000000016b4c83d0 sp 0x000000016b4c8380 [Unoptimized] _Future@4048458._propagateToListeners@4048458.handleValueCallback
[        ]   pc 0x000000012b6ab030 fp 0x000000016b4c8450 sp 0x000000016b4c83e0 [Unoptimized] _Future@4048458._propagateToListeners@4048458
[        ]   pc 0x000000012b6a9758 fp 0x000000016b4c8498 sp 0x000000016b4c8460 [Unoptimized] _Future@4048458._completeWithValue@4048458
[        ]   pc 0x000000012b6b2e18 fp 0x000000016b4c84e0 sp 0x000000016b4c84a8 [Unoptimized] _SuspendState@4048458._returnAsync@4048458
[        ]   pc 0x0000000119f07de0 fp 0x000000016b4c8510 sp 0x000000016b4c84f0 [Stub] ReturnAsync
[        ]   pc 0x000000012b6acb10 fp 0x000000016b4c8560 sp 0x000000016b4c8520 [Unoptimized] _SuspendState@4048458._createAsyncCallbacks@4048458.thenCallback
[        ]   pc 0x000000012b6ac7a0 fp 0x000000016b4c85e0 sp 0x000000016b4c8570 [Unoptimized] _rootRunUnary@4048458
[        ]   pc 0x000000012b6ac5ac fp 0x000000016b4c8648 sp 0x000000016b4c85f0 [Unoptimized] _rootRunUnary@4048458
[        ]   pc 0x000000012b6ac2f4 fp 0x000000016b4c86e0 sp 0x000000016b4c8658 [Unoptimized] _CustomZone@4048458.runUnary
[        ]   pc 0x000000012b6ada24 fp 0x000000016b4c8730 sp 0x000000016b4c86f0 [Unoptimized] _FutureListener@4048458.handleValue
[        ]   pc 0x000000012b6ad62c fp 0x000000016b4c8790 sp 0x000000016b4c8740 [Unoptimized] _Future@4048458._propagateToListeners@4048458.handleValueCallback
[        ]   pc 0x000000012b6ab030 fp 0x000000016b4c8810 sp 0x000000016b4c87a0 [Unoptimized] _Future@4048458._propagateToListeners@4048458
[        ]   pc 0x000000012b6a9758 fp 0x000000016b4c8858 sp 0x000000016b4c8820 [Unoptimized] _Future@4048458._completeWithValue@4048458
[        ]   pc 0x000000012b6c04e4 fp 0x000000016b4c8898 sp 0x000000016b4c8868 [Unoptimized] _Future@4048458._asyncCompleteWithValue@4048458.<anonymous closure>
[        ]   pc 0x0000000123c4af70 fp 0x000000016b4c8910 sp 0x000000016b4c88a8 [Unoptimized] _rootRun@4048458
[        ]   pc 0x0000000123c4abe4 fp 0x000000016b4c8970 sp 0x000000016b4c8920 [Unoptimized] _rootRun@4048458
[        ]   pc 0x0000000123c4a2ec fp 0x000000016b4c8a00 sp 0x000000016b4c8980 [Unoptimized] _CustomZone@4048458.run
[        ]   pc 0x000000012b6a3598 fp 0x000000016b4c8a70 sp 0x000000016b4c8a10 [Unoptimized] _CustomZone@4048458.runGuarded
[        ]   pc 0x000000012b6a3444 fp 0x000000016b4c8ab0 sp 0x000000016b4c8a80 [Unoptimized] _CustomZone@4048458.bindCallbackGuarded.<anonymous closure>
[        ]   pc 0x000000012b6a3124 fp 0x000000016b4c8af8 sp 0x000000016b4c8ac0 [Unoptimized] _microtaskLoop@4048458
[        ]   pc 0x000000012b6a2cb4 fp 0x000000016b4c8b38 sp 0x000000016b4c8b08 [Unoptimized] _startMicrotaskLoop@4048458
[        ]   pc 0x000000012b6a2bac fp 0x000000016b4c8b60 sp 0x000000016b4c8b48 [Unoptimized] _startMicrotaskLoop@4048458
[        ]   pc 0x0000000119f03518 fp 0x000000016b4c8c30 sp 0x000000016b4c8b70 [Stub] InvokeDartCode
[   +1 ms] === Crash occurred 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]:80
[        ] === 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:68 B6
           B7[function entry]:70
               t0 <- Constant(#2)
               StoreLocal(:entry_points_temp @-7, t0)
               goto:72 B6
           B6[join]:66 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 @-9)
               t3 <- Constant(#1)
               t2 <- BinarySmiOp:4(- [tr], t2, t3)
               t3 <- LoadLocal(:t2 @-10)
               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 <- <…>
[  +98 ms] Service protocol connection closed.
[        ] Lost connection to device.
[        ] DevFS: Deleting filesystem on the device (file:///Users/josipkrnjic/Library/Developer/CoreSimulator/Devices/C7B8FF1E-D7B1-487B-91EC-CDA674B7DBC1/data/Containers/Data/Application/22EADBAD-0CE4-4C69-B337-774E3F64F1E0/tmp/flutter-ludusSo0tEi/flutter-ludus/)
[   +4 ms] executing: /usr/bin/arch -arm64e xcrun simctl terminate C7B8FF1E-D7B1-487B-91EC-CDA674B7DBC1 com.ludus.app.ludus
[  +82 ms] An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
           The operation couldn’t be completed. found nothing to terminate
           found nothing to terminate
Exception: Unable to terminate com.********** on C7B8FF1E-D7B1-487B-91EC-CDA674B7DBC1:
ProcessException: Process exited abnormally:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
The operation couldn’t be completed. found nothing to terminate

Screenshots
No response
Platforms

 iOS
 Android
 Web
 macOS
 Windows
 Linux

Flutter Version
3.7.0
Amplify Flutter Version
1.0.0-next.0
Deployment Method
Custom Pipeline
Schema
No response

Closing comment (2023-03-09T15:33:59Z): Duplicate of #2361.
Unfortunately, this is an issue with the Dart compiler. It has been resolved but has not made it to Flutter stable yet. We are working on internal improvements which should help resolve this too which should be available over the next few weeks.