-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Unable to export to pdf from markdown #166
Comments
Please upgrade Markdown PDF to ver1.4.3 and try. |
I'm afraid I am still getting the above error in WSL Ubuntu, using v1.4.4. |
I was getting a very similar issue and was able to fix it by installing dependencies that puppeteer needed that were missing on my WSL installation. So I was able to solve it by
I got this from this issue on puppeteer: puppeteer/puppeteer#5468 If I had the error I would paste it here as well, but unfortunately I just fixed it and I don't want to unfix it to show the error. However, I do know that the one dependency it was complaining about was |
On v.1.4.4 in VS Code . Mac OS I get the following new errors today: followed by ERROR: exportPdf() Error: net::ERR_FILE_NOT_FOUND at file:///Users/.... Anyone else experiencing this new error? It was working fine before but seems to have just started throwing errors. |
I was experiencing this same issue in a new WSL 2 install with Ubuntu running v 1.4.4 of this extension and the above solution worked for me. The exact error I received leading me here in case this helps further track this issue was:
|
i had this same error trying to export to pdf from a dev-container based on i just removed libappindicator1 from the long list and it worked: $ sudo apt-get install gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libnss3 lsb-release xdg-utils wget x11vnc x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps xvfb now it works! this leads me to suspect that more in that long list of things to install could be removed, but i haven't the inclination to go through it. |
The following sufficed for me (Windows 10, WSL2, Ubuntu Focal): sudo apt install libxdamage1 libcups2 libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0 |
solved by
from https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md |
I switch to the Windows version of VS Code, reinstalling Markdown PDF, and then generate the HTML from there. |
I dont know much about this stuff, im using VS code for a project and im facing a problem while converting the markdown file to pdf.
I'm using WSL Remote in VScode
I,ve opened the .md file from my project folder
then i right click and select Markdown PDF: export from the list
it gives out 2 errors
1.
ERROR: exportPdf()
2.
Error: Failed to launch chrome! [1202/125726.601876:FATAL:zygote_host_impl_linux.cc(116)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox. #0 0x7fb01cc86879 #1 0x7fb01cbe3c63 #2 0x7fb01cbf8013 #3 0x7fb01e39295e #4 0x7fb01c827adc #5 0x7fb01c87372c #6 0x7fb01c8260b1 #7 0x7fb01c87299d #8 0x7fb01c87270b #9 0x7fb01a6031b8 #10 0x7fb011241b97 #11 0x7fb01a60302a
Received signal 6
#0 0x7fb01cc86879
#1 0x7fb01cbe3c63
#2 0x7fb01cc86401
#3 0x7fb0175e2890
#4 0x7fb01125ee97
#5 0x7fb011260801
#6 0x7fb01cc85265
#7 0x7fb01cbf8461
#8 0x7fb01e39295e
#9 0x7fb01c827adc
#10 0x7fb01c87372c
#11 0x7fb01c8260b1
#12 0x7fb01c87299d
#13 0x7fb01c87270b
#14 0x7fb01a6031b8
#15 0x7fb011241b97
#16 0x7fb01a60302a
r8: 0000000000000000 r9: 00007fffc4b96da0 r10: 0000000000000008 r11: 0000000000000008
r12: 00007fffc4b98068 r13: 00007fffc4b97048 r14: 00007fffc4b97048 r15: 00007fffc4b97060
di: 0000000000000002 si: 00007fffc4b96da0 bp: 00007fffc4b96ff0 bx: 00007fb01160c840
dx: 0000000000000000 ax: 0000000000000000 cx: 0000000000000008 sp: 00007fffc4b96da0
ip: 00007fb01125ee97 efl: 0000000000000246 cgf: 00000053002b0033 erf: 0000000000000000
trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
Calling _exit(1). Core file will not be generated.
TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
please tell me how to fix thisExtension version: 1.4.1
VS Code version: Code 1.40.2 (f359dd69833dd8800b54d458f6d37ab7c78df520, 2019-11-25T14:54:45.096Z)
OS version: Windows_NT x64 10.0.18362
Remote OS version: Linux x64 4.4.0-18362-Microsoft
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Process Info
Workspace Info
The text was updated successfully, but these errors were encountered: