node-clinic icon indicating copy to clipboard operation
node-clinic copied to clipboard

Analysing dataError: premature close

Open juanTurk opened this issue 3 years ago • 6 comments

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

juanTurk avatar Jul 25 '22 14:07 juanTurk

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

  • remove .clinic/ folder
  • remove node_trace* files

and collect more data before closing the process.

RafaelGSS avatar Jul 25 '22 15:07 RafaelGSS

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.

eyousefifar avatar Aug 14 '22 06:08 eyousefifar

@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...

machadodev avatar Oct 05 '22 21:10 machadodev

Same here 😢

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

jonataswalker avatar May 24 '23 13:05 jonataswalker

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)

robross0606 avatar Jan 27 '24 12:01 robross0606