-
-
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
null is not an object (this._cacheContext.translate / this._cacheContext.setTransform) #7693
Comments
Added a PR #7694 |
Do you now when it happens? Is it production env or dev? |
This happens on production @ShaMan123 , we're running an angular app with rxjs, and this supposedly happens for us when initialising. As for |
I'm happy to help out with other issues that we're also receiving for production on sentry, will likely create issues for those as well. |
I am not familiar with those frameworks
בתאריך יום ו׳, 18 בפבר׳ 2022, 10:48, מאת Andrejs ***@***.***
…:
I'm happy to help out with other issues that we're also receiving for
production on sentry, will likely create issues for those as well.
—
Reply to this email directly, view it on GitHub
<#7693 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIGAW4JKBQJWF2TK6TLCWVLU3YBVNANCNFSM5OVDT6VQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I don't see a reason why they should be related to the internal issue though. Basically rxjs is letting us use observables to calculate values - angular is not really doing anything else than rendering the It's not like I'm explicitly trying to access |
i m not sure how the error happens, but since we use both canvas and context, adding the check for both is fine. |
Thank you! |
My apologies, writing the first issue for fabric.js (as well as 2nd time diving into this codebase internally) that is rather hard to reproduce.
I'm currently investigating this and plan to create a PR for it unless somebody has some cool insight that could help.
Version
5.1.0
Information about environment:
Browser:
Which browsers?
Chrome 95 (Both macOS and Windows),
Mobile safari 15.3
Would be safe to assume other browsers as well
Summary
_updateCacheCanvas
in some cases gets called without having_cacheContext
(
src/shapes/object.class.js
)This has not happened for me personally (not on my device), but this is one of the biggest things
sentry
caches for some of the users in one of the projects I'm part of.Error Message & Stack Trace
Error for
.translate
Error for
.setTransform
Expected Behavior
Error does not get thrown
Actual Behavior
Error gets thrown
The text was updated successfully, but these errors were encountered: