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

I can't convert to pdf or pptx on Windows Subsystem for Linux #175

Closed
oren opened this issue Oct 24, 2019 · 5 comments · Fixed by #176
Closed

I can't convert to pdf or pptx on Windows Subsystem for Linux #175

oren opened this issue Oct 24, 2019 · 5 comments · Fixed by #176
Labels
bug Something isn't working

Comments

@oren
Copy link

oren commented Oct 24, 2019

I am using an Ubuntu shell inside Windows (Windows Subsystem for Linux). Running --server and --html works but when I try --pdf or --pptx the command continues forever and I never get the cursor back.

Any idea how to troubleshoot this?

@yhatt
Copy link
Member

yhatt commented Oct 25, 2019

I'll test later in same environment to try reproduce. Some advice I can tell now:

@yhatt
Copy link
Member

yhatt commented Oct 25, 2019

If you want troubleshooting in myself environment, DEBUG=* env would help to check working some dependent modules. (Please careful it might output very huge log)

DEBUG=* marp xxxxxx.md

@oren
Copy link
Author

oren commented Oct 26, 2019

awesome advice. I'll try it out in a few days and will report back

@yhatt
Copy link
Member

yhatt commented Nov 3, 2019

I've confirmed the same issue on Marp for VS Code + Remote WSL. (marp-team/marp-vscode#89)

According to debug log (DEBUG=*), Puppeteer seems to fail execute installed Chrome in Windows host.

[  INFO ] Converting 1 markdown...
  puppeteer:protocol SEND ► {"method":"Target.setDiscoverTargets","params":{"discover":true},"id":1} +0ms
  puppeteer:protocol ◀ RECV {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"170035E506EBF2213D1473583EEC98A7","type":"page","title":"","url":"about:blank","attached":false,"browserContextId":"E9E0AB510BF8FD88BC02217A79F4C278"}}} +4ms
  puppeteer:protocol ◀ RECV {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"26db2069-c3c7-4a29-9e15-20b5f25cc0b6","type":"browser","title":"","url":"","attached":false}}} +0ms
  puppeteer:protocol ◀ RECV {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"720114e9-3491-4b37-84a6-ff9968c0057f","type":"browser","title":"","url":"","attached":true}}} +1ms
  puppeteer:protocol ◀ RECV {"id":1,"result":{}} +0ms
  puppeteer:protocol SEND ► {"method":"Target.createTarget","params":{"url":"about:blank"},"id":2} +1ms
  puppeteer:protocol ◀ RECV {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"5ECF9FB590AA1CDCDCF48B81A23FA7D6","type":"page","title":"","url":"","attached":false,"browserContextId":"E9E0AB510BF8FD88BC02217A79F4C278"}}} +2ms
  puppeteer:protocol ◀ RECV {"id":2,"result":{"targetId":"5ECF9FB590AA1CDCDCF48B81A23FA7D6"}} +1ms
  puppeteer:protocol ◀ RECV {"method":"Target.targetCrashed","params":{"targetId":"5ECF9FB590AA1CDCDCF48B81A23FA7D6","status":"failed to launch","errorCode":2}} +1ms

@yhatt
Copy link
Member

yhatt commented Nov 3, 2019

@oren I've confirmed a patched v0.15.1 is working PDF conversion in the WSL environment correctly.

Please report again if still failing conversion in the latest version of CLI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants