Failing to render HTML using .NET 6 SDK

Product: PDFTron.NET / HTML2PDF module

Product Version: 9.2.0

Please give a brief summary of your issue:
I’m generating a sample using a demo key to evaluate this software on behalf of my company. My sample is failing when I convert HTML to PDF with a Chromium error.

Please describe your issue and provide steps to reproduce it:
I have used the documentation here [link redacted]documentation/linux/guides/features/conversion/convert-html to create an example built on .NET 6 on x64 windows. The project is an ASP.NET Core 6 web application. I have installed PDFTron via the NuGet package PDFTron.NET.x64.9.2.0, and the HTML2PDF module. I used pretty much the sample code as is, but my example is failing immediately with the following error:

[0208/145301.266:WARNING:resource_bundle.cc(447)] locale_file_path.empty() for locale
[0208/145301.286:INFO:content_main_runner_impl.cc(1157)] Chrome is running in full browser mode.
[0208/145301.361:FATAL:thread_restrictions.cc(104)] Check failed: !*GetBlockingDisallowedTls(). Function marked as blocking was called from a scope that disallows blocking! If this task is running inside the ThreadPool, it needs to have MayBlock() in its TaskTraits. Otherwise, consider making this blocking work asynchronous or, as a last resort, you may use ScopedAllowBlocking (see its documentation for best practices).
g_blocking_disallowed 1 set by
Backtrace:
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDBC22C2+9198386]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDB0B512+8449410]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDBAFE7E+9123566]
Ordinal0 [0x00007FF7BBDCF274+20574836]
Ordinal0 [0x00007FF7BB759160+13799776]
Ordinal0 [0x00007FF7BC36E16A+26468714]
Ordinal0 [0x00007FF7BBDCEDB8+20573624]
Ordinal0 [0x00007FF7BBDD190D+20584717]
IsSandboxedProcess [0x00007FF7BE540368+2248504]
Ordinal0 [0x00007FF7BC6E3AB4+30096052]
Ordinal0 [0x00007FF7BC6E62B9+30106297]
Ordinal0 [0x00007FF7BC6E5893+30103699]
Ordinal0 [0x00007FF7BC6E3222+30093858]
Ordinal0 [0x00007FF7BC6E37B7+30095287]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDAF5F50+8361920]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDAF5DD1+8361537]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDAF5B0A+8360826]
Ordinal0 [0x00007FF7BAA31032+4146]
GetHandleVerifier [0x00007FF7C28A6D98+70402184]
BaseThreadInitThunk [0x00007FFA28BF7034+20]
RtlUserThreadStart [0x00007FFA29E82651+33]

Backtrace:
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDBC22C2+9198386]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDB0B512+8449410]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDB22195+8542725]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDB23350+8547264]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDBAE93B+9118123]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDBA9C4A+9098426]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDBCF6C9+9252665]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDBE9C3C+9360556]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDBE9110+9357696]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDBE8549+9354681]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BE0D36D3+14511939]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BE0D3589+14511609]
Ordinal0 [0x00007FF7BC3ADABF+26729151]
Ordinal0 [0x00007FF7BC3AD09F+26726559]
Ordinal0 [0x00007FF7BC3ADC14+26729492]
Ordinal0 [0x00007FF7BC3C03FA+26805242]
Ordinal0 [0x00007FF7BC2607ED+25364461]
Ordinal0 [0x00007FF7BC27FDE3+25492963]
Ordinal0 [0x00007FF7BC3D96EA+26908394]
Ordinal0 [0x00007FF7BC3CDCA8+26860712]
Ordinal0 [0x00007FF7BC3CDE51+26861137]
Ordinal0 [0x00007FF7BC236FB5+25194421]
Ordinal0 [0x00007FF7BC23046C+25166956]
Ordinal0 [0x00007FF7BC22F159+25162073]
Ordinal0 [0x00007FF7BC22E3AF+25158575]
Ordinal0 [0x00007FF7BC10907F+23957631]
Ordinal0 [0x00007FF7BC1D328E+24785550]
Ordinal0 [0x00007FF7BC198CE1+24546529]
Ordinal0 [0x00007FF7BC197DD6+24542678]
IsSandboxedProcess [0x00007FF7BE53B13E+2227470]
IsSandboxedProcess [0x00007FF7BE53AA4D+2225693]
IsSandboxedProcess [0x00007FF7BE539947+2221335]
IsSandboxedProcess [0x00007FF7BE53D32F+2236159]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDAEF966+8335830]
Ordinal0 [0x00007FF7BB2E0858+9111640]
Ordinal0 [0x00007FF7BBB946D0+18237136]
Ordinal0 [0x00007FF7BAB54668+1197672]
IsSandboxedProcess [0x00007FF7BE56693C+2405644]
IsSandboxedProcess [0x00007FF7BE5669FB+2405835]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDB82940+8937904]
IsSandboxedProcess [0x00007FF7BE56C625+2429429]
IsSandboxedProcess [0x00007FF7BE56BCC8+2427032]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDBCC27A+9239274]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDBCB393+9235459]
IsSandboxedProcess [0x00007FF7BE56DB03+2434771]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDB6646B+8821979]
Ordinal0 [0x00007FF7BBDCFFCD+20578253]
Ordinal0 [0x00007FF7BBDD1DBF+20585919]
IsSandboxedProcess [0x00007FF7BE5403E0+2248624]
Ordinal0 [0x00007FF7BC6E3AB4+30096052]
Ordinal0 [0x00007FF7BC6E62B9+30106297]
Ordinal0 [0x00007FF7BC6E5893+30103699]
Ordinal0 [0x00007FF7BC6E3222+30093858]
Ordinal0 [0x00007FF7BC6E37B7+30095287]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDAF5F50+8361920]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDAF5DD1+8361537]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDAF5B0A+8360826]
Ordinal0 [0x00007FF7BAA31032+4146]
GetHandleVerifier [0x00007FF7C28A6D98+70402184]
BaseThreadInitThunk [0x00007FFA28BF7034+20]
RtlUserThreadStart [0x00007FFA29E82651+33]
Task trace:
Backtrace:
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDAEF276+8334054]
CrashForExceptionInNonABICompliantCodeRange [0x00007FF7BDAEF276+8334054]

Exit code: 0X80000003

Any help would be appreciated. I am evaluating this product for an enterprise license so I’d love to get this working so we can select a product. Thanks!

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Thank you for contacting us about this. Just to get more information about the issue, could you please provide us with the code you are using, along with any input files? If possible, please provide us with a sample project (or modify the samples to produce the issue), as that would be most helpful with our investigation.

Thank you.

I tried to attach a minimal sample project (you will need to drop the HTML2PDFLinux and HTML2PDFWindows modules yourself as they are too large to upload)
PdfTronSample.zip (2.4 KB)

Thank you for the code. With the latest HTML2PDF conversion modules downloaded from the website, I was able to successfully run the sample you provided without any errors.

Are you able to reproduce with the latest versions on the site? In addition, are there any other steps I need to take in order to reproduce the issue?