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

DevTools crash somewhere in timelineEventAdded #728

Open
jods4 opened this issue Dec 6, 2024 · 2 comments
Open

DevTools crash somewhere in timelineEventAdded #728

jods4 opened this issue Dec 6, 2024 · 2 comments
Labels
need reproduction Reproduction is needed

Comments

@jods4
Copy link

jods4 commented Dec 6, 2024

After I activate the Vue Devtools by opening the Vue tab once, I sometimes get JS crashes because Devtools code tries to dereference a null object.

Here's what I so far, hopefully you'll be able to take an educated guess on what the condition that triggers the bug is.

From my experience so far, it could be linked to @intlify/unplugin-vue-i18n but I am not 100% sure. Maybe just a coincidence.

The problem occurs in a hook for timelineEventAdded. Here's the call stack (obfuscated though).
image

Here's the crashing code, with a little bit of context so hopefully you can locate the un-minified source:
image

The problem is that e is a plain object. You can see its fields in the screenshot above, but it has no constructor. So e.constructor.name fails with Cannot read properties of undefined (reading: 'name').

@alexzhang1030
Copy link
Member

Hi, can you provide a minimal reproduction? Thanks!

@alexzhang1030 alexzhang1030 added the need reproduction Reproduction is needed label Dec 20, 2024
@jods4
Copy link
Author

jods4 commented Dec 20, 2024

hi @alexzhang1030 .

I'm sorry, this is a very large project and I can't easily extract a minimal repro.
I was hopeful that maybe you could make a guess based on call stack and error details, but I know it may not be enough.

If there's nothing actionable in this issue, just close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need reproduction Reproduction is needed
Projects
None yet
Development

No branches or pull requests

2 participants