Skip to content

App crash on iOS build when decoding a PNG image through Unity when Rive plugin is included #163

Closed

Description

@attewd

When loading png images through the https://docs.unity3d.com/ScriptReference/Networking.UnityWebRequestTexture.html and the rive plugin is included in the project, the app will crash on iOS.
On android it works correctly. Rive itself doesn't need to be rendering anything while the crash happens.

This appears to be due to the following libpng functions sharing the same name within Unity’s own libpng and the libpng included in the rive-unity plugin:
_png_riffle_palette_neon
_png_do_expand_palette_rgb8_neon
_png_do_expand_palette_rgba8_neon

The unity version used is Unity 6000.0.74f1

Should these be included in the https://github.com/rive-app/rive-runtime/blob/main/dependencies/rive_png_renames.h file?

Activity

  1. damzobridge commented on May 19, 2026

    @damzobridge
    Contributor

    Hello, you're right. It's most likely related to the png renames. Could you share which version of the plugin you're using?

  2. attewd commented on May 20, 2026

    @attewd
    Author

    Hey @damzobridge we tested with v0.4.2 ja v0.4.3-canary.105 and crashed with both.

  3. damzobridge commented on May 21, 2026

    @damzobridge
    Contributor

    Thanks for confirming. Could you try this version and let us know if the crash still occurs:

    https://github.com/rive-app/rive-unity.git?path=package#v0.4.3-canary.102
    
  4. damzobridge commented on May 26, 2026

    @damzobridge
    Contributor

    Ah thanks, included the wrong version in the previous message. Glad it's addressed now.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions