You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Add approx 10-12 rive files of less than 3mb size in assets directory.
Now try to preload all the rives.
Few will be loaded and then will get an error saying
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)
I'd like to confirm. Is this only an issue if the .riv file contains hosted out-of-band assets? It appears that the image data is corrupt.
If you have an example project (or .riv files) you can share with us that reproduces the issue that will be really helpful in speeding along our investigation.
I'd like to confirm. Is this only an issue if the .riv file contains hosted out-of-band assets? It appears that the image data is corrupt.
If you have an example project (or .riv files) you can share with us that reproduces the issue that will be really helpful in speeding along our investigation.
Regarding the out-of-band asset, I am unsure. Additionally, I only see this problem when I load more than 6-7 rives at once; otherwise, everything functions as it should. Furthermore, it isn't targeting any particular file. Additionally, it makes no exceptions when I load files one at a time.
Also, I apologise, but since those are client files, I am unable to give them to you.
We can try to reproduce this issue on our end, but if you can provide a reproducible sample, or share how you are using the runtime code that'll be helpful. If we're unable to reproduce it'll be difficult to resolve the issue.
Could you give more information on this: "This problem occurs only when the files are loaded from hosted URLs."
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:
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)
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
The text was updated successfully, but these errors were encountered: