Skip to content

iOS (Factory.rive / Metal): some embedded images are not drawn, depending on what else is in the frame #671

Open

Description

@marcobasmaji

Submission checklist

  • I have confirmed the issue is present in the latest version of the rive Flutter package
  • I have searched the documentation and forums and could not find an answer
  • I have searched existing issues and this is not a duplicate

Description

With the Rive Renderer (Factory.rive) on iOS, some embedded images in a .riv are never drawn, or appear and disappear while other content animates. No errors are logged.

Expected: all images draw. They do with the same file on Android (Rive Renderer), in the Rive editor and in the web runtime (@rive-app/webgl2). Factory.flutter on iOS also draws every image.

Actual (iOS):

The overlay-blend texture images on the crow's body, head and wing are not drawn (those parts look flat); the ones on the tail, eyelids and beak are.
On page_3, the image Pebbles and the image inside the node JarFront are missing.
Which images are missing depends on the rest of the frame: hiding the nested Crow makes the jar body and water disappear too; on 0.15.0-dev.4 the pebbles come and go between frames.

Reproduction steps / code

Unzip thirsty_crow_riv.zip (attached below) and load thirsty_crow.riv with Factory.rive.
Show the artboard page_3 (also visible on page_1 and the component artboard Crow).
Fire the view model trigger start (the crow animates; the jar's front layer and the pebbles are missing).
import 'package:flutter/material.dart';
import 'package:rive/rive.dart' as rive;

Future main() async {
WidgetsFlutterBinding.ensureInitialized();
await rive.RiveNative.init();
runApp(const MaterialApp(home: Scaffold(body: Center(child: Page3()))));
}

class Page3 extends StatefulWidget {
const Page3({super.key});

@OverRide
State createState() => _Page3State();
}

class _Page3State extends State {
rive.RiveWidgetController? _controller;

@OverRide
void initState() {
super.initState();
_load();
}

Future _load() async {
// thirsty_crow.riv added as an asset
final file = await rive.File.asset('assets/thirsty_crow.riv', riveFactory: rive.Factory.rive);
final controller = rive.RiveWidgetController(file!, artboardSelector: rive.ArtboardSelector.byName('page_3'));
controller.dataBind(rive.AutoBind()).trigger('start')?.trigger();
setState(() => _controller = controller);
}

@OverRide
Widget build(BuildContext context) => _controller == null
? const SizedBox()
: AspectRatio(aspectRatio: 1.5, child: rive.RiveWidget(controller: _controller!, fit: rive.Fit.contain));
}
Switching Factory.rive to Factory.flutter, or running on Android, draws every image.

Upload your reproduction files / stack trace

No response

Source .riv / .rev file

thirsty_crow_riv.zip

Screenshots / video

ios_rive_0.14.5_page_3.png
ios_rive_0.15.0-dev.4_page_3.png
android_rive_0.14.5_page_3.png

Rive Flutter package version

0.14.5 (rive_native 0.1.5). Also reproduced with 0.14.11 (rive_native 0.1.11) and 0.15.0-dev.4 (rive_native 0.2.0-dev.4).

Flutter version

Flutter 3.41.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision db50e20168 (8 months ago) • 2026-03-25 16:21:00 -0700
Engine • hash 5cdd32777948fa7a648fac915f8da7120ac7e97a (revision 425cfb54d0) (7 months ago) • 2026-03-25 20:14:42.000Z
Tools • Dart 3.11.4 • DevTools 2.54.2

Device

iOS Simulator (iPhone 17) and a physical iPhone. Works on: Android Emulator (Pixel 9).

OS version

iOS 26.2 (simulator), iOS 26.6.1 (iPhone). Works on: Android 16 (API 36).

Additional context

What we ruled out:

Assets: every image asset is embedded with its bytes, and every Image resolves to the right asset (checked in the exported file and through the asset loader callback).
Decoding: Factory.rive.decodeImage returns an image for every embedded WebP. ImageIO decoding as in cg_image_decode gives correct pixels.
Image properties: the same image is skipped alone on an empty artboard, at 40 % or 300 % scale. A small image placed next to it draws.
Timing: creating the controller 2 s after loading the file changes nothing.
Mipmaps: at Fit.none (magnified) the image is still missing.
Blend mode: normal-blend images are affected the same way as overlay-blend ones.
Possible lead: on Metal the frame isn't in atomics interlock mode, so RiveRenderer::drawImage draws the image as drawPath with an image paint. On the Android emulator it takes the ImageRectDraw path, where every image draws.

Activity

  1. added
    known
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    known

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions