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

Can't export a larger presentation – timeout exceeded #1514

Open
gy-mate opened this issue Apr 10, 2024 · 4 comments
Open

Can't export a larger presentation – timeout exceeded #1514

gy-mate opened this issue Apr 10, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@gy-mate
Copy link
Contributor

gy-mate commented Apr 10, 2024

Describe the bug
I can't export a presentation (which is quite large) because slidev hits the timeout—even when it's several minutes long.

To reproduce
Steps to reproduce the behavior:

  1. Clone this repo
  2. git checkout dev_main
  3. git checkout 64e6767e
  4. cd presentation
  5. slidev export --timeout 380000
  6. The command exits with the following error:
  ●■▲
  Slidev  v0.49.0-beta.1 (global)

  theme       @slidev/theme-apple-basic
  css engine  unocss
  entry       /Users/gymate1/Desktop/drop/python/kalauz/presentation/slides.md
  ■ rendering...page.goto: Timeout 380000ms exceeded.
Call log:
  - navigating to "http://localhost:12445/print?print=true", waiting until "networkidle"

    at go (/opt/homebrew/lib/node_modules/@slidev/cli/dist/export-H5Y2LN6J.mjs:156:16)
    at genPagePdfOnePiece (/opt/homebrew/lib/node_modules/@slidev/cli/dist/export-H5Y2LN6J.mjs:278:11)
    at genPagePdf (/opt/homebrew/lib/node_modules/@slidev/cli/dist/export-H5Y2LN6J.mjs:330:46)
    at exportSlides (/opt/homebrew/lib/node_modules/@slidev/cli/dist/export-H5Y2LN6J.mjs:383:11)
    at async Object.handler (/opt/homebrew/lib/node_modules/@slidev/cli/dist/cli.mjs:422:22) {
  name: 'TimeoutError'
}

Desktop

  • OS: macOS 14.4.1
  • Browser: N/A
  • Slidev version: 0.49.0-beta.1 (global)
@KermanX
Copy link
Member

KermanX commented Apr 11, 2024

Try going to http://localhost:3030/print?print and use the browser to print the slides?

@gy-mate
Copy link
Contributor Author

gy-mate commented Apr 11, 2024

@KermanX Thank you, that works! :) It's a good workaround, but unfortunately I can't reduce the margins to zero due to the printing limitations of the system.

@KermanX
Copy link
Member

KermanX commented Apr 11, 2024

If you use Edge, there is a “more settings" panel, where you can set "margin" to 0

@gy-mate
Copy link
Contributor Author

gy-mate commented Apr 11, 2024

@KermanX Thanks for the tip, but unfortunately presentations opened in Chrome or Edge are currently rendered with the wrong font.

@KermanX KermanX added the enhancement New feature or request label Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants