Chris Heyes
Chris Heyes
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...
Also reported here https://github.com/zig-gamedev/zig-gamedev/pull/530#issuecomment-2020224643
Newer version of Dawn (https://github.com/zig-gamedev/zig-gamedev/pull/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...
Crash report for reference ``` {"bug_type":"284","timestamp":"2024-03-01 23:41:49.00 +0000","os_version":"macOS 14.3.1 (23D60)","roots_installed":0,"incident_id":"BAB940BE-9852-438D-9DE4-F13EA2B4164C"} { "roots_installed" : 0, "bug_type" : "284", "process_name" : "physically_based", "registers" : {}, "timestamp" : 1709336509, "analysis" : {"iofence_list":{"iofence_num_iosurfaces":1,"iofence_iosurfaces":[{"iofence_current_queue":[{"iofence_acceleratorid":0,"iofence_backtrace":[-2198506784372,-2198506782880,-2198509187096,-2198509177616,-2198509183812,-2198526384164,-2198508960252,-2198508948292],"iofence_direction":1}],"iosurface_id":663,"iofence_waiting_queue":[{"iofence_acceleratorid":2,"iofence_backtrace":[-2198841624180,-2198841622688,-2198874093560,-2198874542164,-2198845326180,-2198874398656,-2198874421544,-2198874423052],"iofence_direction":2},{"iofence_acceleratorid":2,"iofence_backtrace":[-2198841624180,-2198841622688,-2198874093560,-2198874542164,-2198845326180,-2198874398656,-2198874421544,-2198874423052],"iofence_direction":2},{"iofence_acceleratorid":2,"iofence_backtrace":[-2198841624180,-2198841622688,-2198874093560,-2198874542164,-2198845326180,-2198874398656,-2198874421544,-2198874423052],"iofence_direction":2},{"iofence_acceleratorid":2,"iofence_backtrace":[-2198841624180,-2198841622688,-2198874093560,-2198874542164,-2198845326180,-2198874398656,-2198874421544,-2198874423052],"iofence_direction":2},{"iofence_acceleratorid":2,"iofence_backtrace":[-2198841624180,-2198841622688,-2198874093560,-2198874542164,-2198845326180,-2198874398656,-2198874421544,-2198874423052],"iofence_direction":2},{"iofence_acceleratorid":2,"iofence_backtrace":[-2198841624180,-2198841622688,-2198874093560,-2198874542164,-2198845326180,-2198874398656,-2198874421544,-2198874423052],"iofence_direction":2},{"iofence_acceleratorid":2,"iofence_backtrace":[-2198841624180,-2198841622688,-2198874093560,-2198874542164,-2198845326180,-2198874398656,-2198874421544,-2198874423052],"iofence_direction":2},{"iofence_acceleratorid":2,"iofence_backtrace":[-2198841624180,-2198841622688,-2198874093560,-2198874542164,-2198845326180,-2198874398656,-2198874421544,-2198874423052],"iofence_direction":2},{"iofence_acceleratorid":2,"iofence_backtrace":[-2198841624180,-2198841622688,-2198874093560,-2198874542164,-2198845326180,-2198874398656,-2198874421544,-2198874423052],"iofence_direction":2},{"iofence_acceleratorid":2,"iofence_backtrace":[-2198841624180,-2198841622688,-2198874093560,-2198874542164,-2198845326180,-2198874398656,-2198874421544,-2198874423052],"iofence_direction":1}]}]},"fw_ta_substate":{"slot0":0,"slot1":0},"fw_power_state":0,"fw_power_boost_controller":9,"guilty_dm":1,"fw_power_controller_in_charge":9,"fw_cl_state":{"slot0":0,"slot1":0,"slot2":0},"fw_perf_state_lo":8,"fw_ta_state":{"slot0":0,"slot1":0},"signature":625,"fw_power_substate":4,"command_buffer_trace_id":470954171,"fw_perf_state_select":0,"restart_reason":7,"fw_3d_state":{"slot0":0,"slot1":0,"slot2":0},"fw_gpc_perf_state":0,"fw_perf_state_hi":8,"fw_power_limit_controller":12,"restart_reason_desc":"blocked by...
Hey I downloaded your project and it works for me using Zig 0.12.0-dev.1871+e426ae43a on MacOS 13.5. I think there may have been a linker regression on the version of Zig...
The package manager should be pulling the dawn libs to a local directory so they can be linked. It looks like something is going wrong there and so it is...
Thanks! The dawn lib should of been downloaded to `~/.cache/zig/p/1220b1f02f2f7edd98a078c64e3100907d90311d94880a3cc5927e1ac009d002667a/libdawn.a`, does this exist for you? If it doesn't you can try running `zig fetch 1220b1f02f2f7edd98a078c64e3100907d90311d94880a3cc5927e1ac009d002667a`
Maybe this is fixed by https://github.com/zig-gamedev/zig-gamedev/pull/518. Can you confirm you are still having this issue @Nazariglez?
Feel free to reopen if this this isn't working for you still
Superseded by https://github.com/zig-gamedev/zig-gamedev/pull/537