-
Notifications
You must be signed in to change notification settings - Fork 58
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
JavascriptException: TypeError: Cannot read property 'attributes' of undefined #6084
Comments
I've looked into this a bit, and used source maps from
I'm unsure whether this mapped trace is accurate, since some "leaps" seem to be made between some parts of the call stack, but a few sections do appear to line up, suggesting that it isn't an entirely mis-matched symbolication (maybe it is just a bit sparse, due to transpilation, etc. 🤷♂️ ). I've also looked at the code paths around this trace:
Which may provide a clue that this could have something to do with raw-handling and / or the inserter. |
The first of the two stack traces from the Sentry report looks quite different, even though Sentry groups it together under the same error. The trace does not point to specific first-party code, but third-party code related to pressability. Gutenberg only uses The previously shared
|
I am unable to reproduce this, but noting a few things in the breadcrumbs:
|
Thank you for the additional info and trace David 👍 .
This clue might correlate with the raw-handling code paths that turned up in the other trace... perhaps somehow something goes wrong while the dropped html content is being parsed 🤔 - it could be something that is particular to the content, so maybe this makes it tricky to reproduce. This is just a theory / hunch, though, so please take it with a grain of salt. 🤷♂️ |
It seems like Sentry pretty consistently erroneously groups multiple React Native crashes. I symbolicated one of the more recent stack traces for JETPACK-ANDROID-AK2 and it mirrors stack traces found in JETPACK-ANDROID-7XY, which is addressed by @geriux's WordPress/gutenberg#53745 and an associated project issue.
Additionally, JETPACK-ANDROID-7XY is attached to wordpress-mobile/WordPress-Android#18750 which focuses on Reanimated and All that to say — the Sentry reports/groupings are very misleading. Reports that appear to be "new" seem to often be pre-existing and likely grouped with unrelated stack traces. It makes it quite difficult to track them accurately. 😕 It seems we need to focus on specific stack traces, rather than the top-level grouping Sentry is presenting. |
Regarding the original issue referenced in this GitHub issue ( Extracted from Sentry event:
I tried to reproduce it by generating an HTML page with the above code. However, when I paste it into the editor, it does not pass the same HTML:
I'm wondering how the user managed to copy that piece of HTML 🤔 . |
Given there are references to |
I also tried using the Classic block ( |
Hm.. one possibility that comes to mind is the browser (copying content from mobile web). Any web-enabled block should be enabled there, so I wonder if that could help in reproducing it 🤔 |
Heads up that I found out the steps to reproduce it and added them to the PR's description. |
Sentry Issue: JETPACK-ANDROID-AK2
How to reproduce it
Stack trace
The text was updated successfully, but these errors were encountered: