New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 812091 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 3
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Debugger Agent hangs indefinitely after pause-on-exception pause

Project Member Reported by paulir...@chromium.org, Feb 14 2018

Issue description

Original report in  issue 810385 

> I put together a script triggering a freeze from the Debugger.
> In this script, the debugger is paused but does not resume.
> This bug is also reproducible with the devtool GUI.


I investigated and can reproduce this behavior via the protocol (CDP) and devtools frontend. As the Debugger.paused event is received, any new methods sent to the backend agent are never returned a response. This includes Debugger.resume, but also can include .getScriptSource, etc.


Not every exception triggers this behavior, but the provided one does. My only guess is because this click is on a link, so this could be navigation/plznavigate related? Unknown..
 
debugger.js
1.3 KB View Download
Cc: math...@madumbo.com

Comment 2 by math...@madumbo.com, Mar 13 2018

Hi,
This bug is still present in v65.
Do you have an idea on how to fix it or is there a fix planned?
This is a bug we encounter quite often (we develop a crawler and this bug raises often when triggering client-side javascript).
Is there anything we could do to help?
Regards,
Mathieu
This specific issue was fixed by [1].

I am still trying to find the root of it.

[1] https://chromium-review.googlesource.com/c/chromium/src/+/1208672
Project Member

Comment 4 by bugdroid1@chromium.org, Oct 3

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6eedda6710d1236930a4cb9be966d1247dcf99a1

commit 6eedda6710d1236930a4cb9be966d1247dcf99a1
Author: Alexey Kozyatinskiy <kozyatinskiy@chromium.org>
Date: Wed Oct 03 20:35:57 2018

DevTools: skip all pauses during provisional load

On browser side we suspend message dispatching during provisional load,
so it is not possible to resume if pause happens.

R=dgozman@chromium.org

Bug:  chromium:812091 
Change-Id: Id9f7015febfb5ec868af2266aa8e3ca76eb7dd3d
Reviewed-on: https://chromium-review.googlesource.com/c/1252802
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596346}
[add] https://crrev.com/6eedda6710d1236930a4cb9be966d1247dcf99a1/third_party/WebKit/LayoutTests/http/tests/devtools/sources/debugger/resources/onunload.html
[add] https://crrev.com/6eedda6710d1236930a4cb9be966d1247dcf99a1/third_party/WebKit/LayoutTests/http/tests/devtools/sources/debugger/resources/page-with-unload.html
[add] https://crrev.com/6eedda6710d1236930a4cb9be966d1247dcf99a1/third_party/WebKit/LayoutTests/http/tests/devtools/sources/debugger/skip-pause-during-navigation-expected.txt
[add] https://crrev.com/6eedda6710d1236930a4cb9be966d1247dcf99a1/third_party/WebKit/LayoutTests/http/tests/devtools/sources/debugger/skip-pause-during-navigation.js
[modify] https://crrev.com/6eedda6710d1236930a4cb9be966d1247dcf99a1/third_party/blink/renderer/core/exported/local_frame_client_impl.cc
[modify] https://crrev.com/6eedda6710d1236930a4cb9be966d1247dcf99a1/third_party/blink/renderer/core/exported/web_dev_tools_agent_impl.cc
[modify] https://crrev.com/6eedda6710d1236930a4cb9be966d1247dcf99a1/third_party/blink/renderer/core/exported/web_dev_tools_agent_impl.h
[modify] https://crrev.com/6eedda6710d1236930a4cb9be966d1247dcf99a1/third_party/blink/renderer/core/inspector/inspector_page_agent.cc
[modify] https://crrev.com/6eedda6710d1236930a4cb9be966d1247dcf99a1/third_party/blink/renderer/core/inspector/inspector_page_agent.h

Status: Fixed (was: Assigned)

Sign in to add a comment