Shopify / react-native-skia

High-performance React Native Graphics using Skia
https://shopify.github.io/react-native-skia
MIT License
6.98k stars 452 forks source link

Random build error ld: error: undefined symbol: RNJsi::JsiHostObject::JsiHostObject() #2708

Open redbluenat opened 3 weeks ago

redbluenat commented 3 weeks ago

Description

Issue I'm experiencing a recurring Android build error that appears whenever I add or update a dependency in package.json. The error sometimes disappears after multiple attempts but is otherwise persistent.

Environment @shopify/react-native-skia: 1.4.2 react-native: 0.73.9 "react-native-reanimated": "3.14.0", "react-native-skottie": "2.1.4",

buildToolsVersion = "34.0.0" minSdkVersion = 26 compileSdkVersion = 34 targetSdkVersion = 34

Error Message

ld: error: undefined symbol: RNJsi::JsiHostObject::JsiHostObject()
>>> referenced by JsiSkHostObjects.h:23 
CMakeFiles

Version

1.4.2

Steps to reproduce

Steps to Reproduce Add or update any dependency in package.json. Run the Android build in the release mode Observe the error output

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

Image

wcandillon commented 3 weeks ago

@redbluenat Thank you for this report. The instructions provided are unfortunately not enough for us to reproduce the issue. Any chance you could share a small repository that contains a react native app where we could reproduce the compile error on?

redbluenat commented 3 weeks ago

This seems related to caching, as it occurs locally but not in the pipeline, which makes it challenging to create the repository