-
Notifications
You must be signed in to change notification settings - Fork 8
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
MLX support does not seem to work with nix version #110
Comments
seems to be any x11 stuff actually, not specifically mlx i tried this simple gist https://gist.githubusercontent.com/m1nuz/8f8f10a7f8715b62fe79/raw/ac438bd5d757e82c1781d462bfa9be15d657ae31/simple-x11-window.c and built it with |
heres the last lines of an
heres the last lines of an
|
i added a bunch of logs until i found where it got stuck and it appears its here specifically https://github.com/froz42/funcheck/blob/main/host/srcs/run/runner.c#L178 |
Hello, thank for your issue, did you tried the pre-compiled version of funcheck ? I do not think this is related to nix flake |
I can't really run prebuilt dynamically linked executables "easily" :( https://nix.dev/guides/faq#how-to-run-non-nix-executables |
ok so after alot of pain i am trying to find the issue... i added some logs in the mlx hooks...
i also have debug logs in xsync but for some reason they do not appear... int EXPORT XSync(Display *a, Bool b)
{
if (getenv("DEBUG"))
fprintf(stderr, "DEBUG: XSync hook called\n");
(void)a;
(void)b;
exit(0);
return 0;
} ltrace shows that the program does call Xsync....
but yeah the we seem to never get into the xsync hook... edit: int (*EXPORT XSynchronize(Display *display, Bool onoff))()
{
printf("DEBUG: XSynchronize called with display=%p, onoff=%d\n", (void*)display, onoff);
disable_alloc_hooks();
typeof(&XSynchronize) original_function = get_original_function();
int (*result)() = original_function(display, onoff);
enable_alloc_hooks();
return result;
} and i dont see the log when i run funcheck will update this post as i keep trying stuff... |
Describe the bug
I was trying to test my
so_long
project (which usesMinilibX
).If I run
funcheck
on for exampleget_next_line
it works fine.If I run it on my
so_long
project, it seems to hang forever.To Reproduce
Steps to reproduce the behavior:
so_long
project as base (or any project that usesMinilibx
)so_long
)funcheck ./<bin> <args>
Expected behavior
It should not hang.
Screenshots
Additional context
For exact reproduction steps:
as development shell
or as direct build
The text was updated successfully, but these errors were encountered: