slidev icon indicating copy to clipboard operation
slidev copied to clipboard

Local server extremely slow since 0.27

Open derkoe opened this issue 3 years ago • 4 comments

Describe the bug Since version 0.27 slidev hangs (or is very slow) when running from a project with multiple slides.

To Reproduce Steps to reproduce the behavior:

  1. Clone https://github.com/fguisso/talks.git
  2. Update the dependency of @slidev/cli to the current version (0.28.5)
  3. run npm i
  4. run npm run dev -- slides/top-10.md
  5. See the process hanging/running at 100% cpu. It will finish after 1-2 minutes building

Desktop (please complete the following information):

  • OS: Linux fedora 5.16.8-200.fc35.x86_64
  • Browser: any
  • Slidev version: 0.28.5

derkoe avatar Feb 16 '22 20:02 derkoe

On windows the server will not even start if the markdown files are in a subdirectory with error: [vite] Internal server error: EMFILE: too many open files

Last known working version was 0.27.13. It may be the same error: Does it start normally if you put top-10.md in the project root directory?

chartinger avatar Apr 29 '22 13:04 chartinger

I run macOS and have the same problem

YeautyYE avatar Jun 13 '22 00:06 YeautyYE

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 14 '22 16:09 stale[bot]

This is still a problem - bump.

derkoe avatar Sep 14 '22 16:09 derkoe

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 14 '22 00:11 stale[bot]

Just tried it with 0.36.11 - still the same behaviour

derkoe avatar Nov 23 '22 06:11 derkoe

Hi,

Same behaviour here, tested with :

  • Node 18 LTS and 20
  • Slidev v0.40.16 and v0.42.4
  • Ubuntu 20.04 WSL2 and Oracle Linux 8.7

Browser : Firefox 113

Could we reopen this issue ? @antfu maybe ?

Thanks !

lgatellier avatar Jun 14 '23 12:06 lgatellier