react-native-skia: Could not calculate distance when resolving text path

Description

We are using Skia to build an instrument panel for boats, which needs to be updated at 5Hz. At the top left corner of the attached screenshot, you can see an instrument that contains several curved texts made using the TextPath component.

At the moment we are using version 0.1.137 and it works fine (with known issues for that version, but with no crashes). I’m trying to upgrade the version, as I see many new features and improvements, but after 10-15min of activity the app crashes in both iOS and Android with this error Could not calculate distance when resolving text path coming from com.shopify.reactnative.skia.PlatformContext$2 in run at line 73.

Before the crash, everything works as expected. Any clue of what can be the cause?

Version

0.176

Steps to reproduce

Not able to intentionally reproduce it, but what we have are four TextPath with string values that update every 200ms.

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

Screenshot_20230308-183016_Orca

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (9 by maintainers)

Most upvoted comments

Hi @orca-adria I’m getting this issue as well with version 1.3.10 for both Android and iOS. Do you have any workaround?

Image