Bugs item #1469005, was opened at 2006-04-12 00:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1469005&group_id=44253
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: User interface
Group: 4: Serious
Status: Open
Resolution: None
Priority: 9
Submitted By: Mathias Ricken (mgricken)
Assigned to: Nobody/Anonymous (nobody)
Summary: Stack Overflow When Searching All Documents
Initial Comment:
In Corky's words:
"[...] both the development release and the current
build have a bug when peforming global find/replace .
Load the current drjava source code base a project and
search for the string "pr" with all options checked
(match case, whole word, search all document, no
comments/strings) and search through the entire
project. There are a few occurrences of the variable pr
that you may encounter. If so, search again. Before
you finish searching the whole project, you will run
out of heap space. I don't think this is a cache
problem but I am not sure."
Here's the stack trace:
java.lang.StackOverflowError
at java.util.WeakHashMap.get(Unknown Source)
at java.util.Collections$SynchronizedMap.get(Unknown
Source)
at
javax.swing.text.StyleContext.getImmutableUniqueSet(Unknown
Source)
at javax.swing.text.StyleContext.addAttributes(Unknown
Source)
at
javax.swing.text.AbstractDocument$AbstractElement.addAttributes(Unknown
Source)
at
javax.swing.text.AbstractDocument$AbstractElement.<init>(Unknown
Source)
at
javax.swing.text.AbstractDocument$LeafElement.<init>(Unknown
Source)
at
javax.swing.text.AbstractDocument.createLeafElement(Unknown
Source)
at
javax.swing.text.DefaultStyledDocument$ElementBuffer.insertFirstContent(Unknown
Source)
at
javax.swing.text.DefaultStyledDocument$ElementBuffer.insertUpdate(Unknown
Source)
at
javax.swing.text.DefaultStyledDocument$ElementBuffer.insert(Unknown
Source)
at
javax.swing.text.DefaultStyledDocument.insertUpdate(Unknown
Source)
at
edu.rice.cs.drjava.model.AbstractDJDocument.insertUpdate(AbstractDJDocument.java:1364)
at
javax.swing.text.AbstractDocument.handleInsertString(Unknown
Source)
at
javax.swing.text.AbstractDocument.insertString(Unknown
Source)
at
edu.rice.cs.util.text.SwingDocument.insertString(SwingDocument.java:128)
at
edu.rice.cs.drjava.model.AbstractDJDocument.insertString(AbstractDJDocument.java:1422)
at
edu.rice.cs.drjava.model.definitions.DefinitionsDocument.insertString(DefinitionsDocument.java:360)
at javax.swing.text.DefaultEditorKit.read(Unknown Source)
at
edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc$2.make(AbstractGlobalModel.java:2273)
at
edu.rice.cs.drjava.model.cache.DocumentCache$DocManager.getDocument(DocumentCache.java:183)
at
edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.getDocument(AbstractGlobalModel.java:2106)
at
edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.getLength(AbstractGlobalModel.java:2870)
at
edu.rice.cs.drjava.model.FindReplaceMachine._findNextInAllDocs(FindReplaceMachine.java:533)
at
edu.rice.cs.drjava.model.FindReplaceMachine._findNextInAllDocs(FindReplaceMachine.java:519)
at
edu.rice.cs.drjava.model.FindReplaceMachine._findNextInAllDocs(FindReplaceMachine.java:519)
at
edu.rice.cs.drjava.model.FindReplaceMachine._findNextInAllDocs(FindReplaceMachine.java:519)
...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1469005&group_id=44253
|