Skip to content

Infinite loop bug. When the developer tools are closed, an infinite loop bug may occur. #2182

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

Closed
nocpp opened this issue Aug 12, 2024 · 1 comment

Comments

@nocpp
Copy link

nocpp commented Aug 12, 2024

Vue devtools version

6.6.3

Link to minimal reproduction

https://github.com/nocpp/devtools-test/blob/main/index.html

Steps to reproduce & screenshots

  1. Run this page by using the http service.
image
  1. Open Google Chrome Developer Tools.
image
  1. Open vue devtools panel.
image
  1. Open Google Chrome Task Manager.
image
  1. Close Google Chrome Developer Tools.
image
  1. Observe the CPU usage of the task manager.
image

What is expected?

CPU usage is normal.

What is actually happening?

The CPU usage on this page exceeds 100%.

System Info

- MacBook Pro (13-inch, M1, 2020)
- macOS Monterey 12.5.1
- Chrome 126.0.6478.185 (arm64)

Any additional comments?

After my debugging, I found that the issue was caused by this submission.

image

Due to the addition of eventListener after shutdown, but the cancellation of eventListener in proxy. js, the sending and listening of events continue to loop indefinitely. Suggest canceling this line.

@nocpp
Copy link
Author

nocpp commented Aug 12, 2024

same as the issues #2103

@nocpp nocpp closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant