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 251619 - Searching forever in locks
Summary: Searching forever in locks
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2015-04-03 11:17 UTC by Jiri Skrivanek
Modified: 2015-04-22 09:35 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 Jiri Skrivanek 2015-04-03 11:17:44 UTC
In some circumstances searching in locks view never ends and blocks AWT. To reproduce:

- create sample Anagram project
- right-click project node and choose Profile
- select "Profile Multiple Features"
- select Telemetry, Threads and Locks
- click Profile and wait for profiler to start
- switch to Locks view
- Ctrl+F to open find entry point
- type e.g. awt and click Next several times. It blocks but not every time. AWT is running but never finishes. Stack traces are like these


	at javax.swing.tree.TreePath.equals(TreePath.java:258)
	at java.util.HashMap.getNode(HashMap.java:571)
	at java.util.HashMap.get(HashMap.java:556)
	at org.netbeans.lib.profiler.ui.swing.ProfilerTreeTable$SortedFilteredTreeModel.viewToModel(ProfilerTreeTable.java:728)
	at org.netbeans.lib.profiler.ui.swing.ProfilerTreeTable$SortedFilteredTreeModel.getChild(ProfilerTreeTable.java:701)
	at org.netbeans.lib.profiler.ui.swing.ProfilerTreeTable.getPreviousPath(ProfilerTreeTable.java:173)
	at org.netbeans.lib.profiler.ui.swing.SearchUtils.findString(SearchUtils.java:117)
	at org.netbeans.lib.profiler.ui.swing.SearchUtils$1$1.run(SearchUtils.java:187)


	at org.netbeans.lib.profiler.ui.locks.LockContentionRenderer.setValue(LockContentionRenderer.java:64)
	at org.netbeans.lib.profiler.ui.swing.ProfilerTreeTable$1.getTreeCellRendererComponent(ProfilerTreeTable.java:245)
	at org.netbeans.lib.profiler.ui.swing.ProfilerTreeTable.getStringValue(ProfilerTreeTable.java:333)
	at org.netbeans.lib.profiler.ui.swing.SearchUtils.findString(SearchUtils.java:120)
	at org.netbeans.lib.profiler.ui.swing.SearchUtils$2$1.run(SearchUtils.java:206)

Product Version: NetBeans IDE Dev (Build 201504030001)
Java: 1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b26
System: Windows 8 version 6.2 running on amd64; Cp1250; en_US (nb)
Comment 1 Jiri Skrivanek 2015-04-03 11:46:50 UTC
BTW, I jump into this issue also when searching in CPU snapshot.
Comment 2 Jiri Sedlacek 2015-04-17 14:35:09 UTC
Looks like searching for a string not present in a treetable data view cycles in an endless loop.

Fixed by http://hg.netbeans.org/profiler-main/rev/0ac89ff6a5b7.
Comment 3 Quality Engineering 2015-04-20 11:57:16 UTC
Integrated into 'main-silver', will be available in build *201504201004* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0ac89ff6a5b7
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #251619 - make sure searching a treetable doesn't cycle forever
Comment 4 Jiri Skrivanek 2015-04-22 09:35:37 UTC
Verified. Thanks.