Skip to content
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

Computer freeze: c2nim on Linux, translating AnsiC header file #237

Open
heysokam opened this issue Apr 16, 2022 · 2 comments
Open

Computer freeze: c2nim on Linux, translating AnsiC header file #237

heysokam opened this issue Apr 16, 2022 · 2 comments

Comments

@heysokam
Copy link

System: Arch Linux
Console application: Alacritty
Shell: Bash
c2nim Version: 0.9.18
Command executed: c2nim vk_platform.h
File: https://github.com/JBustos22/oDFe/blob/master/code/renderercommon/vulkan/vk_platform.h

Result:
Console freezes after giving warnings about some comments being ignored.
If enough time passes, memory continues filling up until the computer completely freezes and becomes non-responsive.

@the-argus
Copy link

the-argus commented Feb 28, 2023

Exact same issue for me in my ODE bindings repo. It's much easier to reproduce sokam's example because its smaller, but if you have nix installed then you can clone my repo at commit ea461f267b28b3e5bf5ed236b5855dc18c59e766 and just run nix build to see the bug.

@the-argus
Copy link

In @heysokam 's case, it is caused by line 42, as a result of (it seems) the two underscores in __stdcall. Also, you can fix the issue by removing line 56, for some reason. Or by moving it before the __stdcall. I have no clue what's going on here but I would really appreciate a fix because I can't get my ODE bindings until it is fixed :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants