clinicjs / node-clinic

Clinic.js diagnoses your Node.js performance issues
https://clinicjs.org
MIT License
5.69k stars 125 forks source link

Analysing dataError: premature close #436

Open juanTurk opened 2 years ago

juanTurk commented 2 years ago

I have a problem rendering the results in a big proyect. I'm using node version 16.15.1

Comand run:

clinic bubbleprof -- node index.js

Error:

[=== ] Analysing dataError: premature close
    at onclosenexttick (.../.nvm/versions/node/v16.15.1/lib/node_modules/clinic/node_modules/end-of-stream/index.js:53:86)
    at processTicksAndRejections (node:internal/process/task_queues:78:11)

Any idea if there is an alternative solution for this problem? Thanks

RafaelGSS commented 2 years ago

Unfortunately, this is a known issue in the end-of-stream library, while it wasn't fixed yet I suggest:

and collect more data before closing the process.

eyousefifar commented 2 years ago

I encountered the same problem on clinic v11.1.2 and bubbleprof v8.0.1. cleaning the directory does not work. I have patched end-of-stream with https://github.com/mafintosh/end-of-stream/pull/13 and the premature close error is fixed. but when I load generated HTML, It is stuck in the loading state. btw, clinic doctor and flame work perfectly.

machadodev commented 2 years ago

@eyousefifar I've got the same problem here. I thought it was taking too long because of my computer, but it looks like it hangs no matter what...

jonataswalker commented 1 year ago

Same here 😢

Can't use bubbleprof. Cleaning as suggested. Running autocannon for 5 minutes, no matter what.

robross0606 commented 10 months ago

Same problem here with clinic doctor.

[    ] Received Ctrl+C, closing process...process exited with exit code 1
[====] Analysing dataError: premature close
    at onclosenexttick (C:\User\AppData\Local\Volta\tools\image\packages\clinic\node_modules\clinic\node_modules\end-of-stream\index.js:53:86)
    at processTicksAndRejections (internal/process/task_queues.js:77:11)