1.19.0 hangs after a sysctlbyname kern.nx warning
See original GitHub issueSteps to reproduce
Tell us about your environment:
- Puppeteer version: 1.19.0
- Platform / OS version: Mac OS 10.14.5; Ubuntu Xenial on Travis CI
- Node.js version: 8, 10, 12
Tested in both environments and the only working combination is Xenial + Node 12.
What steps will reproduce the problem? Running our test suite. I have tried to find minimal reproduction code without success. There are just too many variables. It runs just fine on previous versions of Puppeteer though.
What is the expected result? Puppeteer does not hang.
What happens instead? Promises from Puppeteer stop resolving and the script gets stuck. It does not appear to have anything to do with the code itself, because:
- It always happens at a certain point in the code, after quite a lot of operations, where a
page.*()
is awaited. Thispage.*()
function is never executed. I assume this because whenpage.evaluate()
is used as the infringing function, itspageFunction
has no effect in the browser. - When the infringing code is removed / commented out, the script continues fine, until it reaches another
page.*()
function and hangs again. - Once the next infringing function is removed, the script continues to the next function and so on.
Sadly, the only thing I was able to find now, is that there’s always a warning printed to the dumpio
console when the script hangs.
From Mac OS:
[0730/111519.065822:WARNING:system_snapshot_mac.cc(42)] sysctlbyname kern.nx: No such file or directory (2)
Additionally, there’s this warning printed before the first one, but I feel it’s unrelated.
[0730/111518.892299:WARNING:process_memory_mac.cc(93)] mach_vm_read(0x7ffee8c41000, 0x2000): (os/kern) invalid address (1)
Sorry for skipping the line, but I wanted to bring this to your attention @aslushnikov, because the behavior is really weird and might be caused by some deeper rooted issue.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (4 by maintainers)
Top GitHub Comments
I get the same error after upgrading macOS to Catalina. I’m not using any flags when starting Chrome. It happens when run tests in an Angular app using Karma. Any ideas what might cause this?
@knownasilya
https://bugs.chromium.org/p/chromium/issues/detail?id=982977 is the problem https://bugs.chromium.org/p/chromium/issues/detail?id=737678 shows the flag is not needed anymore anyway