browser icon indicating copy to clipboard operation
browser copied to clipboard

core dump running the example

Open tuananh opened this issue 1 week ago • 2 comments

i'm running nightly with this example

   1   │ 'use strict'
   2   │
   3   │ import puppeteer from 'puppeteer-core';
   4   │
   5   │ // use browserWSEndpoint to pass the Lightpanda's CDP server address.
   6   │ const browser = await puppeteer.connect({
   7   │   browserWSEndpoint: "ws://127.0.0.1:9222",
   8   │ });
   9   │
  10   │ // The rest of your script remains the same.
  11   │ const context = await browser.createBrowserContext();
  12   │ const page = await context.newPage();
  13   │
  14   │ await page.goto('https://wikipedia.com/');
  15   │
  16   │ await page.close();
  17   │ await context.close();

I got the following core dump error

info(websocket): starting blocking worker to listen on 127.0.0.1:9222
info(server): accepting new conn...
info(server): client connected
info(browser): GET https://wikipedia.com/ 200
info(browser): fetch https://wikipedia.com/portal/wikipedia.org/assets/js/index-6bf78c58fd.js: http.Status.ok
info(browser): eval script portal/wikipedia.org/assets/js/index-6bf78c58fd.js: Error: NotImplemented
info(browser): fetch https://wikipedia.com/portal/wikipedia.org/assets/js/gt-ie9-ce3fe8e88d.js: http.Status.ok
error(events): event handler error: error.JSExecCallback
info(events): event handler error try catch: TypeError: Cannot read properties of undefined (reading 'length')
thread 934200 panic: attempt to use null value
/home/runner/work/browser/browser/vendor/zig-js-runtime/src/engines/v8/callback.zig:0:0: 0x17b84e3 in call__anon_36823 (lightpanda)
/home/runner/work/browser/browser/vendor/zig-js-runtime/src/loop.zig:141:24: 0x176b688 in wrapper (lightpanda)
/opt/hostedtoolcache/zig/0.13.0/x64/lib/std/debug.zig:0:9: 0x15311b2 in run_for_ns (lightpanda)
/home/runner/work/browser/browser/src/server.zig:476:31: 0x152f2d8 in handle (lightpanda)
/opt/hostedtoolcache/zig/0.13.0/x64/lib/std/Thread.zig:429:13: 0x153221e in entryFn (lightpanda)
???:?:?: 0x743599bb0709 in ??? (libc.so.6)
Unwind information for `libc.so.6:0x743599bb0709` was not available, trace may be incomplete

???:?:?: 0x743599c34aab in ??? (libc.so.6)
Aborted (core dumped)

tuananh avatar Feb 10 '25 17:02 tuananh