-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: InvalidVersion and exit when running on Fedora 41 #362
Comments
I have the same issue, I took the install link directly from the read me in my x86_64 docker container but I cannot run it because any command gives me "Invalid version". |
Dear all, I use Windows and wanted to run the project via ./lightpanda-x86_64-linux --dump https://lightpanda.io
error: InvalidVersion ./lightpanda-x86_64-linux --host 127.0.0.1 --port 9333
error: InvalidVersion P.S. |
Hello here, |
Hi there. To be clear, I used |
Ok I was able to reproduce with a VM + Fedora41. [fedora@ip-172-31-26-243 browser]$ zig build run
debug(cli): Server opts: listening internally on /tmp/lightpanda...
error: InvalidVersion
/home/fedora/zig-linux-x86_64-0.13.0/lib/std/SemanticVersion.zig:117:73: 0x1811ea5 in parse (lightpanda)
for (id) |c| if (!std.ascii.isAlphanumeric(c) and c != '-') return error.InvalidVersion;
^
/home/fedora/browser/vendor/zig-js-runtime/vendor/tigerbeetle-io/io/linux.zig:28:25: 0x181533a in init (lightpanda)
const version = try std.SemanticVersion.parse(release);
^
/home/fedora/browser/vendor/zig-js-runtime/src/loop.zig:55:16: 0x181652b in init (lightpanda)
io.* = try IO.init(32, 0);
^
/home/fedora/browser/src/main.zig:263:24: 0x183aafa in main (lightpanda)
var loop = try jsruntime.Loop.init(alloc);
^
run
└─ run lightpanda failure
error: the following command exited with error code 1:
/home/fedora/browser/.zig-cache/o/719a702fa0dd81f041d9ca288151f514/lightpanda
Build Summary: 2/4 steps succeeded; 1 failed (disable with --summary none)
run transitive failure
└─ run lightpanda failure
error: the following build command failed with exit code 1:
/home/fedora/browser/.zig-cache/o/b4a33ce755d18c0851ea3820f21123c8/build /home/fedora/zig-linux-x86_64-0.13.0/zig /home/fedora/browser /home/fedora/browser/.zig-cache /home/fedora/.cache/zig --seed 0xd995ba9a -Z0d5e70409161dfc2 run |
The check of the minimal linux for the loop version fails. The Zig's SemanticVersion seems unhappy with the kernel version format returned by Fedora. It appears Tigerbeetle changed the way they get the kernel version https://github.com/tigerbeetle/tigerbeetle/blob/main/src/stdx.zig#L479-L508 |
Ah ok, on my machines with older kernels (< 6.12.9) binary works fine.. Though now that I have updated to latest stable kernel (6.12.9) in Fedora 41 the error has changed..
|
I forced a nightly build against the last version. https://github.com/lightpanda-io/browser/releases/tag/nightly |
@joshbaptiste My bad, $ ag "error.Unexpected;" /usr/local/zig-0.13.0/lib/std/
/usr/local/zig-0.13.0/lib/std/Progress.zig
690: return error.Unexpected;
694: return error.Unexpected;
702: return error.Unexpected;
711: return error.Unexpected;
721: return error.Unexpected;
/usr/local/zig-0.13.0/lib/std/posix.zig
630: stream.readNoEof(buf) catch return error.Unexpected;
7322: return error.Unexpected;
/usr/local/zig-0.13.0/lib/std/net.zig
881: if (!first) return error.Unexpected;
/usr/local/zig-0.13.0/lib/std/os/windows.zig
1200: if (info.Name.MaximumLength == 0) break :blk error.Unexpected;
1283: if (!mem.eql(u16, expected_prefix, final_path[0..expected_prefix.len])) return error.Unexpected;
1609: if (!first) return error.Unexpected;
2776: return error.Unexpected;
2790: return error.Unexpected;
/usr/local/zig-0.13.0/lib/std/c/darwin.zig
2838: return error.Unexpected;
/usr/local/zig-0.13.0/lib/std/process.zig
1743: if (amt != 50) return error.Unexpected;
1746: if (!std.mem.eql(u8, label, "MemTotal:")) return error.Unexpected;
1747: const int_text = it.next() orelse return error.Unexpected;
1748: const units = it.next() orelse return error.Unexpected;
1749: if (!std.mem.eql(u8, units, "kB")) return error.Unexpected; But I think it's a different issue. If confirmed, I will close here to open a new one. |
@joshbaptiste I upgraded to the last kernel on my debian too and I reproduce the issue. I'm closing this one b/c the |
┌─[user@parrot]─[~/Integuru]
└──╼ $./lightpanda-x86_64-linux --host 127.0.0.1 --port 9222
error: InvalidVersion facing the same issue on parrotOS (debian 11) └──╼ $wget https://github.com/lightpanda-io/browser/releases/download/nightly/lightpanda-x86_64-linux i downloaded the nightly version |
Hello @spidy0x0, Can you share the output of |
└──╼ $uname -a
Linux parrot 6.11+parrot-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.11.5-1parrot1 (2024-12-13) x86_64 GNU/Linux |
@spidy0x0 it looks like the patch version is missing from the kernel release 🤔 |
Hello,
Trying out the latest binary release today and does not run at all on Fedora 41
Strace ending snippet
The text was updated successfully, but these errors were encountered: