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
All WGPU demos randomly crash on Apple Silicon #411
Comments
I am unable to reproduce this on my machine. What are you running?
|
Sounds like it could be out-of-memory. Might be worth monitoring memory usage to see. Can you post your system specs also? |
clang --version; zig version Not sure how to provide more details since it completely freezes my system until it decides to reboot itself. |
@Umenokin Try release config: |
IIRC macOS does use a swap file on disk when memory is exhausted. The GPA will only pick up memory leaks from allocations that went through it. Dawn may well be allocating memory for CPU or GPU that wouldn't be tracked by the GPA. |
Yes, macOS has a swap file. And it may be used even when memory is NOT exhausted. Here is an article that talks a bit about that: https://www.digitaltrends.com/computing/what-is-swap-used-in-mac-activity-monitor/. You can see the current size of the swap file with: "sysctl vm.swapusage". Even on a Mac with ridiculous amounts of RAM, it will probably be there. |
Bullet_physics_test_wgpu-run now seems to freeze completely for me, too. I just started the app and checked memory with Activity Monitor, noticed a small but noticeable memory leak... but it also said 361 GB of private memory was used. I tried to take a screenshot but my Mac froze and had to be rebooted before I could. |
I'm fairly certain this has to do with Dawn as it affects both my mach-core and zig-gamedev projects. Similar to what you said I can sometimes observe a small memory leak but the swap file seems to eat all available storage. |
Newer version of Dawn (#463) gives more validation error reporting. We see important validation errors in our samples. I'm optimistic that resolving these validation errors will solve these ill-effects that we have on Apple Silicon. |
Crash report for reference
|
Hi
Incredible repository which I found just yesterday.
Issue: The app will force Mac to freeze for a while completely blocking all IO until the system will force itself to reboot.
zig build bullet_physics_test_wgpu-run
will cause this behavior 100% of the time.zig build triangle_wgpu-run
will cause pretty randomly but still 70-80% of the time.I haven't been working with low-lever computer graphics for years and it reminds me how it will crash the graphics driver when you try to access the GPU with the wrong address.
The text was updated successfully, but these errors were encountered: