agent_dart icon indicating copy to clipboard operation
agent_dart copied to clipboard

Error while creating an actor

Open awazgyawali opened this issue 3 years ago • 3 comments
trafficstars

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]!;
  }

awazgyawali avatar Jun 20 '22 16:06 awazgyawali

Hi , what kind of devices are you using.

neeboo avatar Jun 21 '22 16:06 neeboo

Its occurring on: iPhone SE (2nd Gen) iPhone 11 Pro Max

awazgyawali avatar Jun 21 '22 17:06 awazgyawali

use this branch configured in pubspec.yaml

agent_dart:
    git:
      url: https://github.com/AstroxNetwork/agent_dart
      ref: "b880bde"

neeboo avatar Jun 22 '22 07:06 neeboo

Can you confirm this issue still exists? @awazgyawali

neeboo avatar Sep 06 '22 12:09 neeboo

@neeboo Unfortunately it does on version 0.1.24+1. Does the team have any plan to release a new build?

awazgyawali avatar Sep 07 '22 19:09 awazgyawali

@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 avatar Sep 08 '22 05:09 neeboo

@neeboo I tried on 1.0.0-dev branch.

I still get the issue when running on release build on iOS.

awazgyawali avatar Sep 10 '22 18:09 awazgyawali

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

awazgyawali avatar Sep 12 '22 03:09 awazgyawali

We'll add some notes with the new version release. Closing

AlexV525 avatar Sep 13 '22 14:09 AlexV525