This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 101311 - Deadlock on updating diff view
Summary: Deadlock on updating diff view
Status: VERIFIED DUPLICATE of bug 99102
Alias: None
Product: utilities
Classification: Unclassified
Component: Diff (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: diff-issues@utilities
URL:
Keywords: THREAD
Depends on:
Blocks:
 
Reported: 2007-04-17 12:09 UTC by pzajac
Modified: 2007-05-02 14:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
deadlock (29.76 KB, text/plain)
2007-04-17 12:14 UTC, pzajac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2007-04-17 12:09:45 UTC
[200704161900]

I showed cvs diff for two projects. Then I switch to editing ofa file  and
switch back to diff view after few modifications.

Found one Java-level deadlock:
=============================
"Default RequestProcessor":
  waiting to lock monitor 0x0809f814 (object 0x7f384510, a
java.awt.Component$AWTTreeLock),
  which is held by "AWT-EventQueue-1"
"AWT-EventQueue-1":
  waiting to lock monitor 0x0809f8d4 (object 0x82a880c8, a
org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView),
  which is held by "Default RequestProcessor"

Java stack information for the threads listed above:
===================================================
"Default RequestProcessor":
        at java.awt.Container.getComponent(Container.java:278)
        - waiting to lock <0x7f384510> (a java.awt.Component$AWTTreeLock)
        at javax.swing.JViewport.getView(JViewport.java:940)
        at javax.swing.JViewport.getViewPosition(JViewport.java:1037)
        at javax.swing.JViewport.getViewRect(JViewport.java:1126)
        at
org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView.computeCurrentDifference(EditableDiffView.java:454)
        at
org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView.updateCurrentDifference(EditableDiffView.java:474)
        at
org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView$RefreshDiffTask.run(EditableDiffView.java:930)
        - locked <0x82a880c8> (a
org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
"AWT-EventQueue-1":
        at
org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView.getDiffSerial(EditableDiffView.java:972)
        - waiting to lock <0x82a880c8> (a
org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView)
        at
org.netbeans.modules.diff.builtin.visualizer.editable.DiffViewManager.updateDifferences(DiffViewManager.java:111)
        at
org.netbeans.modules.diff.builtin.visualizer.editable.DiffViewManager.getDecorations(DiffViewManager.java:120)
        - locked <0x82a8c398> (a
org.netbeans.modules.diff.builtin.visualizer.editable.DiffViewManager)
        at
org.netbeans.modules.diff.builtin.visualizer.editable.LineNumbersActionsBar.paintComponent(LineNumbersActionsBar.java:302)
        at javax.swing.JComponent.paint(JComponent.java:1006)
        at javax.swing.JComponent.paintChildren(JComponent.java:843)
Comment 1 pzajac 2007-04-17 12:14:06 UTC
Created attachment 41061 [details]
deadlock
Comment 2 Maros Sandor 2007-04-17 12:19:20 UTC

*** This issue has been marked as a duplicate of 99102 ***
Comment 3 pzajac 2007-05-02 14:05:34 UTC
v