slidev icon indicating copy to clipboard operation
slidev copied to clipboard

Can't export a larger presentation – timeout exceeded

Open gy-mate opened this issue 10 months ago • 4 comments

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)

gy-mate avatar Apr 10 '24 22:04 gy-mate

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

kermanx avatar Apr 11 '24 04:04 kermanx

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

gy-mate avatar Apr 11 '24 09:04 gy-mate

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

kermanx avatar Apr 11 '24 09:04 kermanx

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

gy-mate avatar Apr 11 '24 10:04 gy-mate