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

Large notebook trigger very many leak warnings #211112

Open
jrieken opened this issue Apr 23, 2024 · 4 comments
Open

Large notebook trigger very many leak warnings #211112

jrieken opened this issue Apr 23, 2024 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug notebook-toc-outline
Milestone

Comments

@jrieken
Copy link
Member

jrieken commented Apr 23, 2024

Testing #210961

slow.ipynb.txt

  • open dev tools console
  • open the notebook from above
  • 😱 notice leak warnings from various places

This is critical: REFUSES to accept new listeners because it exceeded its threshold by far because it means a listener will never be used, meaning a feature is likely not working.

This seems to be a widespread misconception and it seems each cell listens by itself. So, more cells, more listener, leak warning and refusal to accept more listeners. Generally, listener should be used sparingly, e.g instead of each cell being a listener there should be one per notebook which dispatches onto cell.

@amunger
Copy link
Contributor

amunger commented Apr 23, 2024

@DonJayamanne DonJayamanne removed their assignment Apr 23, 2024
@vscodenpa vscodenpa added the unreleased Patch has not yet been released in VS Code Insiders label Apr 24, 2024
@vscodenpa vscodenpa added this to the April 2024 milestone Apr 24, 2024
@aeschli aeschli reopened this Apr 24, 2024
@vscodenpa vscodenpa removed the unreleased Patch has not yet been released in VS Code Insiders label Apr 24, 2024
@amunger amunger removed this from the April 2024 milestone Apr 24, 2024
@rebornix rebornix added this to the May 2024 milestone Apr 26, 2024
@Yoyokrazy Yoyokrazy added bug Issue identified by VS Code Team member as probable bug notebook-toc-outline labels Apr 29, 2024
@amunger amunger modified the milestones: May 2024, June 2024 May 29, 2024
@amunger amunger modified the milestones: June 2024, July 2024 Jun 24, 2024
@rebornix rebornix modified the milestones: July 2024, August 2024 Jul 23, 2024
@amunger amunger modified the milestones: August 2024, September 2024 Aug 27, 2024
@amunger amunger modified the milestones: September 2024, October 2024 Sep 23, 2024
@amunger
Copy link
Contributor

amunger commented Sep 23, 2024

need to check if these are still happening, I think I've taken care of most cases

@jrieken
Copy link
Member Author

jrieken commented Sep 25, 2024

Just came across a large notebook and there is still plenty of leak warnings. Just scrolling in the notebook prints tons for tom. This issue should really be prioritised because it can slow down all of vscode. Also, note that there is much related error telemetry like #226057

@rebornix
Copy link
Member

I think we can see if this is the same as #211105 which renders too many toolbars.

@amunger amunger modified the milestones: October 2024, November 2024 Oct 23, 2024
@rebornix rebornix modified the milestones: November 2024, On Deck Dec 3, 2024
@rebornix rebornix removed their assignment Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug notebook-toc-outline
Projects
None yet
Development

No branches or pull requests

7 participants