GoogleChrome / lighthouse

Automated auditing, performance metrics, and best practices for the web.
https://developer.chrome.com/docs/lighthouse/overview/
Apache License 2.0
28.08k stars 9.33k forks source link

Could not create page handle for the target page #15530

Open henning-kln opened 9 months ago

henning-kln commented 9 months ago

FAQ

URL

https://example.com/auth

What happened?

The report crashed and showed a error window, with the message to report it to github.

What did you expect?

I expected to run the test

What have you tried?

Other pages without connecting to a phone. Then it works, with the debugging the phone, it doesn't work.

How were you running Lighthouse?

Chrome DevTools

Lighthouse Version

The newest Version with Chrome

Chrome Version

117.0.0.0

Node Version

No response

OS

Windows, Manjaro Linux

Relevant log output

Channel: DevTools
Initial URL: https://example.com/auth
Chrome Version: 117.0.0.0
Stack Trace: Error: Could not create page handle for the target page
    at i (devtools://devtools/remote/serve_internal_file/@588c66dfb93af8aa3bb790479b69bb79e1bf194a/devtools-frontend/front_end/entrypoints/lighthouse_worker/lighthouse_worker.js:1:2404)
    at async self.onmessage (devtools://devtools/remote/serve_internal_file/@588c66dfb93af8aa3bb790479b69bb79e1bf194a/devtools-frontend/front_end/entrypoints/lighthouse_worker/lighthouse_worker.js:1:3002)
adamraine commented 9 months ago

I haven't reproduced this yet, and there could be a lot of different reasons for this error.

Other pages without connecting to a phone. Then it works, with the debugging the phone, it doesn't work.

Are you connection to a remote device? Can you provide more details about this setup?

henning-kln commented 9 months ago

Yes only on remote devices, on chrome itself it works fine on every page. I tried it on a Google Pixel 7a (Android 14 Beta fully updated) and a Xiaomi A2 (Android 13 fully updated)

adamraine commented 9 months ago

Gotcha, I can reproduce this.

adamraine commented 9 months ago

So I can repro on Chrome Stable (M117), but Lighthouse works on Chrome Canary (M120). @henning-kln can you confirm if using a newer version of Chrome fixes the issue for you?

henning-kln commented 9 months ago

Where can i select Chrome Canary

adamraine commented 9 months ago

https://www.google.com/chrome/canary/

henning-kln commented 9 months ago

thx, but Linux is not supported

henning-kln commented 9 months ago

On Windows with Chrome Canary: Could not create page handle for the target page

Channel: DevTools
Initial URL: https://example.cm/auth
Chrome Version: 120.0.0.0
Stack Trace: Error: Could not create page handle for the target page
    at i (devtools://devtools/remote/serve_internal_file/@588c66dfb93af8aa3bb790479b69bb79e1bf194a/devtools-frontend/front_end/entrypoints/lighthouse_worker/lighthouse_worker.js:1:2404)
    at async self.onmessage (devtools://devtools/remote/serve_internal_file/@588c66dfb93af8aa3bb790479b69bb79e1bf194a/devtools-frontend/front_end/entrypoints/lighthouse_worker/lighthouse_worker.js:1:3002)

It doesn't matter which device (Pixel 7a or Xiaomi A2)

adamraine commented 9 months ago

@henning-kln can you provide the full version from your canary if you go to chrome://version/

DmitryEfimenko commented 3 months ago

The error occurs for me when trying to inspect a tab open with Samsung browser. For example, https://www.x.com

Could not create page handle for the target page

Channel: DevTools
Initial URL: https://twitter.com/
Chrome Version: 123.0.0.0
Stack Trace: Error: Could not create page handle for the target page
    at i (devtools://devtools/remote/serve_rev/@1404acff38afe99f1585ba7d820005d6ca209351/entrypoints/lighthouse_worker/lighthouse_worker.js:1:2404)
    at async self.onmessage (devtools://devtools/remote/serve_rev/@1404acff38afe99f1585ba7d820005d6ca209351/entrypoints/lighthouse_worker/lighthouse_worker.js:1:3002)

Chrome version on PC: Version 123.0.6312.106 (Official Build) (64-bit)

Samsung Internet Browser version on Phone: Version 24.0.7.1 (latest)

Phone: Pixel 6a Andrpoid 14

adamraine commented 3 months ago

The error occurs for me when trying to inspect a tab open with Samsung browser

Sorry, we don't support Samsung browser