animetosho / ParPar

High performance PAR2 create client for NodeJS
195 stars 21 forks source link

parpar: ../deps/uv/src/unix/core.c:254: uv__finish_close: Assertion `handle->flags & UV_HANDLE_CLOSING' failed. #55

Closed mohitjoshi155 closed 11 months ago

mohitjoshi155 commented 12 months ago

parpar: ../deps/uv/src/unix/core.c:254: uv__finish_close: Assertion `handle->flags & UV_HANDLE_CLOSING' failed.

this error happens sometimes

animetosho commented 12 months ago

Thanks for the report - could you provide the following info?

mohitjoshi155 commented 12 months ago

NAME="Ubuntu" VERSION="20.04.6 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian

parpar version 0.4.2

i am using pre built binary amd one from releases section

node version v18.18.0(updated...error is still coming after update)

command Generating par2: parpar -s5M -r1n*0.6 -m2048M -p1l --progress stderr -q -o /tmp/EbrLp9kYflSEw3e4U/EbrLp9kYflSEw3e4U.par2 -R /tmp/EbrLp9kYflSEw3e4U Calculating : 40.67% parpar: ../deps/uv/src/unix/core.c:254: uv__finish_close: Assertion `handle->flags & UV_HANDLE_CLOSING' failed.

Error during par2 generation: 6 => par2 exit code: 6

error occurs randomly ,like when i upload a whole season in few episode files this error will occur other times it works perfectly having no issue

animetosho commented 12 months ago

Thanks for the extra info!
Unfortunately, I can't reproduce your issue, and I'm not able to see any obvious candidate as to why it's occurring.

mohitjoshi155 commented 12 months ago

yes static build I think this error is only happening for small files like 100 to 300 mb files that also for some random files I noticed that increasing the slices size and reducing memory helps with this error to some extent I have not encountered this error for big files yet seems very specific issue,not a big deal I am closing the issue for now if you dont mind

Thanks for replying Sir, appreciate your efforts

animetosho commented 11 months ago

Thanks for more info. I've been trying a bunch of things to try to find it, but haven't been successful getting anywhere.

Would you happen to be low on free memory perhaps?

Otherwise I'm interested to hear if anyone else is getting similar issues.

animetosho commented 11 months ago

By pure luck, I managed to encounter this. Unfortunately I can't get it to happen again, but I have a theory, so implemented a fix.

Are you able to try a build from the dev branch? Otherwise I might sort out a release with this fix.

animetosho commented 11 months ago

v0.4.3 released, which should hopefully fix this issue. If you try it out, please let me know how well it fares.