René's URL Explorer Experiment


Title: Worker resourceLimits are not enforced while DevTools has the Debugger domain enabled · Issue #2107 · NativeScript/android · GitHub

Open Graph Title: Worker resourceLimits are not enforced while DevTools has the Debugger domain enabled · Issue #2107 · NativeScript/android

X Title: Worker resourceLimits are not enforced while DevTools has the Debugger domain enabled · Issue #2107 · NativeScript/android

Description: Summary In a debug build, once a DevTools session enables the Debugger domain on a worker target, that worker's resourceLimits stop being enforced and the parent never receives the heap-limit error. Why WorkerWrapper::OnNearHeapLimit is ...

Open Graph Description: Summary In a debug build, once a DevTools session enables the Debugger domain on a worker target, that worker's resourceLimits stop being enforced and the parent never receives the heap-limit error...

X Description: Summary In a debug build, once a DevTools session enables the Debugger domain on a worker target, that worker's resourceLimits stop being enforced and the parent never receives the heap-limit e...

Opengraph URL: https://github.com/NativeScript/android/issues/2107

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Worker resourceLimits are not enforced while DevTools has the Debugger domain enabled","articleBody":"### Summary\n\nIn a debug build, once a DevTools session enables the `Debugger` domain on a worker target, that worker's `resourceLimits` stop being enforced and the parent never receives the heap-limit error.\n\n### Why\n\n`WorkerWrapper::OnNearHeapLimit` is registered with `AddNearHeapLimitCallback` in `PrepareV8Runtime`. It reports `ERR_WORKER_OUT_OF_MEMORY` to the parent and terminates the worker. V8 only invokes the most recently added near-heap-limit callback (`Heap::InvokeNearHeapLimitCallback` calls `near_heap_limit_callbacks_.back()`, `src/heap/heap.cc`). `V8Debugger::enable` adds its own callback (`src/inspector/v8-debugger.cc`), which shadows the worker's for as long as the Debugger domain stays enabled. That callback:\n\n- schedules an OOM break (`BreakReason::kOOM`), and\n- returns `HeapLimitForDebugging(initial_heap_limit)`, which raises the limit well past the configured `maxOldGenerationSizeMb`.\n\nSo while a debugger is attached to the worker, the worker either pauses on OOM in DevTools or keeps running above its cap. Either way `OnNearHeapLimit` never runs: the parent gets no `error` event, `terminate`/`exit` never follow, and code that relies on `resourceLimits` to contain a runaway worker behaves differently under the debugger than without it. Detaching restores the worker's callback (`V8Debugger::disable` removes the debugger's).\n\nRelease builds are unaffected (no inspector), and so are debug builds with no DevTools session, or with one that never enables `Debugger` on the worker target.\n\n### Expected\n\nPausing on OOM while debugging is reasonable and matches Chrome. But after the user resumes (or if the debugger's raised limit is also exhausted), the worker should still be reported and terminated as it is without a debugger. Possible directions:\n\n- Re-register `OnNearHeapLimit` after the worker's inspector session enables `Debugger`, so it stays last, and decide explicitly whether to break first.\n- Or chain: keep the debugger's break, but have the worker's handler run on resume, or once the debug allowance is exhausted.\n\n### Repro (sketch)\n\n1. Debug build of an app with a worker created with `resourceLimits: { maxOldGenerationSizeMb: 16 }` whose script allocates until it runs out of memory.\n2. Without DevTools: the parent gets the heap-limit `error`, and the worker ends.\n3. Attach Chrome DevTools to the worker target (which enables `Debugger`) and rerun: no `error` reaches the parent. The worker pauses on OOM, or, after resuming, keeps allocating past 16 MB.\n\nFound while reviewing #2070.\n","author":{"url":"https://github.com/edusperoni","@type":"Person","name":"edusperoni"},"datePublished":"2026-11-11T22:00:52Z","url":"https://github.com/NativeScript/android/issues/2107"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f85ee338-ed89-2c63-a958-8aa97118d230
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9968:36A3E:13F3C83:1A9D53B:6B012ED1
html-safe-nonce76f5ddcb8bd5027c8ea5d04bd11a404b7db2410c1b75eb4eca19d076560f2ab5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTY4OjM2QTNFOjEzRjNDODM6MUE5RDUzQjo2QjAxMkVEMSIsInZpc2l0b3JfaWQiOiI1MzMzNDY4MDY0NzI4MDM1MDI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb30a14271372b5581484d537212dbb4d9a6df09b0dcdc6fa92246502fca77f0c
hovercard-subject-tagissue:6337921472
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/android/2107/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b77ceb25061759618a3d620d97d69fe10cd438bc1c660bb662ab9edf8b52cbbd/NativeScript/android/issues/2107
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b77ceb25061759618a3d620d97d69fe10cd438bc1c660bb662ab9edf8b52cbbd/NativeScript/android/issues/2107
og:image:altSummary In a debug build, once a DevTools session enables the Debugger domain on a worker target, that worker's resourceLimits stop being enforced and the parent never receives the heap-limit error...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameedusperoni
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/android git https://github.com/NativeScript/android.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id29137950
octolytics-dimension-repository_nwoNativeScript/android
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id29137950
octolytics-dimension-repository_network_root_nwoNativeScript/android
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NativeScript/android/issues/2107#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fissues%2F2107
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fissues%2F2107
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2Fandroid
Reloadhttps://github.com/NativeScript/android/issues/2107
Reloadhttps://github.com/NativeScript/android/issues/2107
Reloadhttps://github.com/NativeScript/android/issues/2107
NativeScripthttps://github.com/NativeScript
androidhttps://github.com/NativeScript/android
Codehttps://github.com/NativeScript/android
Issues106 (106)https://github.com/NativeScript/android/issues
Pull requests24 (24)https://github.com/NativeScript/android/pulls
Actionshttps://github.com/NativeScript/android/actions
Projectshttps://github.com/NativeScript/android/projects
Wikihttps://github.com/NativeScript/android/wiki
Security and qualityhttps://github.com/NativeScript/android/security
Insightshttps://github.com/NativeScript/android/insights
https://github.com/NativeScript/android
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/android/issues/2107
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/android/issues/2107
Worker resourceLimits are not enforced while DevTools has the Debugger domain enabledhttps://github.com/NativeScript/android/issues/2107#top
https://github.com/edusperoni
edusperonihttps://github.com/edusperoni
on Nov 11, 2026https://github.com/NativeScript/android/issues/2107#issue-6337921472
#2070https://github.com/NativeScript/android/pull/2070
Sign up for freehttps://github.com/signup?return_to=https://github.com/NativeScript/android/issues/2107
Sign in to commenthttps://github.com/login?return_to=https://github.com/NativeScript/android/issues/2107
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.