-
Notifications
You must be signed in to change notification settings - Fork 284
Description
Description
The LightPanda browser panics and crashes with a "reached unreachable code" error when attempting to load
https://www.nytimes.com. The crash appears to be triggered by an InvalidURI exception within the browser's
JavaScript engine while parsing a script from static01.nyt.com.
Impact
The panic causes the lightpanda process to hang indefinitely.
- When run from the command line, the shell hangs and requires a ^C (Ctrl+C) to terminate the process and
return to the prompt. - When run as a subprocess by the Magg MCP proxy server, the lp browser crash causes the Magg server to also
hang. A ^C in the Magg terminal is required, which then terminates both the Magg server and the hung
lightpanda process.
Steps to Reproduce
- Launch the LightPanda browser from the command line:
- lightpanda https://www.nytimes.com
- The browser process will crash and the terminal will hang.
Expected Behavior
The page should either load successfully or fail gracefully without crashing or hanging the browser process.
Actual Behavior
The browser process panics and hangs, requiring a manual ^C to terminate.
System Information
- Operating System: macOS 26.0.1 (Tahoe)
- Architecture: aarch64 (Apple Silicon, MacBook Air M4)
Crash Log
1 $time=6040384 $scope=console $level=warn $msg=warn args="; 1: limitedAds is not set, defaulting
to false"
2 $time=6040385 $scope=console $level=warn $msg=warn args="; 1: userinfo data unavailable"
3 $time=6040561 $scope=js $level=warn $msg="compile resolved module" specifier=./identify-user-NlI
stack=null src=null line=0 exception=InvalidURI
4 $time=6040561 $scope=user_script $level=warn $msg="eval script"
url=https://static01.nyt.com/video-static/betamax/player-2G-OVVMI.js err=unknown cacheable=true
5 thread 124698 panic: reached unreachable code
6 ???:?:?: 0x102405f2b in _browser.js.Context.resolveModuleCallback (???)
7 ???:?:?: 0x101090c73 in _locale_charset (???)
8 ???:?:?: 0x10105d09f in _locale_charset (???)
9 ???:?:?: 0x100b6e3d7 in _locale_charset (???)
10 ???:?:?: 0x100af51df in _locale_charset (???)
11 ???:?:?: 0x1024040ef in _browser.js.Context.module__anon_120176 (???)
12 ???:?:?: 0x1023bce6b in _browser.js.Context.dynamicModuleSourceCallback (???)
13 ???:?:?: 0x1023bc6b3 in _browser.ScriptManager.AsyncModule.doneCallback (???)
14 ???:?:?: 0x102390edb in _http.Client.processMessages (???)
15 ???:?:?: 0x102393bc7 in _http.Client.perform (???)
16 ???:?:?: 0x1023aa7c3 in _http.Client.tick (???)
17 ???:?:?: 0x10240508f in _browser.js.Context.resolveModuleCallback (???)
18 ???:?:?: 0x101090c73 in _locale_charset (???)
19 ???:?:?: 0x10105d09f in _locale_charset (???)
20 ???:?:?: 0x100b6e3d7 in _locale_charset (???)
21 ???:?:?: 0x100af51df in _locale_charset (???)
22 ???:?:?: 0x1023ca527 in _browser.ScriptManager.Script.eval (???)
23 ???:?:?: 0x10254954b in _browser.ScriptManager.evaluate (???)
24 ???:?:?: 0x1023cf13f in _browser.ScriptManager.doneCallback (???)
25 ???:?:?: 0x102390edb in _http.Client.processMessages (???)
26 ???:?:?: 0x102393bc7 in _http.Client.perform (???)
27 ???:?:?: 0x1023aa7c3 in _http.Client.tick (???)
28 ???:?:?: 0x1023d631b in _browser.page.Page.wait (???)
29 ???:?:?: 0x10239ffbb in _main.run (???)
30 ???:?:?: 0x1023a6357 in _main (???)
31 ???:?:?: 0x18ba41d53 in ??? (???)
32 ???:?:?: 0x0 in ??? (???)
33 zsh: abort lightpanda https://www.nytimes.com
This issue was originally discovered while using the LightPanda browser via the gomcp server, but has been
confirmed to be reproducible via the command line directly. The crash is severe enough to terminate the browser
process, causing any controlling process (like an MCP server) to lose its connection.