Title: Memory leak in tests with zone.js >= 0.9.0 · Issue #40387 · angular/angular · GitHub
Open Graph Title: Memory leak in tests with zone.js >= 0.9.0 · Issue #40387 · angular/angular
X Title: Memory leak in tests with zone.js >= 0.9.0 · Issue #40387 · angular/angular
Description: 🐞 bug report Affected Package The issue is caused by package: zone.js: 0.9.0 Is this a regression? Yes. The tests didn't cause Chrome to crash. Description When I've upgraded zone.js from 0.8.26 to 0.9.0 or higher, this problem appeared....
Open Graph Description: 🐞 bug report Affected Package The issue is caused by package: zone.js: 0.9.0 Is this a regression? Yes. The tests didn't cause Chrome to crash. Description When I've upgraded zone.js from 0.8.26 to...
X Description: 🐞 bug report Affected Package The issue is caused by package: zone.js: 0.9.0 Is this a regression? Yes. The tests didn't cause Chrome to crash. Description When I've upgraded zone.js from 0...
Opengraph URL: https://github.com/angular/angular/issues/40387
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Memory leak in tests with zone.js \u003e= 0.9.0","articleBody":"\u003c!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅\r\n\r\nOh hi there! 😄\r\n\r\nTo expedite issue processing please search open and closed issues before submitting a new one.\r\nExisting issues often contain information about workarounds, resolution, or progress updates.\r\n\r\n🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅--\u003e\r\n\r\n\r\n# 🐞 bug report\r\n\r\n### Affected Package\r\n\u003c!-- Can you pin-point one or more @angular/* packages as the source of the bug? --\u003e\r\n\u003c!-- ✍️edit: --\u003e The issue is caused by package:\r\n**zone.js: 0.9.0**\r\n\r\n### Is this a regression?\r\n\r\n\u003c!-- Did this behavior use to work in the previous version? --\u003e\r\nYes. The tests didn't cause Chrome to crash.\r\n\r\n### Description\r\nWhen I've upgraded zone.js from 0.8.26 to 0.9.0 or higher, this problem appeared. I have 3000 unit/integration tests. We use heavily dynamic component creation. Our tests currently cannot be executed at once, because zone.js(the timers patch) keeps a reference to tasks created from **setTimeout()** in **tasksByHandleId** in the patch method. When I call **clearTimeout()** in ngOnDestroy() I can see that the task is not removed from tasksByHandleId because it's status is **notScheduled**.\r\n\r\n## 🔬 Minimal Reproduction\r\nhttps://github.com/belchevgb/zonejs-memory-leak\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre\u003e\u003ccode\u003e\r\nAngular CLI: 11.0.6\r\nNode: 14.3.0\r\nOS: win32 x64\r\n\r\nAngular: 11.0.7\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, router\r\nIvy Workspace: Yes\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.1100.6\r\n@angular-devkit/build-angular 0.1100.6\r\n@angular-devkit/core 11.0.6\r\n@angular-devkit/schematics 11.0.6\r\n@angular/cli 11.0.6\r\n@schematics/angular 11.0.6\r\n@schematics/update 0.1100.6\r\nrxjs 6.6.3\r\ntypescript 4.0.5\r\nzone.js 0.10.2\r\n\u003c/code\u003e\u003c/pre\u003e\r\n\r\n**Anything else relevant?**\r\n[SNAPSHOT](https://drive.google.com/file/d/1T7tUuZZPBdiOS1amHcBLWNXWhRNzArKo/view?usp=sharing)\r\n","author":{"url":"https://github.com/belchevgb","@type":"Person","name":"belchevgb"},"datePublished":"2021-01-11T08:13:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/40387/angular/issues/40387"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8a0bb6f3-3b8b-0e72-fa3c-190736ecc7ea |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9BEC:396B3:9F935A:E21B71:6A5A1300 |
| html-safe-nonce | 6be81f79f5796255910655fc63b17ed8ca1beb41348618168c2ab7587f23ef34 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkVDOjM5NkIzOjlGOTM1QTpFMjFCNzE6NkE1QTEzMDAiLCJ2aXNpdG9yX2lkIjoiODEwOTEwMTIxOTYwNjgyNzc3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ef4f935706a737be7d5f0b9b7c23bfd87f71c27f2c44143dc588a8e1b19bd0ed |
| hovercard-subject-tag | issue:783162238 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/40387/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e35b17564aa5b1a582c8361618dc48590679486bab2ce40696e508b4fc246ce9/angular/angular/issues/40387 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e35b17564aa5b1a582c8361618dc48590679486bab2ce40696e508b4fc246ce9/angular/angular/issues/40387 |
| og:image:alt | 🐞 bug report Affected Package The issue is caused by package: zone.js: 0.9.0 Is this a regression? Yes. The tests didn't cause Chrome to crash. Description When I've upgraded zone.js from 0.8.26 to... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | belchevgb |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8c2fe7351e4e987cb8f75e2425a0b895d807779bc4c2d3c312be0a54082219f7 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 501ec24a694e4933bb3d70e768b1461c0def57a2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width