Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351832

Summary: deadlock on switch to debug perspective with open breakpoints view
Product: [WebTools] JSDT Reporter: H. Finster <hf>
Component: DebugAssignee: Project Inbox <jsdt.debug-inbox>
Status: CLOSED DUPLICATE QA Contact: Michael Rennie <Michael_Rennie>
Severity: major    
Priority: P3 CC: jzhang, thatnitind
Version: 2.0.1   
Target Milestone: 3.4 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
stack trace (Control-Break) and installation details none

Description H. Finster CLA 2011-07-12 09:07:46 EDT
Created attachment 199493 [details]
stack trace (Control-Break) and installation details

Eclipse blocks when switching to the debug perspective with an open Breakpoints view if at least one breakpoint exists.

Reproduce the error:

start eclipe (indigo) with console and use fresh workspace, e.g.
D:\WorkspaceTestJSDTDeadlock

Create new JavaScript project via package explorer, e.g.
"JavaScriptProject"

Create a new JavaScript source file on the new project, e.g.
"Source.js" and save it.

add an arbitrary line of code to the new script file, e.g.
"var hello = 0;"

Add a breakpoint to this line (double-click on the bar at the left of the edit window)

Switch to the debug perspevctive and open the "Breakpoints" view
to make sure that the breakpoint exists.

Switch back to JavaScript perspective

Exit the session (File -> exit)

Restart Eclipse using the same workspace.

Switch to the "Debug" perspective.

--> eclipse blocks (shows egg timer)

Eclipse does no longer block, if the breakpoint is removed.



Please find the following information attached below:

== stack-dump
== installation details / configuration
Comment 1 H. Finster CLA 2011-07-12 09:31:55 EDT
additional information:

The system does NOT seem to block, if the Breakpoints view has been opened once with all JavaScript projects (containing breakpoints?) closed and then openend,
i.e. the following sequence does NOT end in a deadlock:

Repeat the steps stated in my original report including "Exit the session".
(i.e. create a JavaScript project with a single JavaScript file with a breakpoint)

Restart the eclipse session.

close the JavaScript project

switch to the Debug perspective (and open the Breakpoints view if not already open): this works fine now

switch back to the JavaScript perspective

open the JavaScript project

switch back to the Debug perspective: this does still work and the breakpoint is shown in "Breakpoints"
Comment 2 Michael Rennie CLA 2011-09-12 09:17:51 EDT
Same trace as bug 345298, seems the BreakpointManager is dead-locking when we try to add a breakpoint.

*** This bug has been marked as a duplicate of bug 345298 ***