rive-flutter icon indicating copy to clipboard operation
rive-flutter copied to clipboard

Problem in loading multiple asset rives.

Open akanksha-coditas opened this issue 8 months ago • 3 comments

Description

I'm encountering an issue with preloading Rive files using RiveFile.asset() in flutter web. For some files, the preloading works as expected, but for others, it throws exceptions. Interestingly, the files that cause exceptions when preloaded with others work fine when loaded individually. This problem occurs only when the files are loaded from hosted URLs.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Add approx 10-12 rive files of less than 3mb size in assets directory.
  2. Now try to preload all the rives.
  3. Few will be loaded and then will get an error saying
Screenshot 2024-06-20 at 5 15 36 PM

Expected behavior

<-- A clear and concise description of what you expected to happen. --> I wanted to preload all the rives at the initial state only and later on as per the requirement will render it on the screen using RiveFile.direct(riveFile).

Device & Versions (please complete the following information)

  • Device: Macbook Pro
  • OS: macOs 14.4.1 Sonoma
  • Flutter Version: Flutter 3.22.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision 5dcb86f68f (6 weeks ago) • 2024-05-09 07:39:20 -0500 Engine • revision f6344b75dc Tools • Dart 3.4.0 • DevTools 2.34.3

akanksha-coditas avatar Jun 20 '24 11:06 akanksha-coditas