-
Notifications
You must be signed in to change notification settings - Fork 29
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
Unclosed streams caused FS error after calling jq.json 2048 times. #18
Comments
Do you know how to fix it? |
I've tried commenting the 2 lines and seems no negative impacts happened. Is it for large content or something? |
I don't remember. All I have are the same hints you do: Lines 17 to 21 in cf1752c
"calling main closes stdout, so we reopen here". Maybe this means the negative impacts would only be felt in the second run? |
I'm using a fix like below and so far it works for me.
|
I've got FS error after 2048 times calling jq.json.
I debugged and found unclosed streams in FS.streams caused by https://github.com/fiatjaf/jq-web/blob/master/post.js#L20.
Below code can show the error.
You'll get
...
{ ok: 2046 }
Error: FS error
Error: FS error
..../jq.asm.bundle1.js:122
throw ex
^
Error: abort(Error: FS error). Build with -s ASSERTIONS=1 for more info.
The text was updated successfully, but these errors were encountered: