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 182696 - NotificationDisplayer manipulates Swing components in RP thread
Summary: NotificationDisplayer manipulates Swing components in RP thread
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: RANDOM, THREAD
Depends on:
Blocks: 182695
  Show dependency tree
 
Reported: 2010-03-24 17:08 UTC by _ tboudreau
Modified: 2010-03-26 05:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2010-03-24 17:08:18 UTC
See thread dump attached to deadlock bug 182695.  createDetails() needs to be called in the event thread.

"Default RequestProcessor" daemon prio=1 tid=0x0000000102201800 nid=0x14678b000 waiting for monitor entry [0x000000014678a000]
   java.lang.Thread.State: BLOCKED (on object monitor)
	at java.awt.Component.setFont(Component.java:1778)
	- waiting to lock <0x0000000108896600> (a java.awt.Component$AWTTreeLock)
	at java.awt.Container.setFont(Container.java:1554)
	at javax.swing.JComponent.setFont(JComponent.java:2723)
	at javax.swing.LookAndFeel.installColorsAndFont(LookAndFeel.java:191)
	at com.apple.laf.AquaButtonUI.installDefaults(AquaButtonUI.java:49)
	at javax.swing.plaf.basic.BasicButtonUI.installUI(BasicButtonUI.java:63)
	at javax.swing.JComponent.setUI(JComponent.java:673)
	at javax.swing.AbstractButton.setUI(AbstractButton.java:1815)
	at javax.swing.JButton.updateUI(JButton.java:128)
	at javax.swing.AbstractButton.init(AbstractButton.java:2182)
	at javax.swing.JButton.<init>(JButton.java:118)
	at javax.swing.JButton.<init>(JButton.java:91)
	at org.netbeans.core.ui.notifications.NotificationDisplayerImpl.createDetails(NotificationDisplayerImpl.java:246)
	at org.netbeans.core.ui.notifications.NotificationDisplayerImpl.notify(NotificationDisplayerImpl.java:97)
	at org.netbeans.modules.autoupdate.ui.actions.AutoupdateCheckScheduler.notifyAvailable(AutoupdateCheckScheduler.java:517)
	- locked <0x0000000127af5f78> (a java.lang.Class for org.netbeans.modules.autoupdate.ui.actions.AutoupdateCheckScheduler)
	at org.netbeans.modules.autoupdate.ui.actions.AutoupdateCheckScheduler$7.run(AutoupdateCheckScheduler.java:442)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1356)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1894)
Comment 1 dlipin 2010-03-24 17:15:23 UTC
Isn`t it the responsibility core.ui?
Comment 2 Stanislav Aubrecht 2010-03-25 10:52:55 UTC
core-main 65bccfee8b2c
Comment 3 Quality Engineering 2010-03-26 05:34:08 UTC
Integrated into 'main-golden', will be available in build *201003260201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/65bccfee8b2c
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #182696 - move component creation to EDT (probably a pointless excercise)