Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphics corruption with rive renderer on some Android devices #279

Open
evelant opened this issue Nov 27, 2024 · 4 comments
Open

Graphics corruption with rive renderer on some Android devices #279

evelant opened this issue Nov 27, 2024 · 4 comments

Comments

@evelant
Copy link

evelant commented Nov 27, 2024

Description

Some users are reporting corrupted graphics after updating to rive-react-native 8.1.0 and using the rive renderer.

Provide a Repro

Unknown -- Cannot reproduce locally. This issue appears to only happen on some devices and not all the time.

Expected behavior

No graphical artifacts

Screenshots

<-- If applicable, add screenshots to help explain your problem. -->
Reported from a user on a Galaxy Tab A8

image

Device & Versions (please complete the following information)

  • Device Galaxy Tab A8
  • OS: android 14
  • rive-react-native: 8.1.0

Additional context

<-- Add any other context about the problem here. -->

@leemhenson
Copy link

we get occasional reports from users about random shapes appearing. it's not reproducible for us either, but it's definitely not a one-off.

@evelant
Copy link
Author

evelant commented Feb 6, 2025

This is still happening @HayesGordon . I just re-enabled the rive renderer to avoid potential problems when using react-native-skia and immediately got reports from users about this. Filed a support ticket at https://rive.atlassian.net/servicedesk/customer/portal/3/RIV-8273

@evelant
Copy link
Author

evelant commented Feb 6, 2025

@HayesGordon I got lucky and noticed something potentially very important.

I think this may be related to the Rive renderer running on Mali GPUs. The screenshot above is from a SM-G965F (Samsung Galaxy S9+ European version) which uses the Exynos 9810 cpu and Mali-G72 gpu. I tested the same release of my app on an SM-G965U (Samsung Galaxy S9+ USA version) which uses a Qualcomm Snapdragon 845 cpu and Adreno 630 gpu. The issue does not reproduce on my test phone.

This indicates to me that there is a bug either in the Rive Android sdk or in Mali gpus causing this graphics corruption. Hopefully this is a useful clue and the Rive renderer can work around this.

@evelant
Copy link
Author

evelant commented Feb 6, 2025

I found a little bit of information about some opengl graphics corruption problems on mali g71 and g72 here, not sure if it's all that useful: https://community.arm.com/support-forums/f/mobile-graphics-and-gaming-forum/51896/resource-corruption-with-secure-contexts-on-mali-g71-and-g72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants