examples: gkurve example leaks #421

Closed
opened 2022-07-19 06:24:05 +00:00 by alichraghi · 3 comments
alichraghi commented 2022-07-19 06:24:05 +00:00 (Migrated from github.com)

ran zig build run-example-gkurve with both pre-built and from-source dawn. got this after closing window:

MESA-INTEL: warning: Haswell Vulkan support is incomplete
mach: found Vulkan backend on Integrated GPU adapter: Intel(R) HD Graphics 4400 (HSW GT2), Intel open-source Mesa driver: Mesa 21.2.6
error(gpa): memory address 0x7fbeb02b5140 leaked: 
???:?:?: 0x3258d8a in ??? (???)
???:?:?: 0x3245c2e in ??? (???)
???:?:?: 0x31ed915 in ??? (???)
???:?:?: 0x31ce156 in ??? (???)


error(gpa): memory address 0x7fbeb01df000 leaked: 
???:?:?: 0x3258d8a in ??? (???)
???:?:?: 0x3245c2e in ??? (???)
???:?:?: 0x31ed915 in ??? (???)
???:?:?: 0x31ce156 in ??? (???)


error(gpa): memory address 0x7fbeb02b9a00 leaked: 
???:?:?: 0x3258d8a in ??? (???)
???:?:?: 0x3245c2e in ??? (???)
???:?:?: 0x31eda5a in ??? (???)
???:?:?: 0x31ce2b0 in ??? (???)


error(gpa): memory address 0x7fbeb01efc00 leaked: 
???:?:?: 0x31c67fa in ??? (???)
???:?:?: 0x3241e2e in ??? (???)
???:?:?: 0x31ed9d5 in ??? (???)
???:?:?: 0x31ce203 in ??? (???)


error(gpa): memory address 0x7fbeb01e1000 leaked: 
???:?:?: 0x31c67fa in ??? (???)
???:?:?: 0x3241e2e in ??? (???)
???:?:?: 0x31ed9d5 in ??? (???)
???:?:?: 0x31ce203 in ??? (???)


error(gpa): memory address 0x7fbeb02bb000 leaked: 
???:?:?: 0x31ade47 in ??? (???)
???:?:?: 0x31b1d42 in ??? (???)
???:?:?: 0x31b3c7f in ??? (???)
???:?:?: 0x7fbeb9bb8082 in ??? (???)

afaik we build all deps with the same mode (Debug by default) but there's still some missing debug symbols, so we don't get stack trace
EDIT: https://github.com/ziglang/zig/issues/12120

ran `zig build run-example-gkurve` with both pre-built and from-source dawn. got this after closing window: <details> ```zig MESA-INTEL: warning: Haswell Vulkan support is incomplete mach: found Vulkan backend on Integrated GPU adapter: Intel(R) HD Graphics 4400 (HSW GT2), Intel open-source Mesa driver: Mesa 21.2.6 error(gpa): memory address 0x7fbeb02b5140 leaked: ???:?:?: 0x3258d8a in ??? (???) ???:?:?: 0x3245c2e in ??? (???) ???:?:?: 0x31ed915 in ??? (???) ???:?:?: 0x31ce156 in ??? (???) error(gpa): memory address 0x7fbeb01df000 leaked: ???:?:?: 0x3258d8a in ??? (???) ???:?:?: 0x3245c2e in ??? (???) ???:?:?: 0x31ed915 in ??? (???) ???:?:?: 0x31ce156 in ??? (???) error(gpa): memory address 0x7fbeb02b9a00 leaked: ???:?:?: 0x3258d8a in ??? (???) ???:?:?: 0x3245c2e in ??? (???) ???:?:?: 0x31eda5a in ??? (???) ???:?:?: 0x31ce2b0 in ??? (???) error(gpa): memory address 0x7fbeb01efc00 leaked: ???:?:?: 0x31c67fa in ??? (???) ???:?:?: 0x3241e2e in ??? (???) ???:?:?: 0x31ed9d5 in ??? (???) ???:?:?: 0x31ce203 in ??? (???) error(gpa): memory address 0x7fbeb01e1000 leaked: ???:?:?: 0x31c67fa in ??? (???) ???:?:?: 0x3241e2e in ??? (???) ???:?:?: 0x31ed9d5 in ??? (???) ???:?:?: 0x31ce203 in ??? (???) error(gpa): memory address 0x7fbeb02bb000 leaked: ???:?:?: 0x31ade47 in ??? (???) ???:?:?: 0x31b1d42 in ??? (???) ???:?:?: 0x31b3c7f in ??? (???) ???:?:?: 0x7fbeb9bb8082 in ??? (???) ``` </details> afaik we build all deps with the same mode (`Debug` by default) but there's still some missing debug symbols, so we don't get stack trace **EDIT:** https://github.com/ziglang/zig/issues/12120
emidoots commented 2022-07-19 16:34:19 +00:00 (Migrated from github.com)

May need to disable this option and build -Ddawn-from-source=true to get stack traces here: github.com/hexops/mach@77aecbe806/gpu-dawn/build.zig (L72)

May need to disable this option and build `-Ddawn-from-source=true` to get stack traces here: https://github.com/hexops/mach/blob/77aecbe806dcc8e4f80c4d723d9649be4e7a287a/gpu-dawn/build.zig#L72
emidoots commented 2022-07-19 16:34:32 +00:00 (Migrated from github.com)

I'll try on my mac later

I'll try on my mac later
alichraghi commented 2022-07-19 16:41:15 +00:00 (Migrated from github.com)

this is a global issue. i don't get backtraces anymore (not only mach)
@nektro also mentioned this in zig showtime

this is a global issue. i don't get backtraces anymore (not only mach) @nektro also mentioned this in zig showtime
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#421
No description provided.