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

wkhtmltopdf.exe crashes due to missing MSVCP140.dll #579

Closed
mibere opened this issue Oct 3, 2019 · 3 comments
Closed

wkhtmltopdf.exe crashes due to missing MSVCP140.dll #579

mibere opened this issue Oct 3, 2019 · 3 comments
Assignees
Labels

Comments

@mibere
Copy link

mibere commented Oct 3, 2019

Windows 8.1 (German), 64bit, .NET 4.8, Windows updates as of 2. October 2019
Markdown Monster 1.19.8.1 installed via MarkdownMonsterSetup.exe in default folder (C:\Users\xxxxx\AppData\Local\Markdown Monster)

Actions:

  • File menu -> Save To -> Save to Pdf
  • in Save as Pdf File dialog change nothing (all default) -> [Generate PDF File]
  • in Save output to PDF file dialog just press [Enter]

=> app crash of wkhtmltopdf.exe:

appcrash

By executing the PDF creation command line manually in a CMD it shows that the file MSVCP140.dll is missing:

missingfile

@mibere
Copy link
Author

mibere commented Oct 5, 2019

The file MSVCP140.dll seems to be part of Microsoft Visual C++ 2015 Redistributable, and that is not installed on my system.

MM should include the file (in the wkhtmltopdf.exe folder?), or should install the Microsoft Visual C++ 2015 Redistributable.

@RickStrahl
Copy link
Owner

Thanks for reporting.

What version of .NET are you running? I suspect using a newer .NET Version will address this on Windows 7-8.1.

This is the first report I have of this. MSVCP140.dll is part of the Windows install, but it's possible that on old versions of Windows (and .NET) so I'm not super keen to add this to the installer. Especially given that shortly we'll be bumping up the .NET Framework requirement to .NET 4.7.2 which I believe includes the dll.

For now a quick way to install it:

choco install vcredist140

I can also add this to the Chocolatey installs although that breaks the no-admin installer as these files need to go into the system folder.

@mibere
Copy link
Author

mibere commented Oct 7, 2019

My Windows 8.1 was a nearly fresh install, with nearly no other software installed - even no manually installed .NET.

Saving to PDF was successful after manually installing a Microsoft Visual C++ 2015 Redistributable - now the DLL exists.
This was the first time I had to do that. Other software installers include such a needed Redistributable package, or download and run it automatically.

@RickStrahl RickStrahl added feature discussion uncommon scenario This is a request or bug that is labels Oct 12, 2019
@RickStrahl RickStrahl self-assigned this Oct 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants