-
Couldn't load subscription status.
- Fork 279
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
$ zig build run -- fetch 'https://www.nytimes.com/'
thread 399990 panic: reached unreachable code
/usr/local/zig-0.15.1/lib/std/debug.zig:559:14: 0x302611d in assert (lightpanda)
if (!ok) unreachable; // assertion failure
^
/home/pierre/wrk/browser/src/browser/ScriptManager.zig:252:21: 0x317715d in blockingGet (lightpanda)
std.debug.assert(self.is_blocking == false);
^
/home/pierre/wrk/browser/src/browser/page.zig:257:47: 0x30fe01f in fetchModuleSource (lightpanda)
return self.script_manager.blockingGet(src);
^
/home/pierre/wrk/browser/src/runtime/js.zig:1474:62: 0x31ed921 in _resolveModuleCallback (lightpanda)
var fetch_result = try module_loader.func(module_loader.ptr, normalized_specifier);
^
/home/pierre/wrk/browser/src/runtime/js.zig:1446:51: 0x314beee in resolveModuleCallback (lightpanda)
return self._resolveModuleCallback(referrer, specifier) catch |err| {
^
../../../src/src/objects/source-text-module.cc:367:14: 0x4e1d58d in PrepareInstantiate (../../../src/src/objects/source-text-module.cc)
../../../src/src/objects/module.cc:246:12: 0x51a965c in PrepareInstantiate (../../../src/src/objects/module.cc)
../../../src/src/objects/module.cc:214:8: 0x51a902b in Instantiate (../../../src/src/objects/module.cc)
../../../src/src/api/api.cc:2273:8: 0x3aabcc9 in InstantiateModule (../../../src/src/api/api.cc)
../../../src/binding.cpp:633:33: 0x3987783 in ??? (../../../src/binding.cpp)
/home/pierre/.cache/zig/p/v8-0.0.0-xddH6w_EAwA8vK0NAxfxfI7IcbnpkUAcXKNujn7qwnmY/src/v8.zig:1946:40: 0x314ae4a in instantiate (lightpanda)
c.v8__Module__InstantiateModule(self.handle, ctx.handle, cb, &out);
^
/home/pierre/wrk/browser/src/runtime/js.zig:805:38: 0x314b4e3 in module (lightpanda)
if (try m.instantiate(v8_context, resolveModuleCallback) == false) {
^
/home/pierre/wrk/browser/src/browser/ScriptManager.zig:591:42: 0x3184b24 in eval (lightpanda)
_ = js_context.module(content, url, cacheable) catch break :blk false;
^
/home/pierre/wrk/browser/src/browser/ScriptManager.zig:505:29: 0x325f314 in doneCallback (lightpanda)
self.script.eval(self.manager.page);
^
/home/pierre/wrk/browser/src/browser/ScriptManager.zig:419:24: 0x3185308 in doneCallback (lightpanda)
script.doneCallback();
^
/home/pierre/wrk/browser/src/http/Client.zig:467:39: 0x3113071 in processMessages (lightpanda)
transfer.req.done_callback(transfer.ctx) catch |err| {
^
/home/pierre/wrk/browser/src/http/Client.zig:402:29: 0x31138c1 in perform (lightpanda)
try self.processMessages();
^
/home/pierre/wrk/browser/src/http/Client.zig:387:25: 0x31142a9 in makeRequest (lightpanda)
_ = try self.perform(0);
^
/home/pierre/wrk/browser/src/http/Client.zig:257:28: 0x317708a in blockingRequest (lightpanda)
return self.makeRequest(&self.blocking, transfer);
^
/home/pierre/wrk/browser/src/browser/ScriptManager.zig:272:31: 0x317754c in blockingGet (lightpanda)
try client.blockingRequest(.{
^
/home/pierre/wrk/browser/src/browser/page.zig:257:47: 0x30fe01f in fetchModuleSource (lightpanda)
return self.script_manager.blockingGet(src);
^
/home/pierre/wrk/browser/src/runtime/js.zig:1474:62: 0x31ed921 in _resolveModuleCallback (lightpanda)
var fetch_result = try module_loader.func(module_loader.ptr, normalized_specifier);
^
/home/pierre/wrk/browser/src/runtime/js.zig:1446:51: 0x314beee in resolveModuleCallback (lightpanda)
return self._resolveModuleCallback(referrer, specifier) catch |err| {
^
../../../src/src/objects/source-text-module.cc:367:14: 0x4e1d58d in PrepareInstantiate (../../../src/src/objects/source-text-module.cc)
../../../src/src/objects/module.cc:246:12: 0x51a965c in PrepareInstantiate (../../../src/src/objects/module.cc)
../../../src/src/objects/module.cc:214:8: 0x51a902b in Instantiate (../../../src/src/objects/module.cc)
../../../src/src/api/api.cc:2273:8: 0x3aabcc9 in InstantiateModule (../../../src/src/api/api.cc)
../../../src/binding.cpp:633:33: 0x3987783 in ??? (../../../src/binding.cpp)
/home/pierre/.cache/zig/p/v8-0.0.0-xddH6w_EAwA8vK0NAxfxfI7IcbnpkUAcXKNujn7qwnmY/src/v8.zig:1946:40: 0x314ae4a in instantiate (lightpanda)
c.v8__Module__InstantiateModule(self.handle, ctx.handle, cb, &out);
^
/home/pierre/wrk/browser/src/runtime/js.zig:805:38: 0x314b4e3 in module (lightpanda)
if (try m.instantiate(v8_context, resolveModuleCallback) == false) {
^
/home/pierre/wrk/browser/src/browser/ScriptManager.zig:591:42: 0x3184b24 in eval (lightpanda)
_ = js_context.module(content, url, cacheable) catch break :blk false;
^
/home/pierre/wrk/browser/src/browser/ScriptManager.zig:505:29: 0x325f314 in doneCallback (lightpanda)
self.script.eval(self.manager.page);
^
/home/pierre/wrk/browser/src/browser/ScriptManager.zig:419:24: 0x3185308 in doneCallback (lightpanda)
script.doneCallback();
^
/home/pierre/wrk/browser/src/http/Client.zig:467:39: 0x3113071 in processMessages (lightpanda)
transfer.req.done_callback(transfer.ctx) catch |err| {
^
/home/pierre/wrk/browser/src/http/Client.zig:402:29: 0x31138c1 in perform (lightpanda)
try self.processMessages();
^
/home/pierre/wrk/browser/src/http/Client.zig:192:24: 0x312f5f7 in tick (lightpanda)
return self.perform(timeout_ms);
^
/home/pierre/wrk/browser/src/browser/page.zig:383:49: 0x326c281 in _wait (lightpanda)
if (try http_client.tick(ms_to_wait) == .extra_socket) {
^
/home/pierre/wrk/browser/src/browser/page.zig:261:26: 0x31884cf in wait (lightpanda)
return self._wait(wait_ms) catch |err| {
^
/home/pierre/wrk/browser/src/browser/session.zig:173:29: 0x311e8a3 in wait (lightpanda)
return page.wait(wait_ms);
^
/home/pierre/wrk/browser/src/main.zig:171:29: 0x311cf86 in run (lightpanda)
_ = session.wait(5000); // 5 seconds
^
/home/pierre/wrk/browser/src/main.zig:46:8: 0x311e9c3 in main (lightpanda)
run(alloc) catch |err| {
^
/usr/local/zig-0.15.1/lib/std/start.zig:627:37: 0x311f19d in main (lightpanda)
const result = root.main() catch |err| {
^
../sysdeps/nptl/libc_start_call_main.h:58:16: 0x7cdfca62a1c9 in __libc_start_call_main (../sysdeps/x86/libc-start.c)
../csu/libc-start.c:360:3: 0x7cdfca62a28a in __libc_start_main_impl (../sysdeps/x86/libc-start.c)
???:?:?: 0x28ab024 in ??? (???)
???:?:?: 0x0 in ??? (???)
run
+- run exe lightpanda failure
error: the following command terminated unexpectedly:
./.zig-cache/o/ac4baf3b1339c2f489c3c320f8efd59e/lightpanda fetch https://www.nytimes.com/
Build Summary: 3/5 steps succeeded; 1 failed
run transitive failure
+- run exe lightpanda failure
error: the following build command failed with exit code 1:
.zig-cache/o/6132766e5bbbf67cf721c87238716a4b/build /usr/local/zig-0.15.1/zig /usr/local/zig-0.15.1/lib /home/pierre/wrk/browser .zig-cache /home/pierre/.cache/zig --seed 0x3994c027 -Zfda0294899ee0fb5 run -- fetch https://www.nytimes.com/Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working