Comments (6)
Thank you for filing this, will investigate
from mach.
@xor256 Assuming you're talking about mach-glfw, are you seeing any leaks unique to mach's wrapper? GLFW itself leaks memory on my system, so if that's what you're seeing, it should really be reported to upstream
from mach.
does mach-glfw only uses c_allocator
or other zig's allocators are used too? because as far as i know valgrind does't detect zig memory leaks
from mach.
@alichraghi we use only c_allocator
internally, but the tests use other Zig allocators.
This issue was opened quite a while ago, possibly fixed. We just need someone with Linux to run with Valgrind to confirm
from mach.
i ran the very simple code example in glfw documention in C and Zig (using mach). both almost have same valgrind output. i think it's because the window close duration difference. i also found some comments on the internet, they say detected leaks are caused by X11 or GPU Driver not GLFW
Zig:
definitely lost: 0 bytes in 0 blocks
indirectly lost: 0 bytes in 0 blocks
possibly lost: 178,039 bytes in 1,476 blocks
still reachable: 1,450,310 bytes in 1,993 blocks
suppressed: 1,700 bytes in 1 blocks
C:
definitely lost: 0 bytes in 0 blocks
indirectly lost: 0 bytes in 0 blocks
possibly lost: 178,311 bytes in 1,478 blocks
still reachable: 23,562,177 bytes in 4,380 blocks
suppressed: 1,700 bytes in 1 blocks
from mach.
Great, thanks for checking @alichraghi ! I'll close this, if anyone finds anything else here feel free to create a new issue!
from mach.
Related Issues (20)
- libmach: project CI zig version may not be updated by wrench
- core: hash mismatch on sysgpu HOT 1
- website: found asset URLs that are not allowed
- Broken Link on https://wrench.machengine.org/ HOT 1
- fs function depreciated in newer zig versions -- fixed
- sysgpu: Crash on run on Windows
- Cannot compile and run textured_cube HOT 2
- website: scrolling broken on Google Chrome HOT 1
- math: re-evaluate float precision namespacing approach
- all: nominate Zig 2024.1.0-mach HOT 3
- all: use a small flamethrower to burn branches of our dependency tree 🔥 HOT 2
- mach-glfw: clarify the state of opengl and vulkan examples
- website: getting started guide not working with Zig 0.12.0-dev.2063+804cee3b9 HOT 1
- match-glfw: cannot import with package manager HOT 1
- dxcompiler: re-enable MSVC builds
- {sysaudio,sysgpu}: audit HRESULT success checks
- {core,engine}: sysgpu disabled in v0.3 due to lack of optional Zig dependencies; spirv-cross/spirv-tools are indirect and take a while to build
- core: autodoc segfaults the build if enabled, after Zig 2024.1.0-mach update HOT 1
- core: custom entrypoint build API design broken after Zig 2024.1.0-mach update
- all: nominate Zig 2024.03 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mach.