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

marp stuck a long time without any output #561

Closed
kongdd opened this issue Nov 13, 2023 · 7 comments
Closed

marp stuck a long time without any output #561

kongdd opened this issue Nov 13, 2023 · 7 comments

Comments

@kongdd
Copy link

kongdd commented Nov 13, 2023

Version of Marp Tool

@marp-team/marp-cli v3.4.0 (w/ @marp-team/marp-core v3.9.0)

Operating System

Windows

Environment

  • OS version: win10
  • Node.js: 20.9

How to reproduce

slider-deck.md

---
theme: uncover
---

# hello
marp --pdf slide-deck.md
# [  INFO ] Converting 1 markdown...

Expected behavior

generate pdf

Actual behavior

no response

Additional information

No response

@kongdd kongdd added the bug Something isn't working label Nov 13, 2023
@kongdd
Copy link
Author

kongdd commented Nov 13, 2023

The version 3.3.0 works. While the latest not.

@yhatt
Copy link
Member

yhatt commented Nov 13, 2023

Similar: marp-team/marp-vscode#448

The Chromium browser might be getting stuck while spawning by Puppeteer. What CLI logs will be output if set DEBUG env as puppeteer:*?

set DEBUG=puppeteer:*
marp --pdf slide-deck.md

@yhatt yhatt added need more info and removed bug Something isn't working labels Nov 14, 2023
@yhatt
Copy link
Member

yhatt commented Dec 3, 2023

We are temporarily closing this issue until additional information necessary for verification and reproduction is provided. If the problem persists, please reopen this issue with the required information.

@yhatt yhatt closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2023
@nagromc
Copy link

nagromc commented Dec 29, 2023

Same problem here.

Input

slides.md

---
marp: true
---

# hello

Console output

$ DEBUG=puppeteer:*
$ echo $DEBUG         
puppeteer:*
$ marp --pdf slides.md
(node:9589) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[  INFO ] Converting 1 markdown...

It hangs out indefinitely. And it doesn't seem to log more information.

Environment

macOS Sonoma 14.2.1 (23C71)
Node.js v21.4.0
marp-cli v3.4.0

@yhatt
Copy link
Member

yhatt commented Dec 29, 2023

Have installed the latest version of Chrome? Recent Puppeteer that the current Marp CLI is using may not compatible with previous Chrome versions due to the change of automation protocol for Chrome (WebDriver BiDi).
https://developer.chrome.com/blog/puppeteer-webdriver-bidi-2023

@nagromc
Copy link

nagromc commented Dec 29, 2023

Oh, you are right. I'm not a Chrome user, so my Chrome was still in v108. Upgraded to v120, and now everything is fine. Thanks.

@yz4322gly
Copy link

yes!
i use this cmd :
set DEBUG=puppeteer:* marp --pdf slide-deck.md
Find a suspicious file path
C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe
this appliaction cant open , and than delete it.
reinstall laster chrome
and retry ok.

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

4 participants