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

Infinite loop / memory leak #229

Open
auxym opened this issue Jan 9, 2022 · 1 comment
Open

Infinite loop / memory leak #229

auxym opened this issue Jan 9, 2022 · 1 comment

Comments

@auxym
Copy link

auxym commented Jan 9, 2022

Repro:

  1. Clone this repository: https://github.com/hathach/tinyusb
  2. In the root, run c2nim --header --nep1 --skipinclude --skipcomments src/class/hid/hid.h

On my laptop, with c2nim v0.9.18, this never seems to stop running, and after a couple minutes, it's up to multiple GBs of memory use, the system is paging, and c2nim slows to a crawl (at which point I kill it).

Warning: the entire library is a huge soup of macros.

@EriKWDev
Copy link

EriKWDev commented Oct 13, 2024

The same happens on the webgpu.h header from https://raw.githubusercontent.com/webgpu-native/webgpu-headers/refs/heads/main/webgpu.h

It peaked at 64GB ram usage after several minutes of running and I had to kill it. No flags, just c2nim webgpu.h

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