agent_dart
agent_dart copied to clipboard
Error while creating an actor
This is the error that I am getting while creating an actor
ArgumentError: Invalid argument(s): Failed to lookup symbol 'bls_verify': dlsym(RTLD_DEFAULT, bls_verify): symbol not found
Full Stack Trace:
ArgumentError: Invalid argument(s): Failed to lookup symbol 'bls_verify': dlsym(RTLD_DEFAULT, bls_verify): symbol not found
File "ffi_dynamic_library_patch.dart", line 34, in DynamicLibrary.lookup
File "ffi_base.dart", line 23, in rustBlsVerify
File "bls.ffi.dart", in FFIBls.blsVerifySync
File "certificate.dart", line 155, in Certificate.verify
File "<asynchronous suspension>"
File "certificate.dart", line 179, in Certificate._checkDelegation
File "<asynchronous suspension>"
File "certificate.dart", line 149, in Certificate.verify
File "<asynchronous suspension>"
File "index.dart", line 17, in pollForResponse
File "<asynchronous suspension>"
File "actor.dart", line 432, in _createActorMethod.<fn>
If it helps, my app communicates with a dozen dynamic canisters and creates dozen of actors using this common method
Future<CanisterActor> getVideoCanisterActor(String canisterId) async {
if (_canisters[canisterId] == null) {
AgentFactory _videoCanisterAgent = await AgentFactory.createAgent(
canisterId: canisterId,
url: backendUrl,
idl: videoCanisterIDL,
);
_canisters[canisterId] = _videoCanisterAgent.actor!;
}
return _canisters[canisterId]!;
}
Hi , what kind of devices are you using.
Its occurring on: iPhone SE (2nd Gen) iPhone 11 Pro Max
use this branch configured in pubspec.yaml
agent_dart:
git:
url: https://github.com/AstroxNetwork/agent_dart
ref: "b880bde"
Can you confirm this issue still exists? @awazgyawali
@neeboo Unfortunately it does on version 0.1.24+1. Does the team have any plan to release a new build?
@neeboo Unfortunately it does on version 0.1.24+1. Does the team have any plan to release a new build?
yes, we are woking on it, will be 1.0.0+
@neeboo I tried on 1.0.0-dev branch.
I still get the issue when running on release build on iOS.
FYI:
ArgumentError: Invalid argument(s): Failed to lookup symbol 'store_dart_post_cobject': dlsym(RTLD_DEFAULT, store_dart_post_cobject): symbol not found
File "ffi_dynamic_library_patch.dart", line 34, in DynamicLibrary.lookup
File "ffi_bridge.dart", line 1493, in AgentDartWire._store_dart_post_cobjectPtr
File "ffi_bridge.dart", in AgentDartWire._store_dart_post_cobject
File "ffi_bridge.dart", in AgentDartWire.store_dart_post_cobject
File "basic.dart", line 35, in FlutterRustBridgeBase._setUpRustToDartComm
File "basic.dart", line 20, in new FlutterRustBridgeBase
File "ffi_bridge.dart", line 314, in new AgentDartImpl.raw
File "ffi_bridge.dart", line 312, in new AgentDartImpl
File "ffi_helper.dart", line 40, in new AgentDartFFI._
File "ffi_helper.dart", line 50, in AgentDartFFI._instance
File "ed25519.dart", in Ed25519KeyIdentity.generate
File "ic_backend.dart", line 63, in ICBackend._initActor
File "ic_backend.dart", line 116, in ICBackend.initilize
File "splash.dart", line 85, in _SplashScreenState._initlize
File "splash.dart", line 67, in _SplashScreenState._checkNetwork
We'll add some notes with the new version release. Closing