Skip to content

Vulkan error on Apple Silicon/Linux #3768

Open

Description

@ppp7032

Steps to Reproduce and Observed Behavior

The issue seems to be that vertexPipelineStoresAndAtomics is required but not supported. I am running the latest pre-built release but have verified the issue also exists on master.

For the record, Apple Silicon has a perfectly mature Vulkan driver. Not only does Minecraft work in its OpenGL mode when the OpenGL implementation is zink (i.e. OpenGL layered on top of the Vulkan driver), but Minecraft's current experimental Vulkan backend also works.

Logs attached.

normal.log

Activity

  1. added
    bug
    on Nov 7, 2026
  2. IntegratedQuantum commented on Nov 7, 2026

    @IntegratedQuantum
    Member

    Could you try my branch from #3747? At least for now it shouldn't require Vulkan yet.

  3. ppp7032 commented on Nov 7, 2026

    @ppp7032
    Author

    Could you try my branch

    I got SIGSEGV branch.log

    When running with GDB to try to get a backtrace:

    Rejecting device: vertexPipelineStoresAndAtomics is not supported
    [Thread 0xffffe76c2fe0 (LWP 10471) (id 11) exited]
    Error while initializing Vulkan: NoCapableDeviceFound This may be a driver issue. Please update your drivers if you want to keep playing Cubyz in the future.
    [New Thread 0xffffe76c2fe0 (LWP 10476) (id 12)]
    [New Thread 0xffffccb7efe0 (LWP 10478) (id 13)]
    
    Thread 1 "Cubyz" received signal SIGSEGV, Segmentation fault.
    0x0000000000000000 in ?? ()
    (gdb) bt
    #0  0x0000000000000000 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
  4. ppp7032 commented on Nov 7, 2026

    @ppp7032
    Author

    It's very strange that I cannot get a back-trace even with a debug build. I'm not sure if this helps or not but:

    (lldb) register read
    General Purpose Registers:
        x0 = 0x0000000000000000
        x1 = 0x0000000000000000
        x2 = 0x0000000000000000
        x3 = 0x0000000000000000
        x4 = 0x0000000000000000
        x5 = 0x0000ffffccb8f700
        x6 = 0x00000000003d0f00
        x7 = 0x0000000000000000
        x8 = 0x0000000000000062
        x9 = 0x0000000000000005
       x10 = 0x0000ffffffffda40
       x11 = 0x0000fffff7da7c60  libc.so.6`start_thread at pthread_create.c:339:1
       x12 = 0x0000ffffccb8efe0
       x13 = 0x0000000008348010
       x14 = 0x0000000000000001
       x15 = 0x0000fffff7ed0ab0  main_arena + 112
       x16 = 0x000000000211b200  
       x17 = 0x0000fffff7da5ae0  libc.so.6`__pthread_attr_destroy at pthread_attr_destroy.c:26:1
       x18 = 0x0000000008c56678
       x19 = 0x00000000084ac490
       x20 = 0x0000000000000000
       x21 = 0x0000000004e7b288  Cubyz`audio.device + 384
       x22 = 0x0000000000000000
       x23 = 0x00000000fffffffe
       x24 = 0x0000000004e7b108  Cubyz`audio.device
       x25 = 0x0000000001d7cf3c  Cubyz`ma_worker_thread at miniaudio.c:31223
       x26 = 0x0000000008c60c00
       x27 = 0x0000000000000003
       x28 = 0x000000000000ac44
        fp = 0x0000000000000000
        lr = 0x0000000000000000
        sp = 0x0000ffffffffdd00
        pc = 0x0000000000000000
      cpsr = 0x60001000
    
  5. ppp7032 commented on Nov 7, 2026

    @ppp7032
    Author

    From stepping through the project with lldb, it looks like the SIGSEGV is triggered by this call audio.zig:227:

    try handleError(c.ma_device_init(null, &config, &device));
    

    The debugging becomes much less useful now because I couldn't find the source for this external C dependency we find ourselves in (miniaudio.c). But, for what it's worth, after entering n repeatedly this happens:

    (lldb) n
    Process 21795 stopped
    * thread #1, name = 'Cubyz', stop reason = step over
           frame #0: 0x0000000001d7cbb8 Cubyz`ma_device_init_ex(backends=<unavailable>, backendCount=<unavailable>, pContextConfig=0x0000000000000000, pConfig=0x0000ffffffffe5e8, pDevice=0x0000000004e7b108) at miniaudio.c:32546:22
    (lldb) n
    Process 21795 stopped
    * thread #1, name = 'Cubyz', stop reason = signal SIGSEGV: address not mapped to object (fault address=0x0)
           frame #0: 0x0000000000000000 
    error: memory read failed for 0x0
    
  6. IntegratedQuantum commented on Nov 8, 2026

    @IntegratedQuantum
    Member

    Thanks for testing, now I at least know that #3747 works.

    I'm not sure what to do about the audio though, seems like a bug in miniaudio. If you have the time for it, you can try making a minimal C example and directly linking miniaudio for a stack trace. Then we could make an upstream bug report. Otherwise you can also just comment out the audio.init call in src/main.zig, that should get the game up and running just without the audio.

  7. ppp7032 commented on Nov 8, 2026

    @ppp7032
    Author

    Unfortunately, I've been unable to reproduce the issue using a minimal C example. I'll open a new issue so this one can be strictly about Vulkan support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions