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 227775 - StackOverflowError at java.nio.HeapCharBuffer.get
Summary: StackOverflowError at java.nio.HeapCharBuffer.get
Status: RESOLVED INCOMPLETE
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-21 15:03 UTC by Exceptions Reporter
Modified: 2013-05-17 14:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 146488


Attachments
stacktrace (64.58 KB, text/plain)
2013-03-21 15:03 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-03-21 15:03:55 UTC
This bug was originally marked as duplicate of bug 154894, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.2.1 (Build 201210100934)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.14-b01-447, Java(TM) SE Runtime Environment, 1.6.0_43-b01-447-11M4203
OS: Mac OS X

User Comments:
GUEST: find/replace some stuff in 200 or more files




Stacktrace: 
java.lang.StackOverflowError
   at java.nio.HeapCharBuffer.get(HeapCharBuffer.java:121)
   at java.nio.CharBuffer.charAt(CharBuffer.java:1194)
   at org.netbeans.modules.search.matcher.BufferedCharSequence$Sink$Buffer.getCharAt(BufferedCharSequence.java:759)
   at org.netbeans.modules.search.matcher.BufferedCharSequence$Sink$Buffer.access$1000(BufferedCharSequence.java:712)
   at org.netbeans.modules.search.matcher.BufferedCharSequence$Sink.charAt(BufferedCharSequence.java:662)
   at org.netbeans.modules.search.matcher.BufferedCharSequence.getCharAt(BufferedCharSequence.java:443)
Comment 1 Exceptions Reporter 2013-03-21 15:03:57 UTC
Created attachment 132910 [details]
stacktrace
Comment 2 Jaroslav Havlin 2013-03-25 16:50:56 UTC
It seems that the problem is caused by java.util.regex.Pattern. You are probably using a complicated regular expression in a big file.
What's your regular expression?
Comment 3 Jaroslav Havlin 2013-05-17 14:33:33 UTC
More information would be helpful.
Probably increasing JVM option -Xss or tuning the regular expression (reluctant quantifiers) could help.
Closing as incomplete. Reopen if you can provide more info. Thanks.