-
Notifications
You must be signed in to change notification settings - Fork 416
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
Error when using canvaskit on web - Cannot read properties of null (reading 'rangeMin') #1629
Comments
This is very strange. Which browser are you using? Is there a small reproducible example (as a small repository maybe) you could share with us? |
Hey @wcandillon, thanks for your reply. I'm using Google Chrome. How would I verify the wasm version matches the canvaskit.js file? I've also experimented with a few different scenarios and gotten mixed results. Let me know if you have any recommendations for further tests I can run or how I should proceed.
This method seems to randomly cause the following error, but does work for the most part (I was also experiencing this error before I upgraded). I thought that upgrading skia and loading the wasm locally may help alleviate the issue, but that may be wishful thinking.
From other issues posted on github, it sounds like this could be due to a mismatch in the wasm file, but this is a brand new repo and should have the latest wasm file. |
|
Is there any way to verify which version is being loaded by each? The reproducible example calls |
I'm closing this issue as it seems to be related to the wasm file not matching. |
Hey @wcandillon, I encountered the same error and created a repository to reproduce it. I tried the solution in this commit, but the error persisted. I have created a new issue and included all the necessary steps to reproduce it. |
Description
On Mac M1, I'm encountering a very strange error when running the web version of my react-native application. Canvaskit-wasm seems to be erring after successfully loading and showing the Skia SVG I created.
Important versions:
Other information that may be relevant:
path
andfs
, I followed these instructions to modify thecanvaskit-wasm
node_module (this seemed to resolve the original errors I was encountering)The error is...
I'm loading Skia by doing the following...
After doing additional testing, it seems like I get the error even if I just render the
<Canvas/>
in the actual component (I normally use various Groups and Paths...The strangest part is that it looks like my Skia component loads correctly for a second and then crashes with the above error. Afterwards, I can only see the frowny face in the UI.
I will try to create a reproducible example, but thought I'd post my thoughts first in case the answer is obvious.
Version
0.1.193
Steps to reproduce
Create a basic import with
<WithSkiaWeb/>
and<Canvas/>
Try to run the application on web (may only happen on M1 Mac's?)
Snack, code example, screenshot, or link to a repository
Working version (a second before crash)
Erring version
The text was updated successfully, but these errors were encountered: