glint icon indicating copy to clipboard operation
glint copied to clipboard

Syntax error in tsconfig.json causes out-of-memory error

Open NullVoxPopuli opened this issue 2 years ago • 3 comments
trafficstars

This was a goofy discovery :sweat_smile:

I kept getting OOM exceptions from node when trying to run glint via pnpm lint:types (package.json "lint:types": "glint"), so I kept increasing the amount of memory used -- I finally ended up with

NODE_OPTIONS="--max-old-space-size=12000" pnpm lint:types # or just pnpm glint directly

And I forgot the process was running cause prior attempts at increase the node ram were getting slower and slower -- this ultimately took 36 minutes before the OOM error occurred.

I was ultimately trying to debug performance, and eventually ran:

pnpm tsc --generateTrace trace.txt --traceResolution

(or something to that effect) And tsc provided me the error right away: image

So, from my perspective, it looks like glint is trying to do something and continuing to do something even thought tsc should error? idk.

NullVoxPopuli avatar Aug 29 '23 01:08 NullVoxPopuli

Thanks for the report; this seems like a case where Glint should be bailing and is not! Do you happen to have a minimal reproduction of this?


Aside: In the future, please copy and paste the output rather than sharing a screenshot. Screenshots are fundamentally not accessible to lots of folks who may need to interact with the repo. I happen to be well-sighted, but not everyone is!

chriskrycho avatar Sep 01 '23 15:09 chriskrycho

Screenshots are fundamentally not accessible to lots of folks who may need to interact with the repo

yes, I did not have the text available at the time. <3

NullVoxPopuli avatar Sep 01 '23 16:09 NullVoxPopuli

Do you happen to have a minimal reproduction of this?

I do not :(

NullVoxPopuli avatar Sep 01 '23 16:09 NullVoxPopuli