-
Notifications
You must be signed in to change notification settings - Fork 132
Flutter application crashes on iOS 15 #313
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
Comments
I have the same problem. This is an IOS 15 vs objectbox incompatibility issue. If I change the simulator version to IOS 14.3, everything is fine. |
@ebadta81 you're totally right! I downloaded the iOS 14 simulator and yes, it's working fine. I just changed the title, thanks for that info. |
I can confirm this is reproducible with the example in the repo by wrapping Still trying to figure out an alternative without sacrificing performance. I've also opened an SO question https://stackoverflow.com/questions/69324507/ios-15-sdk-memcpy-not-exported |
So far no reaction on SO; maybe also try the Dart bug tracker? Are stdlib functions treated differently (e.g. less calling overhead) than "our" code? If not, we could provide our own C wrapper for memcpy, I guess? |
I've also encountered a similar issue in our application, but this only seems to be a problem on iOS Simulators. So far, there have been no issues reported on real devices. |
I've created a Flutter GH issue flutter/flutter#90896 |
Yes, that's an option I've had in mind as a "last resort" (because it requires more symbols just for dart/flutter). There should be no performance degradation. |
It seems to be a confirmed issue with Flutter itself; can someone confirm it's fixed in the Flutter beta channel? See flutter/flutter#90896 (comment) |
Issue doesn't seem to be fixed yet on Flutter beta channel 2.6.0 Stack Trace:
|
I have the same problem when making a query with conditions. The information I have is summarized in the following paragraphs.
|
Update: not fixed by latest Flutter versions flutter/flutter#90896 (comment) |
On iOS use Dart API instead of memcpy
We have released the preview version |
Updating to the preview version fixed it for me. |
it also works for me with the new version |
|
1.2.1-dev.0 on IOS 15 box.getAll() FIXED. Nice... |
It still doesn't work on each machine with XCode 13.1. Also this 1.2.1-dev.0 version contains Android bug: |
@slavamarchenko A little more information would be nice; e.g. to reproduce and ensure it's not a local configuration issue on your side. |
For the Android issue I am using 1.2.1-dev.0 (Flutter 2.5.3, XCode 13.1) release and running: return boxStorage.store.runInTransaction<void>(TxMode.write, () {
// remove all properties with such key
box.removeMany(_findPropertiesByKey(key).map((e) => e.id).toList());
// add new property
box.put(ObjBoxProperty.fromValue(key, value));
}); and that I have as error:
On 1.2.0 it works perfect. Sorry, I have no possibility to get details for IOS Simulator issue, that happened not on my machine actually. |
I get the same error: After upgrading to version 3.0.1 (3.0.0 same error) As i can see, issue has happened because function v2.9.2-RC3 - version ok. Why flutter package needs to link with android aar package and not with native shared library directly? |
@slavamarchenko @clouddevil Thanks for reporting. This should be fixed in the latest preview release |
Yes, have not tried on IOS but on Android works fine. Thanks) |
The |
After upgrading XCode to the very recent version 13.0, our flutter app crashes when doing a box.get(id) with an exception : ArgumentError (Invalid argument(s): Failed to lookup symbol (dlsym(RTLD_DEFAULT, memcpy): symbol not found))
Basic info (please complete the following information):
Flutter 2.5.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ffb2ecea52 (5 days ago) • 2021-09-17 15:26:33 -0400
Engine • revision b3af
Additionally, you can choose to provide more details, e.g. the output of:
pub deps --no-dev
flutter doctor -v
Steps to reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Code
If applicable, add code to help explain your problem.
Logs, stack traces
ArgumentError (Invalid argument(s): Failed to lookup symbol (dlsym(RTLD_DEFAULT, memcpy): symbol not found))
Stack traces:
update: formatting
The text was updated successfully, but these errors were encountered: