Desktop Safari crash (RangeError in makeRequest) reproduces on one specific Mac only, not others - related to #133?
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 40/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, typescript
Direzione di ricerca
Examine the shinylive.js file, particularly the makeRequest function and Service Worker registration logic. Look at the virtual routing path handling and the error stack trace from Safari's Web Inspector. Compare with issue #133 to see if it's the same root cause. Test on the specific failing Mac to gather more diagnostics, such as Service Worker lifecycle events and network interception failures.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
On one specific Mac (desktop Safari, latest macOS/Safari), a shinylive-exported app deployed to GitHub Pages consistently fails with an unhandled RangeError: Maximum call stack size exceeded thrown inside makeRequest in shinylive.js. This looks like the same failure class as #133 ("Uncaught error: ServiceWorker controller not found!"), but with a twist: it reproduces reliably on this one Mac across every mitigation I tried, while the same deployed app and same link work correctly on other machines (another Mac, two different iPhones) running Safari/WebKit.
Environment
- shinylive R package: tested on both 0.5.0 (assets v0.10.12) and the GitHub dev version 0.5.0.9000 (assets v0.10.15) — same crash on both.
- Deployed via shinylive::export() to GitHub Pages (static hosting, no backend).
- Live example: https://alvarolf90.github.io/estudo_havayanas/
- Failing machine: a specific Mac, macOS updated all the way to macOS 27 (latest available) with matching latest Safari, specifically to rule out a stale-OS cause.
- Working machines with the same app/link: a different Mac (same household, different Safari install) — works correctly; the failing machine's own owner's iPhone Safari — works correctly; a second person's iPhone Safari — works correctly.
Steps to reproduce (on the affected Mac only)
-
Open https://alvarolf90.github.io/estudo_havayanas/ (or any URL with a #seq=... hash) in Safari on the affected Mac.
-
In a normal tab: the page shows a literal "404 File not found" response rendered inside the shinylive iframe.
-
In a private/incognito tab: the page just stays blank/white, no visible error in the UI.
-
Safari Web Inspector console (both cases) shows the Service Worker registering, then:
Unhandled Promise Rejection: RangeError: Maximum call stack size exceeded
thrown from makeRequest in shinylive.js, following a request to the app's virtual routing path (app_/...) that was not intercepted by the Service Worker and fell through to a real network request (which 404s, since that path doesn't exist as a static file).
What I've ruled out
- Stale/cached Service Worker — fully cleared Safari's site data for the domain and retested: same crash.
- shinylive assets version — upgraded from 0.5.0 (assets v0.10.12) to the GitHub dev build 0.5.0.9000 (assets v0.10.15), redeployed, retested: same crash. Checked the changelog; no release through 0.5.0 mentions a Safari/WebKit/Service-Worker-related fix.
- Payload size / storage quota — checked the exported app.json size across the app's whole commit history; it's been flat around ~10 MB the entire time this feature has existed, well under any realistic quota, and the failure mode (a direct 404 on an internal route) doesn't match a quota-exceeded symptom anyway.
- Outdated macOS/Safari build — updated the affected Mac all the way to macOS 27 (latest available at the time) and retested after a restart: same crash.
- Safari extensions/content blockers — checked Safari's Extensions preferences on the affected Mac; only an inactive password-manager extension (Bitwarden) is installed, nothing that should intercept network/SW behavior.
- Corrupted per-origin Service Worker storage — with Full Disk Access granted to Terminal, inspected the actual on-disk per-origin WebKit storage (~/Library/Containers/com.apple.Safari/Data/Library/WebKit/WebsiteData/Default//) for the affected origin. This turned out to be exactly what Safari's own "Remove Website Data" UI feature already clears (already tried in the first bullet above), so there was nothing additional to manually delete.
What works
Same exact app/link on: a different Mac's Safari (same network/household), and two different iPhones' Safari (tested independently by two different people) — all work correctly, no crash.
Question
Given this reproduces consistently on one specific desktop Safari installation but not on other Macs or any tested iPhone (all WebKit), is this expected to be the same underlying cause as #133, or could there be a separate, more Safari-desktop-specific trigger? Any known workaround, or additional diagnostics I could gather from the affected machine, would be very welcome — happy to test anything.
- Lingua principale
- TypeScript
- Stelle
- 253
- Fork
- 25
- Merge medio
- 6g 22h
- PR unite (30g)
- 13
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di posit-dev/shinylive
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
dependencies enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
I maintainer di solito rispondono entro 1 giorno
-
Bundled rlang is out-of-dateAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
posit-dev/shinylive#221 · 8 commenti · 2 reazioni ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di posit-dev/shinylive
Issue simili
-
triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
novuhq/novu#13613 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement from-app needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
nightly-labs/openbot#23943 ·
I maintainer di solito rispondono entro 1 giorno
-
comp/desktop desktop/chat P3 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
NousResearch/hermes-agent#164451 ·
I maintainer di solito rispondono entro 1 giorno
-
shortkeys-2188:ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
crittermike/shortkeys#1121 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
Doist/todoist-cli#742 ·