Skip to content
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

RiveAnimation stopped working post upgrade to 0.13.8 #400

Open
nishitsplashmath opened this issue Jun 20, 2024 · 1 comment
Open

RiveAnimation stopped working post upgrade to 0.13.8 #400

nishitsplashmath opened this issue Jun 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nishitsplashmath
Copy link

Description

Post upgrading Rive from 0.12.4 to 0.13.8, Rive is not getting initialized properly for android, ios and m-web platforms. DynamicLibrary.lookup is not getting initialized correctly. We've added dart:ffi as dependency in flutter package.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Call RiveFile.network method to get the Rive file with a cdn file Path.

[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.network (package:rive/src/rive_file.dart:436:12)

#8 MethodChannelContextPlugin.getRiveFile (package:context_plugin_platform_interface/src/method_channel_context_plugin.dart:187:14)

#9 SplashlearnRiveVm._loadRiveFile (package:flutter_app/utilities/splash_companion/splashlearn_rive_vm.dart:202:20)

#10 SplashlearnRiveVm.init (package:flutter_app/utilities/splash_companion/splashlearn_rive_vm.dart:162:9)


Expected behavior

RiveFile should be returned.

Device & Versions (please complete the following information)

  • Android Emulator, iOS Simulator, Android Phone, iOS devices, M-web devices (Android Chrome, iOS safari, Chrome)
  • Flutter Version: Flutter 3.22.2
    e.g.:
Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 761747bfc5 (2 weeks ago) • 2024-06-05 22:15:13 +0200
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3

Additional context

  1. There was no text initialization happening in 0.12.4
  2. When building from source instead of flutter package, we noticed that the initFont() in rive_text_ffi.dart is causing the crash.
@nishitsplashmath nishitsplashmath added the bug Something isn't working label Jun 20, 2024
@HayesGordon
Copy link
Contributor

Hi @nishitsplashmath, I can't reproduce this on my end. Could you please share a reproducible example project with us so we can investigate this further?

I see you also contacted our support if you prefer to share information through that channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants