Skip to content

fix: Pyodide Web Worker blob URL leak & parallel run clobber#576

Open
saurabhhhcodes wants to merge 2 commits into
indresh404:mainfrom
saurabhhhcodes:fix/pyodide-worker-leak-568
Open

fix: Pyodide Web Worker blob URL leak & parallel run clobber#576
saurabhhhcodes wants to merge 2 commits into
indresh404:mainfrom
saurabhhhcodes:fix/pyodide-worker-leak-568

Conversation

@saurabhhhcodes

Copy link
Copy Markdown

Closes #568\n\n### Problem\nModule-scope mutable variables (pythonWorker, pythonWorkerUrl, isPythonWorkerReady) leaked blob URLs on re-mount and allowed parallel runPython calls to overwrite each other's onmessage handler.\n\n### Fix\n- Moved worker state into useRef (component-lifecycle-bound)\n- Wrapped getPythonWorker and terminatePythonWorker in useCallback\n- useEffect cleanup properly revokes blob URL and terminates worker\n\n### Files changed\n- src/pages/CodingVerse.jsx

Saurabh Kumar Bajpai added 2 commits June 17, 2026 13:10
Show a browser confirm prompt before unfollowing to prevent
accidental unfollows. Only prompts for unfollow, not follow.
@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ranker-hub Ready Ready Preview, Comment Jun 17, 2026 7:53am

@github-actions github-actions Bot added bug Something isn't working frontend Frontend related changes (HTML/CSS/JS/React) gssoc GirlScript Summer of Code gssoc26 GirlScript Summer of Code 2026 nsoc NSoC NSoC'26 NSoC 2026 pending-review PR is pending review labels Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend Frontend related changes (HTML/CSS/JS/React) gssoc GirlScript Summer of Code gssoc26 GirlScript Summer of Code 2026 nsoc NSoC NSoC'26 NSoC 2026 pending-review PR is pending review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Pyodide worker stored at module scope causes blob URL leaks and stale worker on CodingVerse remount

1 participant