core: mach triangle example project segfaults (PopOS) #1232

Open
opened 2024-07-22 22:48:06 +00:00 by wsdevv · 2 comments
wsdevv commented 2024-07-22 22:48:06 +00:00 (Migrated from github.com)

(can expand on anything if you'd like. However the error is very obscure, so I'm not sure how helpful this report will be :/ )
Hardware:

  • 11th Gen core i7
  • Intel Iris Xe Graphics (using Mesa Xe drivers that came installed with the OS)

Software:

  • PopOS LTS 22.04
  • X11 windowing system
    (Vulkan driver version 24.0.3)

The problem:
After a few seconds of running the triangle-shader example project with zig version 0.13.0-dev.351+64ef45eb0 (latest mach version), the program segfaults with the following message

Segmentation fault at address 0x0
???:?:?: 0x7e91acda7db1 in ??? (libvulkan_intel.so)
Unwind information for "libvulkan_intel.so:0x7e91acda7db1" was not available, trace may be incomplete

run
└─ run {project-name} failure
error: the following command terminated unexpectedly:
/home/{user}/Documents/{project-name}/zig-out/bin/{project-name}
Build Summary: 34/36 steps succeeded; 1 failed (disable with --summary none)
run transitive failure
└─ run {project-name} failure
error: the following build command failed with exit code 1:
/home/{user}/Documents/{project-name}/.zig-cache/o/df0ae361e441204d340ce80a2e5a7aff/build /home/{user}/zig/0.13.0-dev.351+64ef45eb0/files/zig /home/{user}/Documents/{project-name} /home/{user}/Documents/{project-name}/.zig-cache /home/{user}/.cache/zig --seed 0x9c5994d9 -Z8982752a60a55545 run
(can expand on anything if you'd like. However the error is very obscure, so I'm not sure how helpful this report will be :/ ) Hardware: - 11th Gen core i7 - Intel Iris Xe Graphics (using Mesa Xe drivers that came installed with the OS) Software: - PopOS LTS 22.04 - X11 windowing system (Vulkan driver version 24.0.3) The problem: After a few seconds of running the triangle-shader example project with zig version 0.13.0-dev.351+64ef45eb0 (latest mach version), the program segfaults with the following message ``` Segmentation fault at address 0x0 ???:?:?: 0x7e91acda7db1 in ??? (libvulkan_intel.so) Unwind information for "libvulkan_intel.so:0x7e91acda7db1" was not available, trace may be incomplete run └─ run {project-name} failure error: the following command terminated unexpectedly: /home/{user}/Documents/{project-name}/zig-out/bin/{project-name} Build Summary: 34/36 steps succeeded; 1 failed (disable with --summary none) run transitive failure └─ run {project-name} failure error: the following build command failed with exit code 1: /home/{user}/Documents/{project-name}/.zig-cache/o/df0ae361e441204d340ce80a2e5a7aff/build /home/{user}/zig/0.13.0-dev.351+64ef45eb0/files/zig /home/{user}/Documents/{project-name} /home/{user}/Documents/{project-name}/.zig-cache /home/{user}/.cache/zig --seed 0x9c5994d9 -Z8982752a60a55545 run ```
ronald-mz commented 2024-10-21 17:38:25 +00:00 (Migrated from github.com)

@wsdevv
Would you be able to verify that this issue is fixed after https://github.com/hexops/mach/pull/1289?

@wsdevv Would you be able to verify that this issue is fixed after https://github.com/hexops/mach/pull/1289?
EvilCultist commented 2024-12-24 18:56:33 +00:00 (Migrated from github.com)

@RonaldZielaznicki I am on popos and am experiencing the same issues. I can confirm #1289 hasn't fixed this issue.

on running zig build run-core-triangle I get-

Segmentation fault at address 0x0
~/mach/src/sysgpu/vulkan.zig:1099:29: 0x11b387b in getCurrentTextureView (core-triangle)  
        const vk_device = sc.device.vk_device;
                            ^
~/mach/src/sysgpu/main.zig:1260:62: 0x114713b in tick (core-triangle)
        const texture_view = swap_chain.getCurrentTextureView() catch @panic("api error");
                                                             ^
~/mach/src/module.zig:649:29: 0x1121adc in run__anon_23646 (core-triangle)
                    switch (@typeInfo(Ret)) {
                            ^
~/mach/src/module.zig:672:57: 0x10f6b7c in callDynamic (core-triangle)
                        inline else => |fn_name| mod.run(fn_name),
                                                        ^
~/mach/src/module.zig:635:61: 0x10d6b25 in run (core-triangle)
                                        modules2.callDynamic(fn_id);
                                                            ^
~/mach/src/module.zig:435:19: 0x10d6e19 in run (core-triangle)
            r._run(r._ctx, fn_id);
                  ^
~/mach/src/Core.zig:244:17: 0x10d6cb0 in main (core-triangle)
    core_mod.run(core.on_tick.?);
                ^
~/mach/src/module.zig:649:29: 0x10b14a6 in run__anon_7358 (core-triangle)
                    switch (@typeInfo(Ret)) {
                            ^
~/mach/src/module.zig:610:40: 0x10aa7c3 in run__anon_4768 (core-triangle)
                            callMod.run(callFn);
                                       ^
~/mach/examples/core-triangle/main.zig:21:12: 0x10a9ffa in main (core-triangle)
    app.run(.main);
           ^
~/zig/lib/std/start.zig:621:37: 0x10aab8e in main (core-triangle)
            const result = root.main() catch |err| {
                                    ^
???:?:?: 0x79f036c29d8f in ??? (libc.so.6)
Unwind information for `libc.so.6:0x79f036c29d8f` was not available, trace may be incomplete

zig build test doesn't show any errors

@RonaldZielaznicki I am on popos and am experiencing the same issues. I can confirm #1289 hasn't fixed this issue. on running zig build run-core-triangle I get- Segmentation fault at address 0x0 ~/mach/src/sysgpu/vulkan.zig:1099:29: 0x11b387b in getCurrentTextureView (core-triangle) const vk_device = sc.device.vk_device; ^ ~/mach/src/sysgpu/main.zig:1260:62: 0x114713b in tick (core-triangle) const texture_view = swap_chain.getCurrentTextureView() catch @panic("api error"); ^ ~/mach/src/module.zig:649:29: 0x1121adc in run__anon_23646 (core-triangle) switch (@typeInfo(Ret)) { ^ ~/mach/src/module.zig:672:57: 0x10f6b7c in callDynamic (core-triangle) inline else => |fn_name| mod.run(fn_name), ^ ~/mach/src/module.zig:635:61: 0x10d6b25 in run (core-triangle) modules2.callDynamic(fn_id); ^ ~/mach/src/module.zig:435:19: 0x10d6e19 in run (core-triangle) r._run(r._ctx, fn_id); ^ ~/mach/src/Core.zig:244:17: 0x10d6cb0 in main (core-triangle) core_mod.run(core.on_tick.?); ^ ~/mach/src/module.zig:649:29: 0x10b14a6 in run__anon_7358 (core-triangle) switch (@typeInfo(Ret)) { ^ ~/mach/src/module.zig:610:40: 0x10aa7c3 in run__anon_4768 (core-triangle) callMod.run(callFn); ^ ~/mach/examples/core-triangle/main.zig:21:12: 0x10a9ffa in main (core-triangle) app.run(.main); ^ ~/zig/lib/std/start.zig:621:37: 0x10aab8e in main (core-triangle) const result = root.main() catch |err| { ^ ???:?:?: 0x79f036c29d8f in ??? (libc.so.6) Unwind information for `libc.so.6:0x79f036c29d8f` was not available, trace may be incomplete zig build test doesn't show any errors
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hexops/mach#1232
No description provided.