-
Notifications
You must be signed in to change notification settings - Fork 12
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
Any chance for .NET 8 support? #122
Comments
Hi @auriorx There are a few changes related to the move from AL2 to AL2023 linux base. I have some improvements in our tests and most of the work to support the dotnet8 preview on this PR Right now chrome is launching and loading a page, but then crashing. I believe it is due to the underlying lib used for SSL. I have gotten pulled away due to other priorities, but I'm hopeful I can get this working before .NET 8 is launched officially. Feel free to take a look and let me know if you are able to find any more details. |
Hi again! Thanks for the quick reply. I've tried to do some things to fix the issue for my specific use-case (which is PDF generation, not browsing and downloading an image). I see the exact same error (bottom of my post). It appears the browser also crashes when injecting a new page with some HTML content and trying to conver that to a PDF. I've also ran the chromium browser with I've changed the test to the following to try and test the PDF generation.
Unfortunately, my lack of expertise halts my progress at this time. I hope this information is useful to you when you (or someone else) get(s) back to this project
|
I moved work for this over to #123 |
Hi @brianfeucht Are there any updates regarding this issue? |
We still have the same issue with the new OS used for the .NET 8 lambda image. You can repo it locally building and running the sample .net 8 app. I have this PR open and it is failing on GHA: https://github.com/litmus/HeadlessChromium.Puppeteer.Lambda.Dotnet/actions/runs/8300910966/job/22719842699?pr=123 I have not been able to make any progress in figuring out why this is failing. Feel free to jump in. If you are able to resolve it, I'd be happy to accept a PR for it. |
Our .net 8 build runs fine on the new .NET 8 (C#/PowerShell) runtime, however, it is missing the fonts so the result is missing all the text. We use this for receipt generation so we had to roll back to the .NET version. |
I think the fonts are missing because when the brotli files are extracted the |
@nromano32 & @zlangner best place to find documentation on fonts is on the upstream chromium project - https://github.com/Sparticuz/chromium?tab=readme-ov-file#fonts Feel free to either open a PR or a different github issue if you run into a specific bugs or improvements to this lib. I'd like to keep this issue dedicated to getting .NET 8 runtime support working |
This is resolved via #136 |
Hi!
Not sure if you're already working on this, but the current preview SDK of AWS lambda dotnet:8 doesn't seem to be able to launch the browser.
Failed to launch browser! /tmp/chromium: error while loading shared libraries: libnspr4.so: cannot open shared object file: No such file or directory\n
Even after I build my Dockerfile to fetch that lib, it still leaves me with
Failed to launch browser!
without any other error message.Thank you!
The text was updated successfully, but these errors were encountered: