all: instrument library loading #1328
No reviewers
Labels
No labels
CI
all
basisu
blog
bug
build
contributor-friendly
core
correctness
deferred
dev
direct3d-headers
docs
driver-os-issue
duplicate
dxcompiler
editor
examples
experiment
feature-idea
feedback
flac
freetype
gamemode
gkurve
glfw
gpu
gpu-dawn
harfbuzz
help welcome
in-progress
infrastructure
invalid
libmach
linux-audio-headers
long-term
mach
mach.gfx
mach.math
mach.physics
mach.testing
model3d
needs-triage
object
opengl-headers
opus
os/linux
os/macos
os/wasm
os/windows
package-manager
priority
proposal
proposal-accepted
question
roadmap
slipped
stability
sysaudio
sysgpu
sysjs
validating-fix
vulkan-zig-generated
wayland-headers
website
wontfix
wrench
www
x11-headers
xcode-frameworks
zig-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hexops/mach!1328
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Potential fix for #1327
TL;DR This instruments the calls to
DynLib.opento log exactly what libraries are missing and returns a consistentLibraryNotFounderror.As for the issue I was running into earlier: The open call in
src/sysgpu/vulkan.zigwas not catching and returning in the same manner as the other library loads, which is why I was getting that non-descriptFileNotFounderror.One caveat is that some libraries that aren't really required will still log an error, but it's definitely better than the ambiguous errors from before imo.
There may be a better name and/or a better place to put the
loadLibraryfunction, so I'm open to shifting some things around if y'all see fit. Cheers!Can you move this here instead and call it
dynLibOpen, so usages look likemach.dynLibOpen(...)?not sure what the
\x00is for?Two small comments, looks good otherwise! Thanks for improving this!
Updated!
Brain rot on my part. Fixed lol.