Archived
2
20
Fork
You've already forked zeppelin
0

thread 11021 panic: integer cast truncated bits #1

Closed
opened 2025年04月09日 09:15:55 +02:00 by neurocyte · 3 comments

Panic on startup:

thread 11021 panic: integer cast truncated bits
/home/cjv/pkgs/zeppelin/src/graphics/llg.zig:3759:41: 0x133324d in updateFormatConfigs (demo)
 .modifier_end = @intCast(self.modifiers.items.len),
 ^
/home/cjv/pkgs/zeppelin/src/graphics/llg.zig:3681:37: 0x1333c3c in create (demo)
 try self.updateFormatConfigs();
 ^
/home/cjv/pkgs/zeppelin/src/graphics/llg.zig:405:34: 0x133400c in createSurface (demo)
 return try Surface.create(self, window);
 ^
/home/cjv/pkgs/zeppelin/src/graphics/vulkan.zig:151:60: 0x12b94b8 in createSwapchainRenderer (demo)
 const surface = try self.llg_instance.createSurface(window);
 ^
/home/cjv/pkgs/zeppelin/src/graphics/backend.zig:39:53: 0x12c7b86 in createWindowRenderer (demo)
 return try self.create_swapchain_renderer_fn(self.backend, window, present_mode, gpu_preference);
 ^
/home/cjv/pkgs/zeppelin/examples/demo.zig:35:55: 0x12fcf0c in main (demo)
 const renderer = try zcontext.createWindowRenderer(window_width, window_height, "Zeppelin Demo", .mailbox, .performant);
 ^
/home/cjv/pkgs/zig-bin/zig-linux-x86_64-0.14.0/lib/std/start.zig:656:37: 0x12ff517 in main (demo)
 const result = root.main() catch |err| {
 ^
../sysdeps/nptl/libc_start_call_main.h:58:16: 0x7c7d6af7a487 in __libc_start_call_main (../sysdeps/x86/libc-start.c)
../csu/libc-start.c:360:3: 0x7c7d6af7a54b in __libc_start_main_impl (../sysdeps/x86/libc-start.c)
/home/cjv/pkgs/zig-bin/zig-linux-x86_64-0.14.0/lib//libc/glibc/sysdeps/x86_64/start-2.33.S:120:0: 0x11f4069 in ??? (/home/cjv/pkgs/zig-bin/zig-linux-x86_64-0.14.0/lib//libc/glibc/sysdeps/x86_64/start-2.33.S)
 call *__libc_start_main@GOTPCREL(%rip)
???:?:?: 0x0 in ??? (???)
fish: Job 1, 'zig-out/bin/demo' terminated by signal SIGABRT (Abort)

This is build with zig-0.14.0 on current arch linux (x86_64) with an nvidia gpu (rtx 3070) and a wayland wm (niri).

Panic on startup: ``` thread 11021 panic: integer cast truncated bits /home/cjv/pkgs/zeppelin/src/graphics/llg.zig:3759:41: 0x133324d in updateFormatConfigs (demo) .modifier_end = @intCast(self.modifiers.items.len), ^ /home/cjv/pkgs/zeppelin/src/graphics/llg.zig:3681:37: 0x1333c3c in create (demo) try self.updateFormatConfigs(); ^ /home/cjv/pkgs/zeppelin/src/graphics/llg.zig:405:34: 0x133400c in createSurface (demo) return try Surface.create(self, window); ^ /home/cjv/pkgs/zeppelin/src/graphics/vulkan.zig:151:60: 0x12b94b8 in createSwapchainRenderer (demo) const surface = try self.llg_instance.createSurface(window); ^ /home/cjv/pkgs/zeppelin/src/graphics/backend.zig:39:53: 0x12c7b86 in createWindowRenderer (demo) return try self.create_swapchain_renderer_fn(self.backend, window, present_mode, gpu_preference); ^ /home/cjv/pkgs/zeppelin/examples/demo.zig:35:55: 0x12fcf0c in main (demo) const renderer = try zcontext.createWindowRenderer(window_width, window_height, "Zeppelin Demo", .mailbox, .performant); ^ /home/cjv/pkgs/zig-bin/zig-linux-x86_64-0.14.0/lib/std/start.zig:656:37: 0x12ff517 in main (demo) const result = root.main() catch |err| { ^ ../sysdeps/nptl/libc_start_call_main.h:58:16: 0x7c7d6af7a487 in __libc_start_call_main (../sysdeps/x86/libc-start.c) ../csu/libc-start.c:360:3: 0x7c7d6af7a54b in __libc_start_main_impl (../sysdeps/x86/libc-start.c) /home/cjv/pkgs/zig-bin/zig-linux-x86_64-0.14.0/lib//libc/glibc/sysdeps/x86_64/start-2.33.S:120:0: 0x11f4069 in ??? (/home/cjv/pkgs/zig-bin/zig-linux-x86_64-0.14.0/lib//libc/glibc/sysdeps/x86_64/start-2.33.S) call *__libc_start_main@GOTPCREL(%rip) ???:?:?: 0x0 in ??? (???) fish: Job 1, 'zig-out/bin/demo' terminated by signal SIGABRT (Abort) ``` This is build with `zig-0.14.0` on current arch linux (x86_64) with an nvidia gpu (rtx 3070) and a wayland wm (niri).
Owner
Copy link

Looks like the nvidia driver / wayland compositor advertises an unexpectedly high amount of image formats. Will fix it in a few hours. Thanks for testing out zeppelin!

Looks like the nvidia driver / wayland compositor advertises an unexpectedly high amount of image formats. Will fix it in a few hours. Thanks for testing out zeppelin!
Owner
Copy link

I've pushed a fix. Could you have a look? @neurocyte
zig fetch --save https://codeberg.org/ssmid/zeppelin/archive/bd0e9617da6d768247960e34d6dfcafefe3563f7.tar.gz
or checkout the main branch.

I've pushed a fix. Could you have a look? @neurocyte `zig fetch --save https://codeberg.org/ssmid/zeppelin/archive/bd0e9617da6d768247960e34d6dfcafefe3563f7.tar.gz` or checkout the main branch.
ssmid canceled time tracking 2025年04月09日 14:09:52 +02:00
ssmid added the due date 2025年04月16日 2025年04月09日 14:10:46 +02:00

Yes, that fixed it for me. 👍

Yes, that fixed it for me. 👍
ssmid 2025年04月09日 16:19:15 +02:00
  • closed this issue
  • added the
    bug
    label
Commenting is not possible because the repository is archived.
No Branch/Tag specified
main
clipboard
0.3.0
0.2.0
0.1.1
0.1.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

2025年04月17日

Dependencies

No dependencies set.

Reference
ssmid/zeppelin#1
Reference in a new issue
ssmid/zeppelin
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?