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

Exception in HostFunction: Value is undefined, expected a number #2888

Open
1 task
hamdij0maa opened this issue Jan 12, 2025 · 5 comments
Open
1 task

Exception in HostFunction: Value is undefined, expected a number #2888

hamdij0maa opened this issue Jan 12, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@hamdij0maa
Copy link

hamdij0maa commented Jan 12, 2025

Description

<Canvas style={themeStyles.box('absoluteFillCanvas', 'dark')}>


React Native Skia Version

0.76.6

React Native Version

1.10.0

Using New Architecture

  • Enabled

Steps to Reproduce

update to 1.9.0 & 1.10.0 getting this error on both iOS & Android

Snack, Code Example, Screenshot, or Link to Repository

crashing...

@hamdij0maa hamdij0maa added the bug Something isn't working label Jan 12, 2025
@wcandillon
Copy link
Contributor

Can you share a reproducible example?

@hamdij0maa
Copy link
Author

hamdij0maa commented Jan 12, 2025

<Canvas style={{
width:SIZES.screenWidth,
height:SIZES.screenHeight
}}>
            <Image
              x={0}
              opacity={backgroundOpacity}
              y={yValue}
              width={SIZES.screenWidth}
              height={HEIGHT}
              image={image}
              fit="cover"
            />
            <BlurMask blur={30} style="normal" />
          </Canvas>



=> crash happens when using BlurMask

( repro Example wip ....).

@wcandillon
Copy link
Contributor

any chance you could share the example a above a standalone reproducible example? I would be so much faster for me to fix it. Right now there are too many variables on what the issue could be (based on the error message it looks like at some point backgroundOpacity or HEIGHT is undefined and newer versions of Skia throw an error (justifiably) where it wouldn't in previous version.

@hamdij0maa
Copy link
Author

yes, ( wip reproducible ex)
once rendering it throws the error btw

@liaxoo
Copy link

liaxoo commented Jan 17, 2025

I had the same issue, and updating Skia worked form me. Here are the versions I used:

"react-native-reanimated": "~3.10.1",
"@shopify/react-native-skia": "1.2.3"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants