Skip to content

Flutter test fail on Ubuntu 22.04 #632

@Dinip

Description

@Dinip

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

I’m running into an issue on GitHub Actions where jobs using Ubuntu 22.04 fail to load the dynamic library librive_native.so, even after running dart run rive_native:setup --verbose --clean --platform linux.

Ubuntu 24.04 does not appear to have this issue, and the tests pass there without any problems.

The failure was first identified on my company’s self-hosted custom runners, which are based on Ubuntu 22.04. Since those runners cannot be upgraded for now, this issue is currently blocking us.

I’m aware that there is also a --build option, although I haven’t tested it yet. Since it requires additional system packages and tooling to be installed, I would prefer to avoid that route unless it is strictly necessary. Using the existing prebuilt binaries would be preferable.

I’ve attached screenshots from the runs available in my public repo, which I created specifically to reproduce the issue.

Reproduction steps / code

dart run rive_native:setup --verbose --clean --platform linux
flutter test

Upload your reproduction files / stack trace

No response

Source .riv / .rev file

No response

Screenshots / video

22_04.png
24_04.png

Rive Flutter package version

0.14.6

Flutter version

Flutter 3.35.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 9f455d2486 (7 months ago) • 2025-10-08 14:55:31 -0500
Engine • hash a5f2c36e367c13f868cfe98db5806f562c52c35e (revision d2913632a4) (6 months ago) • 2025-10-07 17:26:21.000Z
Tools • Dart 3.9.2 • DevTools 2.48.0

Device

Linux

OS version

Ubuntu 22.04

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions