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 198280 - infinite loop blocks UI thread
Summary: infinite loop blocks UI thread
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Profile (show other bugs)
Version: 7.0.1
Hardware: All All
: P2 normal (vote)
Assignee: Andrew Krasny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-03 14:09 UTC by Vladimir Voskresensky
Modified: 2011-05-13 05:50 UTC (History)
0 users

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 Vladimir Voskresensky 2011-05-03 14:09:58 UTC
if (plot != null) {
            int oldLimit = plot.getUpperLimit();
            int newLimit = plot.calculateUpperLimit(bucket.get());
            while (oldLimit < newLimit) {
                oldLimit *= 2;
            }
            plot.setUpperLimit(oldLimit);
        }

"DLIGHT: MSACollector Task" daemon prio=3 tid=0x08abd400 nid=0x28 runnable [0xb4a5c000]
   java.lang.Thread.State: RUNNABLE
	at org.netbeans.modules.dlight.indicators.graph.TimeSeriesDataContainer.put(TimeSeriesDataContainer.java:126)
	- locked <0xbc1ecf78> (a org.netbeans.modules.dlight.indicators.graph.TimeSeriesDataContainer)
	at org.netbeans.modules.dlight.indicators.impl.TimeSeriesIndicator.updated(TimeSeriesIndicator.java:280)
	at org.netbeans.modules.dlight.spi.indicator.IndicatorDataProvider.notifyIndicators(IndicatorDataProvider.java:238)
	at com.sun.tools.dlight.systemwide.collector.MSACollector.access$300(MSACollector.java:37)
	at com.sun.tools.dlight.systemwide.collector.MSACollector$CollectorTask.call(MSACollector.java:169)
	at com.sun.tools.dlight.systemwide.collector.MSACollector$CollectorTask.call(MSACollector.java:138)
	at org.netbeans.modules.dlight.util.DLightExecutorService$2.call(DLightExecutorService.java:95)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)

"AWT-EventQueue-1" prio=3 tid=0x08d52c00 nid=0x1a waiting for monitor entry [0xb4bb2000]
   java.lang.Thread.State: BLOCKED (on object monitor)
	at org.netbeans.modules.dlight.indicators.graph.TimeSeriesDataContainer.get(TimeSeriesDataContainer.java:140)
	- waiting to lock <0xbc1ecf78> (a org.netbeans.modules.dlight.indicators.graph.TimeSeriesDataContainer)
	at org.netbeans.modules.dlight.indicators.graph.GraphPainter.paintGraph(GraphPainter.java:229)
	at org.netbeans.modules.dlight.indicators.graph.GraphPainter.paint(GraphPainter.java:157)
	at org.netbeans.modules.dlight.indicators.graph.TimeSeriesPlot.paintComponent(TimeSeriesPlot.java:156)
	at javax.swing.JComponent.paint(JComponent.java:1029)
	at javax.swing.JComponent.paintToOffscreen(JComponent.java:5124)
	at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:278)
Comment 1 Andrew Krasny 2011-05-12 09:12:43 UTC
changeset: http://hg.netbeans.org/cnd-main/rev/acf70318c346
Comment 2 Quality Engineering 2011-05-13 05:50:45 UTC
Integrated into 'main-golden', will be available in build *201105130000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/acf70318c346
User: Andrew Krasny <akrasny@netbeans.org>
Log: fix for bug #198280 -  infinite loop blocks UI thread