-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
TypeError: null is not an object (evaluating 'H.scale') #7705
Comments
@ShaMan123 I'm very confident we don't have animations in our code. Never we call Also, what's this runningAnimation module? :) For me it feels like some race-condition cases. As i've described this in the ticket, it's not even properly reproducable, but i'm confident it occurs, as sentry reports us this. |
It's a store of all current running animations. We added that to v4.6+ so I thought you were hitting something there |
This issue was in our sentry before upgrading to 4.6, so that's a no. |
What is sentry? |
Sentry is a tool that we integrate with our app and it forwards all client-side errors to an external service, where we can check previous interactions/other user data before the encountered error https://sentry.io/welcome/ can check more about it here |
So is safari related, mobile. The safari desktop is unexplained to me. Do you have any stats of what is going on on the canvas before that happen? You could try to remove the cache of simple objects and see if that helps to reduce the frequency of the error |
I updated the app with 5.2.1, and so far I stopped seeing these errors (added another dispose call for the canvas as well). I'll continue observing this, besides this one, I'm also getting error of |
i understand reproducing those bugs outside the context of your app is hard, but is also necessary to understand what is going on. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
#7885 might solve this |
We're still seeing this as of fabric 5.2.1. Our canvas code goes like this:
It seems that
can we just add a simple check for that? or is this a symptom of something more troublesome? |
@trevorweng did you try the following?
something more troublesome for sure |
@ShaMan123 will there be a new release with that fix? or should I patch-package our code? |
Of course there will be a new release but you know how time frames are.... |
I am not sure if this is related to it, but we are seeing a weird |
Yes it is related. The mentioned PR fixes the race condition |
@ShaMan123 The PR fixes a race condition in the |
It depends on your logic... I'm guessing you are using react. |
@ShaMan123 would it be possible to release a 5.2.2 with the dispose fix? |
@trevorweng I am not in charge of releasing. |
@andrejslogins how to solve |
TypeError: null is not an object (evaluating 'H.scale')
error is thrown.variable
H
based on stacktrace seems to becontext
, likely changed due to doing a build and minimizing the code.Version
5.1.0
Information about environment
Browser
Mobile Safari 15.3
Chrome Mobile iOS 98.0.4758
Safari 15.0 (desktop)
Steps To Reproduce
No clear steps to reproduce at this point, though this has been popping up on sentry for my project's users.
Error Message & Stack Trace
Expected Behavior
Error should not be thrown and
context.scale
should be called without issuesActual Behavior
In some rare cases
context.scale
is undefinedThe text was updated successfully, but these errors were encountered: