marp-team / marp-cli

A CLI interface for Marp and Marpit based converters
MIT License
1.85k stars 105 forks source link

marp stuck a long time without any output #561

Closed kongdd closed 9 months ago

kongdd commented 10 months ago

Version of Marp Tool

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

Operating System

Windows

Environment

How to reproduce

slider-deck.md


---
theme: uncover
---

hello


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

Expected behavior

generate pdf

Actual behavior

no response

Additional information

No response

kongdd commented 10 months ago

The version 3.3.0 works. While the latest not.

yhatt commented 10 months ago

Similar: https://github.com/marp-team/marp-vscode/issues/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 commented 9 months ago

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.

nagromc commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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 commented 2 months ago

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.