HakanL / WkHtmlToPdf-DotNet

C# .NET Core wrapper for wkhtmltopdf library that uses Webkit engine to convert HTML pages to PDF.
GNU Lesser General Public License v3.0
367 stars 66 forks source link

Tests crashing on linux but not windows #14

Closed drdamour closed 3 years ago

drdamour commented 4 years ago

using dotnet test have no issues on windows hosts, but on the ubuntu-latest in azure devops pipeline consistently get this.

i'm sure i'm doing something wrong...just not sure what.


The active test run was aborted. Reason: Test host process crashed : Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at DinkToPdf.PdfTools.Dispose(Boolean disposing)
   at DinkToPdf.PdfTools.Finalize()
HakanL commented 3 years ago

I pushed a potential fix (untested), can you please test it for me?

drdamour commented 3 years ago

off this project for now, so won't be able to get back to it for some time

HakanL commented 3 years ago

Ok, no problem. Do you remember what unit tests you were running, in your own project? Because there aren't any unit tests in this repo. Or you get this error when consuming this NuGet package in a unit test?

HakanL commented 3 years ago

Based on the feedback from #18 I believe this has been fixed. I'm closing this issue, feel free to re-open if it's still an issue.