Skip to content
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

Analysing dataError: premature close #436

Open
juanTurk opened this issue Jul 25, 2022 · 5 comments
Open

Analysing dataError: premature close #436

juanTurk opened this issue Jul 25, 2022 · 5 comments

Comments

@juanTurk
Copy link

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
Copy link
Contributor

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.

@eyousefifar
Copy link

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 mafintosh/end-of-stream#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
Copy link

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

@RafaelGSS RafaelGSS transferred this issue from clinicjs/node-clinic-bubbleprof Mar 18, 2023
@jonataswalker
Copy link

jonataswalker commented May 24, 2023

Same here 😢

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

@robross0606
Copy link

robross0606 commented Jan 27, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants