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 194181 - Find in project, match case, whole words loops endlessly
Summary: Find in project, match case, whole words loops endlessly
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-10 14:02 UTC by schkovich
Modified: 2011-07-13 16:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
<no description> (27.66 KB, application/x-netbeans-profiler)
2011-01-10 14:04 UTC, schkovich
Details
stack trace (2.04 KB, text/plain)
2011-03-01 13:18 UTC, schkovich
Details
debugger problem (54.47 KB, text/plain)
2011-03-01 13:20 UTC, schkovich
Details
useful stack trace (10.20 KB, text/plain)
2011-03-28 23:41 UTC, schkovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description schkovich 2011-01-10 14:02:54 UTC
Product Version = NetBeans IDE Dev (Build 201101040001)
Operating System = Linux version 2.6.35-24-generic running on amd64
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) 64-Bit Server VM 17.1-b03

I am working on ugly legacy code.

Find in project with checked match case and whole words gets stuck at some point, CPU goes high and the only way to stop the search is to exit IDE.
Comment 1 schkovich 2011-01-10 14:04:30 UTC
Created attachment 104846 [details]
<no description>
Comment 2 schkovich 2011-01-10 14:50:29 UTC
It's about Whole Words option. Mach Case is working fine.
Comment 3 Petr Pisl 2011-02-28 16:21:14 UTC
Could you provide a thread dump, when it's in cycle? How to provide thread dump is write up here http://wiki.netbeans.org/GenerateThreadDump
Comment 4 schkovich 2011-03-01 13:18:48 UTC
Created attachment 106595 [details]
stack trace
Comment 5 schkovich 2011-03-01 13:20:38 UTC
Created attachment 106596 [details]
debugger problem

I doubt that created stack trace will be helpful: there is some problem in debugger. Anyway, please let me know how can I further assist you.
Comment 6 schkovich 2011-03-28 23:41:53 UTC
Created attachment 107351 [details]
useful stack trace

I hope that this stack trace will be more helpful. You can get heap dump here: http://ubuntuone.com/p/jvi/

It appears that binary files like swf are creating the problem. Limiting search to text files, e.g. *.php, *.js eliminates the problem.

I will play around a bit more and try to figure the exact file type creating the problem.

Product Version: NetBeans IDE 7.0 RC1 (Build 201103250000)
Java: 1.6.0_24; Java HotSpot(TM) 64-Bit Server VM 19.1-b02
System: Linux version 2.6.35-28-generic running on amd64; UTF-8; en_US (nb)
Comment 7 schkovich 2011-07-13 16:07:04 UTC
I don't know if you made some changes or it's due to working on machine having 4 x 3.3 GHz and 16 GB RAM but I can't reproduce the problem any more.
Comment 8 Petr Pisl 2011-07-13 16:11:27 UTC
So could we close the bug as works for me?