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.
I am having problems when using the regexp highlighter plugin. I am testing a regular exprssions (with more to come) to get a hand of patterns matching. I am using the following expression: ([cC][rR][eE][aA][tT][eE]\s*[tT][aA][bB][lL][eE])(\s*\w*)\s*(\(\s*(,?\s*\w*\s*(\w*(\(\d*,?\s*\d*\))?\s*(\w*\s*'?\w*'?) *))*\s*\);) on two files ( 6k resp 45k). When testing the 45k file Netbeans freezes. The steps I tested: 1 Open the 6k file 2 Copy the regexp in the regexp field 3 Push the highlight button 4 The matches are highlighted just fine 5 Open the 45k file 6 Netbeans freezes Only opening the 45k file and highlighting the matches shows the same behavior. I will upload the files I am testing with, a stack dump (only partial, what I have been able to capture, please advise me on how to capture the complete dump), and the messages.log.
Created attachment 53022 [details] The file with which highlighting works
Created attachment 53023 [details] The file on which Netbeans freezes
Created attachment 53024 [details] Stack trace
Created attachment 53026 [details] messages.log
System information Product Version: NetBeans IDE 6.0 RC1 (Build 200711111200) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05 System: Windows XP version 5.1 running on x86; Cp1252; nl_NL (nb) Userdir: C:\Documents and Settings\it\.netbeans\6.0rc1
Hi, thanks for the report. What plugin are you talking about? Re. thread dumps - you will have to increase the screen buffer of your console. IIRC you can do that from its properties, it should be in that top-left-corner popup menu on the cmd window. There is a description how to take full-thread-dumps on wiki.netbeans.org, but I can't get to the website at the moment.
The wiki page is http://wiki.netbeans.org/wiki/view/GenerateThreadDump.
This is where the plugin can be found in the Plugin Centre: http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=1105
I have created a thread dump using jstack as described in the link. I will attach the output
Created attachment 53034 [details] New stack dump
Thanks for the threaddump. It looks like the IDE was not frozen, it was just performing the match or maybe there is something wrong with the regex you used, because most of the code in AWT thread runs through java.util.regex.Pattern... Anyway, the module is contrib/RegExpHighlighter maintained by Sandip, so I'm reassigning this report and CCing Sandip.
I will look into it.