Skip to content

[Bug] Taichi GPU (Metal) crashes WindowServer on macOS 15 + Python 3.10.19 (M1/M2/M4) #8775

@f1shf1sh

Description

@f1shf1sh

WindowServer-2025-12-03-222518.txt

Describe the bug

Using Taichi with GPU backend on macOS (Metal) causes a full system freeze.
The Mac completely locks up, requiring a forced reboot.
After rebooting, macOS reports that WindowServer was terminated by watchdog due to GPU hang.

Device info

  • macOS version: 15.6 (24G84)
  • Machine: Apple Silicon (M4 Pro)
  • Python version: 3.10.19
  • Taichi version: ([Taichi] version 1.7.4, llvm 15.0.7, commit b4b956f, osx, python 3.10.19)
  • Backend: ti.gpu (Metal)
  • Resolution: 1512 × 982

Minimal reproduction

from taichi.math import *
import taichi as ti

ti.init(arch=ti.gpu)

image_resolution = (1512, 982)
image_pixels = ti.Vector.field(3, float, image_resolution)

@ti.kernel
def render():
    for i, j in image_pixels:
        image_pixels[i, j] = vec3(1, 0, 1)

window = ti.ui.Window("Taichi Renderer", image_resolution)
canvas = window.get_canvas()

while window.running:
    render()
    canvas.set_image(image_pixels)
    window.show()

[WindowServer-2025-12-03-222518.txt](https://github.com/user-attachments/files/23921701/WindowServer-2025-12-03-222518.txt)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions