rive-app / rive-flutter

Flutter runtime for Rive
https://rive.app
MIT License
1.16k stars 180 forks source link

Rive not being able to lookup init symbol on iOS #392

Closed jaggernod closed 1 month ago

jaggernod commented 1 month ago

Description

Rive animation is not being shown due to the inability to load init symbol on iOS devices (Android and Linux work fine)

Steps To Reproduce

Steps to reproduce the behavior:

  1. Load any Rive file on iOS

Expected behavior

A rive animation is shown and running

Screenshots

No need, there is just an empty space in place of the Rive widget

Device & Versions (please complete the following information)

Additional context

Logs from the application:

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to lookup symbol 'init': dlsym(RTLD_DEFAULT, init): symbol not found
#0      DynamicLibrary.lookup (dart:ffi-patch/ffi_dynamic_library_patch.dart:33:70)
#1      init (package:rive_common/src/rive_text_ffi.dart:527:15)
#2      init (package:rive_common/src/rive_text_ffi.dart)
#3      initFont (package:rive_common/src/rive_text_ffi.dart:836:3)
#4      Font.initialize (package:rive_common/rive_text.dart:477:7)
#5      RiveFile.initializeText (package:rive/src/rive_file.dart:365:33)
#6      RiveFile._initTextAndImport (package:rive/src/rive_file.dart:381:13)
#7      RiveFile.asset (package:rive/src/rive_file.dart:411:12)
<asynchronous suspension>
#8      RiveAnimationState._configure (package:rive/src/widgets/rive_animation.dart:212:11)
<asynchronous suspension>
jaggernod commented 1 month ago

Apologies, after further investigation it turned up that it was not the fault of Rive Library. We had another library messing up the library linking.

Closing this issue.