Shopify / react-native-skia

High-performance React Native Graphics using Skia

Home Page:https://shopify.github.io/react-native-skia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android crash: SIGSEGV

jhta opened this issue · comments

Description

Hi,
Recently, we've noticed a growing number of crashes occurring on Android devices following the implementation of @shopify/react-native-skia into our latest versions.

The error appears to occur randomly and is not reproducible in our development environment; it's solely manifesting in production. While the impact has been limited to a small portion of our user base thus far, it's becoming more prevalent as we expand the usage of Skia in various flows.

I really appreciate any help you can provide, thanks in advance! :)

Version

1.2.0

Steps to reproduce

We haven't been able to reproduce in dev, only production. Our Crashlytics data indicates that these crashes occur sporadically across all screens utilizing Skia.

Snack, code example, screenshot, or link to a repository

Skia API used:

For now, we have used only a few components: Canvas, Text, Group, Image along with react-native-reanimated to animate the text values.

packages versions:

"react-native": "0.72.12",
"react-native-reanimated": "3.8.1" 

Stack Trace

Crashed: Thread: SIGSEGV  0x0000000000000000
#00 pc 0x27e46c librnskia.so (BuildId: 97745ca751a2db562763668a8e353bea7be8a5c3)
#01 pc 0x2852d0 librnskia.so (BuildId: 97745ca751a2db562763668a8e353bea7be8a5c3)
#02 pc 0x2852d0 librnskia.so (BuildId: 97745ca751a2db562763668a8e353bea7be8a5c3)
#03 pc 0x2d73d0 librnskia.so (BuildId: 97745ca751a2db562763668a8e353bea7be8a5c3)
#04 pc 0x2690dc librnskia.so (BuildId: 97745ca751a2db562763668a8e353bea7be8a5c3)
#05 pc 0x268840 librnskia.so (BuildId: 97745ca751a2db562763668a8e353bea7be8a5c3)
#06 pc 0x1eaa0 libfbjni.so (BuildId: 27496b9e5551bff5c79496b936b663bf8868c68b)
#07 pc 0x76bfc25714
#08 pc 0x5b0c7c libart.so (BuildId: 735f12f804f88d62a2cb437261076ff7)
#09 pc 0x5ba654 libart.so (BuildId: 735f12f804f88d62a2cb437261076ff7)
#10 pc 0x71499bdc
#11 pc 0x5b0c7c libart.so (BuildId: 735f12f804f88d62a2cb437261076ff7)
#12 pc 0x5ba6b0 libart.so (BuildId: 735f12f804f88d62a2cb437261076ff7)
#13 pc 0x33f4e4 libart.so (BuildId: 735f12f804f88d62a2cb437261076ff7)
#14 pc 0x71499dd0
#15 pc 0xc15ffc libart.so (BuildId: 735f12f804f88d62a2cb437261076ff7)
#16 pc 0x7146e03c
#17 pc 0x712b0f98
#18 pc 0x33eda4 libart.so (BuildId: 735f12f804f88d62a2cb437261076ff7)
#19 pc 0x239d54 libart.so (BuildId: 735f12f804f88d62a2cb437261076ff7)
#20 pc 0x490e4 libc.so (BuildId: 55a7515345951d438fd16e74b171760b)
#21 pc 0x53a120 libart.so (BuildId: 735f12f804f88d62a2cb437261076ff7)
#22 pc 0x53a1b0 libart.so (BuildId: 735f12f804f88d62a2cb437261076ff7)
#23 pc 0xcde4c libc.so (BuildId: 55a7515345951d438fd16e74b171760b)
#24 pc 0xf5298 libc.so (BuildId: 55a7515345951d438fd16e74b171760b)
#25 pc 0x321ffc libc.so (BuildId: 55a7515345951d438fd16e74b171760b)
#26 pc 0x8ebdc libc.so (BuildId: 55a7515345951d438fd16e74b171760b)
#27 pc 0xf51c4 libc.so (BuildId: 55a7515345951d438fd16e74b171760b)
#28 pc 0x13a4fc ld-android.so (BuildId: 7994ec2758f64885ff6897998503815c)
#29 pc 0x13a7fc ld-android.so (BuildId: 7994ec2758f64885ff6897998503815c)
#30 pc 0x539b6c libart.so (BuildId: 735f12f804f88d62a2cb437261076ff7)

Found out than the @shopify/react-native-skia version used on the app releases was 0.1.196, I'll let you know the results upgrading to 1.2.3