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

vue3 & sentry/vue Maximum call stack size exceeded #5419

Closed
3 tasks done
CNlitai opened this issue Jul 15, 2022 · 2 comments
Closed
3 tasks done

vue3 & sentry/vue Maximum call stack size exceeded #5419

CNlitai opened this issue Jul 15, 2022 · 2 comments

Comments

@CNlitai
Copy link

CNlitai commented Jul 15, 2022

Is there an existing issue for this?

How do you use Sentry?

Self-hosted/on-premise

Which package are you using?

@sentry/vue

SDK Version

"@sentry/vue": "^7.6.0",

Framework Version

vue 3.2.26

Link to Sentry event

No response

Steps to Reproduce

This looks a bit like the problem reported in #2470 #5172, when I initialize sentry in main.ts it triggers a serious stack overflow error
image
My project routing is a dynamic routing method provided by a base public library (inside the company), may this part conflict with sentry?

Expected Result

works fine

Actual Result

image

@lforst
Copy link
Member

lforst commented Jul 15, 2022

Hi @CNlitai, thanks for writing in! Can you provide a little more information about what we're looking at here? Right now, all we know is you have a Maximum call stack size exceeded error and you run a Vue app.

For errors like these, it's usually very helpful if users provide a small and simple reproduction app so we can figure out what is causing this. A screenshot of the stack trace connected to this error would also be helpful.

As for your question about whether your dynamic routing may conflict with Sentry: Maybe, we don't know for sure. We'd have to take a look at the code.

If you can, please provide a reproduction example, otherwise here is the code in the SDK where we're instrumenting the Vue router: https://github.com/getsentry/sentry-javascript/blob/master/packages/vue/src/router.ts

@CNlitai
Copy link
Author

CNlitai commented Jul 19, 2022

Thanks your reply, I located the problem in this code in the project, but I don't know why a stack overflow error occurs after accessing sentry (it can run normally when sentry is not turned on).
image
This method is bound in the template to achieve internationalization (currently this project has not done it, so here Reflect.get() gets an undefined)
image
Currently I can solve this problem by passing null to the $t parameter of the _tName method. but i don't know why

@CNlitai CNlitai closed this as completed Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants