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

DataStore makes my app crashing at run on IOS #585

Closed
fafriat opened this issue May 19, 2021 · 5 comments
Closed

DataStore makes my app crashing at run on IOS #585

fafriat opened this issue May 19, 2021 · 5 comments
Labels
datastore Issues related to the DataStore Category iOS Issues specific to the iOS Platform

Comments

@fafriat
Copy link

fafriat commented May 19, 2021

When adding the DataStore plugin, the application is crashing at runtime (in IOS Simulator):

Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Running Xcode build...
Xcode build done. 12,8s
Debug service listening on ws://127.0.0.1:65508/HVt_gCraq6Q=/ws
Syncing files to device iPhone 12 Pro Max...
Lost connection to device.
I changed version (Pod) to 13.0... and did all version related changes..

Running with Xcode , I am getting nw_protocol_get_quic_image_block_invoke dlopen libquic failed
then execution is stopping in thee debugger with

Thread1: EXC_BAD_ACCESS (code=2...)

in code: public static func modelSchema(from name: ModelName) -> ModelSchema? {
concurrencyQueue.sync {
modelSchemaMapping[name]
}
}

any idea ?

@haverchuck
Copy link
Member

@fafriat Thanks for posting this issue. Could you please clarify:

  • Which version of amplify-flutter are you currently using?
  • What do you mean by 'all version related changes'?

@haverchuck haverchuck added clarification-needed datastore Issues related to the DataStore Category iOS Issues specific to the iOS Platform labels May 19, 2021
@fafriat
Copy link
Author

fafriat commented May 19, 2021

amplify -v
4.51.1

flutter --version
Flutter 2.2.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b22742018b (5 days ago) • 2021-05-14 19:12:57 -0700
Engine • revision a9d88a4d18
Tools • Dart 2.13.0

I changed the Podfile:

platform :ios, '13.0'
...
post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
        target.build_configurations.each do |config|
          config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
        end
  end
end

I changed in Xcode IOS deployment target to 13.0

@fafriat
Copy link
Author

fafriat commented May 19, 2021

The problem disappear for me after I added :

await Amplify.DataStore.clear();

after the Amplify.configure() call...

So it is certainly related to old/bad format data from Appsync...

@haverchuck haverchuck added requires-android-fix This issue is the result of an underlying Amplify Android issue that needs to be fixed. and removed clarification-needed requires-android-fix This issue is the result of an underlying Amplify Android issue that needs to be fixed. labels May 20, 2021
@b-cancel
Copy link

This is a bug report I just filed that includes a couple of bugs I found and the workarounds to each
after reading your bug report I think it could help
#822

@HuiSF HuiSF 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 pending-close-response-required The issue will be closed if details necessary to reproduce the issue are not provided within 7 days. labels Aug 28, 2021
@HuiSF
Copy link
Member

HuiSF commented Aug 28, 2021

Thank you @fafriat for reporting this issue and providing your solution! It looks like you have resolved this issue. I'll close this issue for now. Please feel free reopen or follow up if you have other issues.

@HuiSF HuiSF closed this as completed Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datastore Issues related to the DataStore Category iOS Issues specific to the iOS Platform
Projects
None yet
Development

No branches or pull requests

4 participants