Skip to content

box.getAll() throw Failed to lookup symbol 'memcpy': dlsym(RTLD_DEFAULT, memcpy): symbol not found #322

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

Closed
Kseon14 opened this issue Oct 16, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@Kseon14
Copy link

Kseon14 commented Oct 16, 2021

  • ObjectBox version: 1.2.0
  • Flutter 2.5.3 • channel stable • https://github.com/flutter/flutter.git
    Framework • revision 18116933e7 (20 hours ago) • 2021-10-15 10:46:35 -0700
    Engine • revision d3ea636dc5
    Tools • Dart 2.14.4
  • Null-safety enabled: no
  • Reproducibility: always
  • OS: macOs BigSur
  • Emulator: iPhone 12Pro/iOS 15.0

Code

Store store = await openStore();
  var boxTest = store.box<TestObj>();
  boxTest.put(new TestObj(text:"test"));
  print(boxTest.getAll());

Object :

@Entity()
class TestObj{

  int id;

  String text;

  TestObj({this.id, this.text});
}

Exception

[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: Invalid argument(s): Failed to lookup symbol 'memcpy': dlsym(RTLD_DEFAULT, memcpy): symbol not found
#0 DynamicLibrary.lookup (dart:ffi-patch/ffi_dynamic_library_patch.dart:31:29)
#1 memcpy (package:objectbox/src/native/bindings/nativemem.dart)
#2 memcpy (package:objectbox/src/native/bindings/nativemem.dart)
#3 ReaderWithCBuffer.access (package:objectbox/src/native/bindings/flatbuffers.dart:128:7)
#4 CursorHelper.readData (package:objectbox/src/native/bindings/helpers.dart:111:36)
#5 Box.getAll. (package:objectbox/src/native/box.dart:258:58)
#6 Store._runInTransaction (package:objectbox/src/native/store.dart:305:24)
#7 InternalStoreAccess.runInTransaction (package:objectbox/src/native/store.dart:365:13)
#8 Box.getAll (package:objectbox/src/native/box.dart:250:43)
#9 _initOB (package:ps_check/main.dart:201:17)

#10 main (package:ps_check/main.dart:161<…>

@Kseon14 Kseon14 added the bug Something isn't working label Oct 16, 2021
@greenrobot
Copy link
Member

@Kseon14
Copy link
Author

Kseon14 commented Oct 16, 2021

yes, I found this link too, but hive works completely fine and Isar (actually spent a whole day rewriting the code for these local storages), also I tried the previous build of flutter 2.5.0 and the beta branch (2.6. +) , everywhere OB doesn't work :(

@greenrobot
Copy link
Member

@Kseon14 I understand you really want this to work. Please understand that posting duplicate issues does not help us especially when it looks like it's a Flutter issue. Maybe you can provide additional information on the Flutter issue instead? If more people chime in there, the more likely some can be done.

@Peng-Qian
Copy link

same here, not work with same error

@khasoggi
Copy link

khasoggi commented Nov 3, 2021

Same here too...
Ios 12, object box latest beta still not work.

@greenrobot
Copy link
Member

@Peng-Qian @khasoggi You commented on a closed duplicate. This issue is tracked via #313 and there's a new dev build mentioned here: #313 (comment).

@objectbox objectbox locked as resolved and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants